Short answer: with Soap Client, you can't. You need to graw the raw data stream.
Here's what I did: Create a SOAP envelope manually. (code.google.com SOAP Client (OSX) or a http analyzer is great for this) Send it via Internet Tools TCP OPEN Get the full response as a blob (full response included) Parse out the needed SOAP header with 4D's XML DOM tools. Create a wrapper to allow A4D to call natively Contact me privately if you're interested in the code. Thanks! Michael Check On Tue, Oct 19, 2010 at 10:32 PM, Michael Check <[email protected]> wrote: > Hi all, > > We're using A4D 4 in a 2004 database that needs to query SOAP > services. I can get 4D to call the SOAP server and return data, but > there is an issue. > > According to their API, the first call that must be made is to an > Authenticate method that returns a token when the proper credentials > are sent. The token is valid for 20 minutes and all subsequent > commands need to have the token embedded in the SOAP header. I can > push a valid token in to the outgoing SOAP header, and it returns the > data fine. > > The problem is retrieving the token. When the Authenticate method is > run via the SOAP client, it returns the token in the SOAP Response > Header. And for the life of me, I cannot figure how to get at the > SOAP Response header. 4D Web Services Client only returns the body of > the SOAP request. > > I know it is there because I can see the Response Header when I > monitor the http stream that 4D is receiving. > > Does anyone know how to get at the SOAP Response Header? > > I'm writing here because we need to eventually do all this through A4D > for their main application is running exclusively in A4D. And because > I know there is a lot of experience here sending data around http both > with and without web services. > > Thanks very much, > > Michael Check > _______________________________________________ > Active4D-dev mailing list > [email protected] > http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev > Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/ > _______________________________________________ Active4D-dev mailing list [email protected] http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/
