[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
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][1]http://wsstrikeiron.com/StrikeIron/ReversePhoneLookup HTTP/1.1
Content-Type: text/xml;charset=UTF-8
SOAPAction:
"[2][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][3]http://schemas.xmlsoaporg/soap/envelope/"
xmlns:ws="[4][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. [5]http://ws.strikeiron.com/StrikeIron/ReversePhoneLookup
2. [6]http://ws.strikeiron.com/StrikeIron/ReversePhoneLookup/GetRemainingHit
s
3. [7]http://schemas.xmlsoap.org/soap/envelope/
4. [8]http://ws.strikeiron.com/
_______________________________________________________________________
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
[9]http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------
--
.::.
Nicolas Machado
Metodo Argentina S.A.
_____________________
Tel: 02262 527431
Necochea, Buenos Aires.
References
1. http://wsstrikeiron.com/StrikeIron/ReversePhoneLookup
2. http://ws.strikeiron.com/StrikeIron/ReversePhoneLookup/GetRemainin
3. http://schemas.xmlsoaporg/soap/envelope/
4. http://ws.strikeiron.com/
5. http://ws.strikeiron.com/StrikeIron/ReversePhoneLookup
6. http://ws.strikeiron.com/StrikeIron/ReversePhoneLookup/GetRemainingHits
7. http://schemas.xmlsoap.org/soap/envelope/
8. http://ws.strikeiron.com/
9. 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
-----------------------------------------------------------------------