[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: SOAPAction
Ah, we got it now. I was looking at the comments above the prototype for
http_url_post_xml, and I didn't read the statement below the peUsrdta parm
that reads (other parms are identical to those in HTTP_url_post()). I
thought it was the last parm. I should have looked at the actual prototype.
Thanks for your help Nicolas!
John
----- Original Message -----
From: "Nicolas Machado" <nicolas.machado@xxxxxxxxxxxxx>
To: "HTTPAPI and FTPAPI Projects" <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Friday, February 27, 2009 11:07 AM
Subject: Re: SOAPAction
> Hi, first of all, you must check or tell us, wich version you are using.
>
> This is the parameters list of the procedure you are using:
> peURL
> pePostData
> pePostDataLen
> peStartProc
> peEndProc
> peUsrDta
> peTimeout
> peUserAgent
> peContentType
> peSOAPAction
>
> As you can see the last one is the SOAP Action String.
>
>
> I used like this:
> xOccur = 0 ;
> rc = http_url_post_stmf_xml(
> %trimr(URLPost)
> : %trimr(tmpf)
> : *NULL
> : %paddr(Incoming)
> : %addr(DsChasPrice)
> : 120 //HTTP_TIMEOUT
> : HTTP_USERAGENT
> : 'text/xml'
> : SOAPAction);
>
> I prefer to use this Method because they allow me to leave a stmf in the
> IFS so I can check what I'm sending to the web service
>
> I hope this helps.
>
> John Clark(Hotmail) escribió:
>> We are trying to consume a web service. We used soapUI to generate
>> the XML. We are using HTTPAPI procedure http_url_post_xml. The web
>> service requires the use of a SOAPAction parameter.
>>
>>
>>
>> How/where do we specify this parm? In our XML/SOAP? We noticed that
>> there was a SOAPAction parm in the HTTPAPI app, but it wasn't in the
>> procedure we were using, it was in the http_url_post procedure.
>>
>>
>>
>> Here is an example of the XML generated by soapUI:
>>
>>
>> _________________________________________________________________
>>
>> POST [1]http://wsstrikeiron.com/StrikeIron/ReversePhoneLookup HTTP/1.1
>> Content-Type: text/xml;charset=UTF-8
>> SOAPAction:
>> "[2]http://ws.strikeiron.com/StrikeIron/ReversePhoneLookup/GetRemainin
>> gHits"
>> User-Agent: Jakarta Commons-HttpClient/3.1
>> Host: ws.strikeiron.com
>> Content-Length: 458
>>
>>
>>
>> <soapenv:Envelope
>> xmlns:soapenv="[3]http://schemas.xmlsoaporg/soap/envelope/"
>> xmlns:ws="[4]http://ws.strikeiron.com">
>> <soapenv:Header>
>> <ws:LicenseInfo>
>> <ws:RegisteredUser>
>> <ws:UserID>user</ws:UserID>
>> <ws:Password>pwd</ws:Password>
>> </ws:RegisteredUser>
>> </ws:LicenseInfo>
>> </soapenv:Header>
>> <soapenv:Body>
>> <ws:GetRemainingHits/>
>> </soapenv:Body>
>> </soapenv:Envelope>
>> _________________________________________________________________
>>
>> Notice the "SOAPAction". How do we accomplish the same thing using
>> the http_url_post_xml procedure?
>>
>>
>>
>> Thanks in advance,
>>
>>
>>
>> John
>>
>> References
>>
>> 1. http://ws.strikeiron.com/StrikeIron/ReversePhoneLookup
>> 2.
>> http://ws.strikeiron.com/StrikeIron/ReversePhoneLookup/GetRemainingHits
>> 3. http://schemas.xmlsoap.org/soap/envelope/
>> 4. http://ws.strikeiron.com/
>>
>>
>> ------------------------------------------------------------------------
>>
>> -----------------------------------------------------------------------
>> This is the FTPAPI mailing list. To unsubscribe, please go to:
>> http://www.scottklement.com/mailman/listinfo/ftpapi
>> -----------------------------------------------------------------------
>>
>
> --
> .::.
> Nicolas Machado
> Metodo Argentina S.A.
> _____________________
> Tel: 02262 527431
> Necochea, Buenos Aires.
>
>
--------------------------------------------------------------------------------
> -----------------------------------------------------------------------
> This is the FTPAPI mailing list. To unsubscribe, please go to:
> http://www.scottklement.com/mailman/listinfo/ftpapi
> -----------------------------------------------------------------------
>
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------