[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Trying to consume service. Getting Malformed soap message.



Mike Thanks so much! Your advice did the trick. What I had incorrect was,

Check the soap action parameter.
Check the content-type parameter.
Make sure they both match exactly what soapUI tells you to use.

It seemed counter intuitive but I had to supply the soap action as /client_smart/api/add_client/add_client 

The add_client had to be in there twice. Once I did this it worked just fine. What really threw me for a loop was the message coming back saying that the soap was malformed. So I spent more time looking at a good soap XML then I should have. Anyway lesson learned.

Thanks!
Jason E. Olson
IBM i (AS/400) Engineer
Von Maur
Office: 563.388.2215
Cell: 480.223.2952
E-Mail: jolson@xxxxxxxxxxx

Beauty through function and simplification.
Raymond Loewy
Please consider the environment before printing this e-mail.


-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Mike Krebs
Sent: Monday, September 17, 2012 4:13 PM
To: HTTPAPI and FTPAPI Projects
Subject: RE: Trying to consume service. Getting Malformed soap message.

> My basic question is what do I have to look at to troubleshoot this further?

Three things to check.

Using a variable for the soap message? Are you using a varying type and have you offset the address appropriately?

Check the soap action parameter.
Check the content-type parameter.
Make sure they both match exactly what soapUI tells you to use.

Use the parameters on http_url_post to pass the content-type and soapAction as in EXAMPLE17 (parameters 7 and 8).

Or use http_url_post_xml if you are going to parse the file return data as in EXAMPLE16 specifying content-type in parameter 9 and soapaction in parameter 10.

A debug file makes it easier to see what is happening.

-----------------------------------------------------------------------
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
-----------------------------------------------------------------------