ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » SOAPAction URI

Post new topic  Reply to topic
 SOAPAction URI « View previous topic :: View next topic » 
Author Message
veda
PostPosted: Thu May 12, 2011 9:58 am    Post subject: SOAPAction URI Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Thu May 12, 2011 10:03 am    Post subject: Reply with quote

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
View user's profile Send private message
veda
PostPosted: Thu May 12, 2011 10:17 am    Post subject: Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Thu May 12, 2011 10:19 am    Post subject: Reply with quote

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
View user's profile Send private message
veda
PostPosted: Thu May 12, 2011 10:31 am    Post subject: Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Thu May 12, 2011 10:37 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » SOAPAction URI
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.