Author |
Message
|
kash3338 |
Posted: Thu Jul 29, 2010 2:16 am Post subject: SOAP Error: No operation found matching payload |
|
|
Shaman
Joined: 08 Feb 2009 Posts: 709 Location: Chennai, India
|
Hi,
I have a scenario where I have 2 flows, 1 for Request and 1 for REsponse.
1. Request flow: SOAP Input and MQOutput
2. Response flow: MQInput and SOAP Reply.
I am retainng the SOAP Headers from the SOAP Input message. In the response flow, I am nullifying all the MQMD, MQRFH2 headers and reconstructing a structure similar to SOAP input message. Below is the set of code.
SET OutputRoot.HTTPInputHeader = Environment.Variables.HTTPInputHeader;
SET OutputRoot.SOAP.Context = Environment.Variables.SOAPHeader.Context;
SET OutputRoot.SOAP.Header = '';
SET OutputRoot.SOAP.Body = OutputRoot.XMLNSC;
SET OutputLocalEnvironment.Destination.SOAP.Reply.ReplyIdentifier = CAST(Environment.Variables.ReplyIdentifier AS BLOB);
SET OutputRoot.MQMD = NULL;
SET OutputRoot.MQRFH2 = NULL;
SET OutputRoot.XMLNSC = NULL;
I am sending this structure to SOAP reply. I am getting an error saying "PArser exception", SOAP tree cannot be serialized, No operation found matching payload. Please help |
|
Back to top |
|
 |
fjb_saper |
Posted: Thu Jul 29, 2010 2:29 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
And how pray are you getting the Environment variables (scope = flow) from flow A (soap input) to flow B(soap reply) ??
Hint: use a cursor (REFERENCE) to access your Environment.Variables and verify LASTMOVE(cursor).
Also are you sure that the empty string is the right value for
Quote: |
SET OutputRoot.SOAP.Header = ''; |
Have fun  _________________ MQ & Broker admin |
|
Back to top |
|
 |
mqjeff |
Posted: Thu Jul 29, 2010 2:30 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
The environment tree is not shared between flows.
The environment tree is not shared between two invocations of the same flow. |
|
Back to top |
|
 |
kash3338 |
Posted: Thu Jul 29, 2010 3:32 am Post subject: |
|
|
Shaman
Joined: 08 Feb 2009 Posts: 709 Location: Chennai, India
|
mqjeff wrote: |
The environment tree is not shared between flows.
The environment tree is not shared between two invocations of the same flow. |
The problem is not with the Environment variables. I have got these values from the first flow through an XML and saved in Environment tree in this flow.
The problem is different here. Please suggest some solution for my question. |
|
Back to top |
|
 |
mgk |
Posted: Thu Jul 29, 2010 3:47 am Post subject: |
|
|
 Padawan
Joined: 31 Jul 2003 Posts: 1642
|
Can you post the output from a trace node showing the message tree just before the SOAP Reply node? _________________ MGK
The postings I make on this site are my own and don't necessarily represent IBM's positions, strategies or opinions. |
|
Back to top |
|
 |
mqjeff |
Posted: Thu Jul 29, 2010 4:16 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
kash3338 wrote: |
mqjeff wrote: |
The environment tree is not shared between flows.
The environment tree is not shared between two invocations of the same flow. |
The problem is not with the Environment variables. I have got these values from the first flow through an XML and saved in Environment tree in this flow.
The problem is different here. Please suggest some solution for my question. |
There was nothing in your original message, the only data we have at this point, to suggest that the Environment tree was populated properly. There's nothing specific to your code that should be wrong, except perhaps trying to set the SOAP Header to an empty string rather than a NULL.
I agree with MGK. show us a trace of the message tree before you call the SOAP Reply.
New data, new responses. |
|
Back to top |
|
 |
|