× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Keith,

If I recall correctly, SOAP protocol always "rides on top of" HTTP ... or, to put it another way, SOAP messages are always "wrapped" in HTML, so they can pass through any HTTP server to any HTTP requestor (such as a javascript or Java app. running in a browser).

So, you need to first  pre-process the incoming data to remove the HTML "wrapper" before attempting to parse the embedded SOAP (XML) messages.

Hope that  helps,

Mark  S. Waterbury

> On 10/10/2017 10:53 AM, Keith McCully wrote:
Hi

I am using Scott's http_post_stmf api to send a soap request file to a Web
service and receive the soap response in an IFS folder. Version V6R1.

The request soap is valid and the http transfer works well.

However the soap response file contains additional data items outside of
the soap envelope that trigger a parser error - which makes sense as not
pure xml.

The extra items are a UUID at the start and end of the document plus 3
content related http headers at the top

Like this

-- UUID:
Content -
Content-
Content-

<soap response here>
-- UUID

If I remove the extra items from the file, the soap response parses fine.

So is there any way to prevent these extra items being included in the soap
response file?

If I run the request from soapUI I see the same extra items when I view as
'raw data'.

Also where would the control to remove these items be located: from the
httpapi call, from within the request soap or by config on the server?

Thanks

Keith



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 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.