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

RE: SOAPAction error



Thanks Scott, stating the obvious always helps!
 
I'm very new to ILE, but I missed the parameter entry for this in the http_url_post_xml function.
Will try it and let you guys know!
 
Many thanks,
 
Chris Renton
Business Systems Developer
Sigmakalon
Ext 4213
 

________________________________

From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx on behalf of Scott Klement
Sent: Tue 24/07/2007 10:35 PM
To: HTTPAPI and FTPAPI Projects
Subject: Re: SOAPAction error



Hi Chris,

> I can run this webservice fine via its test page but with the iSeries
> I get a "Unable to handle request without a valid action parameter.
> Please supply a valid soap action."

I'm sorry if I'm restating the obvious, but..   Have you tried supplying
the appropriate soapaction?

Here's the sample code you supplied:

 >     rc = http_url_post_xml(
 >                'http://10.186.194.2/SAPWebService/Service1.asmx'
 >                       : %addr(SOAP) + 2
 >                       : %len(SOAP)
 >                       : %paddr(StartElement)
 >                       : %paddr(EndElement)
 >                       : *NULL );

The SOAPAction parameter is the 10th parameter to this API.  You are
only passing 6 parameters, consequently, you're not passing the
SOAPAction at all.  Therefore no SoapAction is sent.  Therefore you'll
get a message that says "Hey Chris, you need to pass the soap action!"
(Or "Please supply a valid soap action.")

I have no way of knowing what this particular web service requires for a
soap action parameter.  But once you determine what it should be, here's
where you pass it:

      rc = http_url_post_xml(
                 'http://10.186.194.2/SAPWebService/Service1.asmx'
                        : %addr(SOAP) + 2
                        : %len(SOAP)
                        : %paddr(StartElement)
                        : %paddr(EndElement)
                        : *NULL
                        : HTTP_TIMEOUT
                        : HTTP_USERAGENT
                        : 'text/xml'
                        : 'put your soap action here' );

-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------



Official Sponsors of the Johnstone's Paint Trophy - Bringing Colour to the Beautiful Game  
www.johnstonestrade.com/johnstonespainttrophy

**************************************
-----------------------------------------
SigmaKalon UK Limited, registered in England (number 00436135), with its registered office at Huddersfield Road, Birstall, Batley, West Yorkshire, WF17 9XA.


PRIVATE AND CONFIDENTIAL
This Email may contain information that is privileged,confidential or otherwise protected from disclosure.  It must not be used by, or its contents copied or disclosed to persons other than the addressee(s).  If you have received this Email in error please notify our systems administrator on +44 (0)1924 354827 and delete the Email.

WARNING
It is the responsibility of the recipient to ensure that the onward transmission, opening or use of this message and any attachments will not adversely affect its systems or data. Please carry out such virus and other checks as you consider appropriate. No responsibility is accepted by SigmaKalon UK Limited in this regard.
The contents of this e-mail may not necessarily represent the views or policies of SigmaKalon UK Limited.
No contracts may be concluded on behalf of SigmaKalon UK Limited by means of email communication.
SigmaKalon UK Limited may monitor the content of e-mails, as appropriate, to ensure its policies and procedures are being upheld by its employees.  
----------------------------------------
**************************************

<<winmail.dat>>

-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------