Author |
Message
|
veda |
Posted: Thu May 12, 2011 9:58 am Post subject: SOAPAction URI |
|
|
Novice
Joined: 01 Dec 2010 Posts: 24
|
Hi All,
I am trying to send a SOAP message (that is being constructed in a JCN) to HTTPRequest Node(particular webservice). I receive a SOAP fault message saying
<?xml version="1.0"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Client</faultcode>
<faultstring>HttpListeningConnectorUtility.initializeISRequest(): SOAPAction HTTP header value has an invalid format.</faultstring>
<detail>
<IBResponse type="error">
<DefaultTitle>Integration Broker Response</DefaultTitle>
<StatusCode>20</StatusCode>
<MessageSet>158</MessageSet>
<MessageID>10502</MessageID>
<DefaultMessage>SOAPAction HTTP header value has an invalid format. </DefaultMessage>
<MessageParameters>
<Parameter/>
</MessageParameters>
</IBResponse>
</detail>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Is SOAPAction a mandatory element in HTTPRequest Header while making any call to webservice for SOAP messages. If so, where can I extract the SOAPAction from?
Appreciate your help! |
|
Back to top |
|
 |
mqjeff |
Posted: Thu May 12, 2011 10:03 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Why are you using an HTTPRequest node instead of a SOAPRequest node?
What does your understanding of SOAP inform you on the nature of the SOAPAction HTTP header, and what it should or should not contain?
Alternatively, if your understanding doesn't tell you anything, what does your review of the w3 SOAP specifications inform you? |
|
Back to top |
|
 |
veda |
Posted: Thu May 12, 2011 10:17 am Post subject: |
|
|
Novice
Joined: 01 Dec 2010 Posts: 24
|
mqjeff wrote: |
Why are you using an HTTPRequest node instead of a SOAPRequest node?
What does your understanding of SOAP inform you on the nature of the SOAPAction HTTP header, and what it should or should not contain?
Alternatively, if your understanding doesn't tell you anything, what does your review of the w3 SOAP specifications inform you? |
I am using HTTPRequest node as I have to just make a request to webservice(third-party) which expects a SOAP message. I don't need any additional functionality of SOAP Request node.
I understand that the SOAPAction URI provides the semantics for the SOAP message.
Do I need to get this URI from the team who provided the webservice url? |
|
Back to top |
|
 |
mqjeff |
Posted: Thu May 12, 2011 10:19 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
What additional functionality of the SOAPRequest node do you mean, other than that of "make a SOAP REQUEST over HTTP"?
The SOAP Action is in the WSDL, if you read the WSDL.
If you don't have the WSDL, then you don't have any reason to believe that you can make the request correctly. |
|
Back to top |
|
 |
veda |
Posted: Thu May 12, 2011 10:31 am Post subject: |
|
|
Novice
Joined: 01 Dec 2010 Posts: 24
|
mqjeff wrote: |
What additional functionality of the SOAPRequest node do you mean, other than that of "make a SOAP REQUEST over HTTP"?
The SOAP Action is in the WSDL, if you read the WSDL.
If you don't have the WSDL, then you don't have any reason to believe that you can make the request correctly. |
Okay Thank You Jeff. I was thinking we can use HTTPRequest Node for SOAP messages by including SOAP Action in HTTP Request Header, without having to create wsdl files. |
|
Back to top |
|
 |
mqjeff |
Posted: Thu May 12, 2011 10:37 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
You can't confirm that you are creating a proper request if you don't use the WSDL to validate your message before you send it.
The WSDL is a hard and firm contract between the SOAP Consumer and the SOAP Provider.
You can certainly use the HTTPRequest node to send a SOAPRequest, but you should still use the WSDL to construct your message definition and then validate your logical message tree against that.
And that's halfway to using the SOAPRequest node anyway.... |
|
Back to top |
|
 |
|