|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
SOAP HTTP, can the HTTPInput node really understand SOAP? |
« View previous topic :: View next topic » |
Author |
Message
|
asalema |
Posted: Wed Sep 13, 2006 1:52 pm Post subject: SOAP HTTP, can the HTTPInput node really understand SOAP? |
|
|
Apprentice
Joined: 05 May 2003 Posts: 35
|
Hi All,
Just trying a simple flow to understand HTTPInput node's support for SOAP using Message Sets
The Flow is simply HTTPInput->HTTPReply
On the HTTPInput node I used message domain MRM with soap11:envelope as the Message type. My questions are
1- should HTTPInput node really extract the SOAP header and forward only the Message payload to the output terminal? In my Message flow I get the whole message with header + body + fault
if the answer is no, what does it mean that the fault format is SOAP 1.1 on the properties of the HTTPInput node?
2- Although I set the Message domain to MRM and specify the Message Type soap11, there doesn't seem to be any soap envelope validation happenning.
I tried soap message like this
Code: |
<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:soap="urn:hl7-org:v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:hl7-org:v3 PRPA_IN101204CA_soap_envelope.xsd">
<soap:Header>
<hdr:test xmlns:hdr="hdr_namespace">Dummy SOAP header</hdr:test>
</soap:Header>
<soap:Body1>
<PRPA_IN101204CA xmlns="urn:hl7-org:v3" TSVersion="XML_1.0">data</PRPA_IN101204CA>
<soap:Fault>
<soap:Code>
<soap:Value>Sender</soap:Value>
<soap:Subcode>
<soap:Value>Bad Subcode</soap:Value>
</soap:Subcode>
</soap:Code>
<soap:Reason>
<soap:Text xml:lang="en-US">Sample SOAP Fault</soap:Text>
</soap:Reason>
<soap:Detail>
<phserror:myFaultDetails xmlns:phserror="phserror_namespace">
<phserror:message>Sample test SOAP fault</phserror:message>
<phserror:errorcode>666</phserror:errorcode>
</phserror:myFaultDetails>
</soap:Detail>
</soap:Fault>
</soap:Body1>
</soap:Envelope>
|
with the Body changed to Body1 and it passess the message to the output terminal without any errors. I even tried a non-wellformed message and it also works.
PS. I tried to set the validation to "content and value" and that didn't change anything.
I really appreciate any help ASAP
Regards, |
|
Back to top |
|
 |
ak |
Posted: Thu Sep 14, 2006 2:30 am Post subject: |
|
|
Apprentice
Joined: 07 Aug 2006 Posts: 48 Location: England
|
It is not clear to me how you obtained this message set you are trying to use. The last time tried writting an MRM for a SOAP message I had to twick so many things that it eventually wasn't worthy it.
1. You need to import the SOAP schema, either 1.1 or 1.2. This is already a limitation because you might need to use both SOAP 1.1 and 1.2 messages.
2. You had to have a schema for your payload well defined and this should be embedded into the SOAP schema and generate the message set . This way all your SOAP message gets parsed by the MRM parser correctly.
Eventually my solution was to set the HTTPInputnode to XMLNS, this was fine and parsed the message for SOAP headers and payload using ESQL as it was then all there for use. There is even a support pac with all ESQL functions to decode and enconde SOAP messages and faults. I think it is IA81 |
|
Back to top |
|
 |
JosephGramig |
Posted: Fri Sep 15, 2006 9:57 am Post subject: |
|
|
 Grand Master
Joined: 09 Feb 2006 Posts: 1244 Location: Gold Coast of Florida, USA
|
Did you read my finial post to iceage at this link?
http://www.mqseries.net/phpBB2/viewtopic.php?t=31820
At it, I detail how to build the MRM with SOAP, your request and your response documents.
Try it. _________________ Joseph
Administrator - IBM WebSphere MQ (WMQ) V6.0, IBM WebSphere Message Broker (WMB) V6.1 & V6.0
Solution Designer - WMQ V6.0
Solution Developer - WMB V6.1 & V6.0, WMQ V5.3 |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|