Hi Art,
You can't pass the SoapAction in the "content type" parameter like that.
There is a separate parameter to http_url_post_xml() explicitly for
the SoapAction... please use that instead.
rc =http_url_post_xml('
http://UPSTEST:8080/wcfShip'
:%addr(postData) +2
:%len(postData)
:%paddr(StartOfElement)
:%paddr(EndOfElement)
:*NULL
:HTTP_TIMEOUT
:HTTP_USERAGENT
:'text/xml'
:'
http://xxx.Wcf/IwcfShip/Ratexxxxx"'
);
I don't know why you were passing 'rpg' for the user agent, but
typically you use the default one unless you need to trick an
application into thinking that you are a web browser. (Back in the day
it was often necessary to masquerade as Internet Explorer. I don't
think anyone ever does that anymore.)
I would suggest updating to use the http_req() procedure instead of the
old-fashioned post_xml if possible.
And I would also look into eliminating the use of SOAP, which is an
outdated technology not many are using for new projects anymore, and
consider using REST instead.
On 1/20/25 6:02 PM, Art Tostaine, Jr. wrote:
I need to specify SOAPAction like this:
SOAPAction:"http://xxx.Wcf/IwcfShip/Ratexxxxxxx"
How do I specify it here:
rc = http_url_post_xml('http://UPSTEST:8080/wcfShip'
: %addr(postData) + 2
: %len(postData)
: %paddr(StartOfElement)
: %paddr(EndOfElement)
: *NULL
: HTTP_TIMEOUT
: 'rpg'
: 'text/xml SOAPAction:"http://xxx.Wcf/IwcfShip/Ratexxxxx"'
);
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact
[javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.