|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Incorrect parser in SOAPEnvelope |
« View previous topic :: View next topic » |
Author |
Message
|
j2soccer |
Posted: Mon May 21, 2007 11:53 am Post subject: Incorrect parser in SOAPEnvelope |
|
|
Newbie
Joined: 21 May 2007 Posts: 5
|
Hi,
I got a msg flow
HTTPInput --> SOAPExtract --> Compute --> SOAPEnvelope --> HTTPReply
For the compute node, a have an ESQL with the ff main() module...
DECLARE ns NAMESPACE 'http://www.acmeOrders.com/ShippingService';
CREATE COMPUTE MODULE test_Compute
CREATE FUNCTION Main() RETURNS BOOLEAN
BEGIN
CALL CopyMessageHeaders();
-- CALL CopyEntireMessage();
DECLARE refShipPartResponse REFERENCE TO OutputRoot.XMLNSC.ns:shipPartResponse;
CALL Perform2(refShipPartResponse);
RETURN TRUE;
END;
-- CopyMessageHeaders() and CopyEntireMessage() were removed...
END MODULE;
and another external PROCEDURE with the following definition
CREATE PROCEDURE Perform2(INOUT refShipPartResponse REFERENCE) BEGIN
SET refShipPartResponse.ns:status = 'Status';
END;
I can read the values coming from the InputRoot, however I keep on getting this exception whenever I call this webservice...
-- start
BIP2230E: Error detected whilst processing a message in node 'test.SOAPExtract'. : F:\build\S600_P\src\DataFlowEngine\PluginInterface\ImbJniNode.cpp: 922: ImbJniNode::evaluate: ComIbmJniNode: test#FCMComposite_1_5
BIP2230E: Error detected whilst processing a message in node 'test.SOAPEnvelope'. : F:\build\S600_P\src\DataFlowEngine\PluginInterface\ImbJniNode.cpp: 922: ImbJniNode::evaluate: ComIbmJniNode: test#FCMComposite_1_6
BIP4367E: The method ''evaluate'' in Java node ''SOAPEnvelope'' has thrown the following exception: 'java.lang.RuntimeException: A message using an incorrect parser (WSRoot) was detected in node: SOAPEnvelope'. : F:\build\S600_P\src\DataFlowEngine\PluginInterface\com_ibm_broker_plugin_CMbService.cpp: 1629: ImbJavaExceptionUtils::throwableToNativeException: :
BIP4395E: Java exception: ''java.lang.RuntimeException''; thrown from class name: ''com.ibm.broker.soap.SoapWrapperNode'', method name: ''getMessageBody'', file: ''SoapWrapperNode.java'', line: '463' : F:\build\S600_P\src\DataFlowEngine\PluginInterface\com_ibm_broker_plugin_CMbService.cpp: 1647: ImbJavaExceptionUtils::throwableToNativeException: :
-- end
Note: However, this form works...didn't call the procedure here.
CREATE COMPUTE MODULE test_Compute
CREATE FUNCTION Main() RETURNS BOOLEAN
BEGIN
CALL CopyMessageHeaders();
-- CALL CopyEntireMessage();
SET OutputRoot.XMLNSC.ns:shipPartResponse.ns:status = 'Status';
RETURN TRUE;
END;
-- CopyMessageHeaders() and CopyEntireMessage() were removed...
END MODULE;
I would really appreciate your help with this. |
|
Back to top |
|
 |
Vijji |
Posted: Mon May 21, 2007 12:15 pm Post subject: |
|
|
 Voyager
Joined: 30 Aug 2005 Posts: 83
|
Hi j2soccer,
Actually in ur first template you are not creating field .With out creating a field how can u refer it .
So first u have to create a field to the OutputRoot.XMLNSC.ns:shipPartResponse.
Then create a reference for it and call external procedure.
Let me know what happened.
Cheers,
Vijji. |
|
Back to top |
|
 |
j2soccer |
Posted: Mon May 21, 2007 4:13 pm Post subject: |
|
|
Newbie
Joined: 21 May 2007 Posts: 5
|
Thanks for the reply Vijji. Kind of miss creating the 'reference'. Now it worked.
CREATE FIELD OutputRoot.XMLNSC.ns:shipPartResponse;
 |
|
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
|
|
|
|