|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
XML parsing |
« View previous topic :: View next topic » |
Author |
Message
|
Sam Uppu |
Posted: Tue May 24, 2011 10:26 am Post subject: XML parsing |
|
|
 Yatiri
Joined: 11 Nov 2008 Posts: 610
|
I have a question regarding the parsing property on soap request node.
On soap request node, I have set the parse timing to "Complete" and Validation to "Content & validation".
The response which I am getting from webservice to soap request "out" terminal is a soap domain message and has "&" special character in the content of the message.
Quote: |
<TestData> Jack & jill <TestData> |
Ideally "&" in xml data throws parsing errors.
In my case i am not seeing any parsing errors. The soap message successfully comes out of soap request with "&" special character.
Can you guys pls throw some light on this. |
|
Back to top |
|
 |
kimbert |
Posted: Tue May 24, 2011 10:35 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
I expect the & is actually written as & in the actual XML document. Whether you see it as & or as & depends on the viewer that you are using. |
|
Back to top |
|
 |
Sam Uppu |
Posted: Tue May 24, 2011 11:28 am Post subject: |
|
|
 Yatiri
Joined: 11 Nov 2008 Posts: 610
|
kimbert wrote: |
I expect the & is actually written as & in the actual XML document. Whether you see it as & or as & depends on the viewer that you are using. |
I tested in debug mode. When I get response from Webservice, the soap response has "&" .
Even I checked with Webservice, they are sending "&" in the data.
Is soap request node not parsing the response? |
|
Back to top |
|
 |
kimbert |
Posted: Tue May 24, 2011 11:39 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
Seeing it in the debugger proves nothing, but if you have inspected the XML that comes out of the web service then I can't argue with that.
Quote: |
Is soap request node not parsing the response? |
It may not have parsed it *yet*. It may depend on the Parse Timing property on the SOAPRequest node.
Either way, if the web service is sending badly-formed XML to you, then you should talk to the folks who control the sending application. |
|
Back to top |
|
 |
mqjeff |
Posted: Tue May 24, 2011 11:42 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
kimbert wrote: |
It may not have parsed it *yet*. It may depend on the Parse Timing property on the SOAPRequest node. |
Sam Uppu wrote: |
I have set the parse timing to "Complete" and Validation to "Content & validation". |
|
|
Back to top |
|
 |
kimbert |
Posted: Tue May 24, 2011 11:54 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
In that case, I defer to those who know more than me about the internals of the SOAPRequest node. |
|
Back to top |
|
 |
Sam Uppu |
Posted: Tue May 24, 2011 12:02 pm Post subject: |
|
|
 Yatiri
Joined: 11 Nov 2008 Posts: 610
|
Is there any difference in the type of parsing for special character "&" between SOAP and XMLNS domains?
XMLNS domain on input node throws parser error. But SOAP domain on soap requestnode doesn't. |
|
Back to top |
|
 |
kimbert |
Posted: Tue May 24, 2011 12:31 pm Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
I can say this much with 100% confidence. Every XML parser in message broker ( even the deprecated XML domain ) will reject a bare & in the content of a tag.
In this case, I can only assume that the SOAPRequest node has not parsed the message yet. A user trace might confirm that. |
|
Back to top |
|
 |
Sam Uppu |
Posted: Tue May 24, 2011 1:23 pm Post subject: |
|
|
 Yatiri
Joined: 11 Nov 2008 Posts: 610
|
Here is the trace
Quote: |
.
UserTrace BIP3903I: Node (class='DTXPlugInNode', name='Iternary.StudentRequest.GetDetails') propagating to 'out1' terminal.
The specified node is about to propagate a message to the specified terminal.
No user action required. This is an information message.
2011-05-24 15:56:47.864505 4640 UserTrace BIP4201I: Message propagated to out terminal from node 'Iternary.StudentRequest.ResetContentDescriptor'.
A reset content descriptor node has received a message and is propagating it to any nodes connected to its out terminal.
No user action required.
2011-05-24 15:56:47.868576 4640 UserTrace BIP3719I: Node 'Iternary.StudentRequest.GetDetails' sending SOAP request via transport 'HTTP' ('10.130.135.144') for operation 'getDetails' of type 'request-response'.
See subsequent messages for success or failure messages relating to this request, and for any transport-specific messages.
No action required.
2011-05-24 15:56:47.868621 4640 UserTrace BIP3633I: Node 'Iternary.StudentRequest.GetDetails' sending HTTP data to URL '/xx/services/yyy at host 'xx.xxx.xxx.xxx' (port 80).
The broker is sending data via HTTP to a remote server at host 'xx.xxx.xxx.xxx' (port 80) using URL '/xx/services/yyy. See subsequent messages for success or failure messages relating to this request.
No action required.
2011-05-24 15:56:48.331020 4640 UserTrace BIP3634I: Node 'Iternary.StudentRequest.GetDetails' received HTTP data from host 'xx.xxx.xxx.xxx' with status code of 200.
The broker has received data via HTTP from a remote server at host 'xx.xxx.xxx.xxx' with an HTTP status code of 200. Status codes beginning with a 2 indicate success; others imply errors in either client or server.
No action required.
2011-05-24 15:56:48.331649 4640 UserTrace BIP3720I: Node 'Iternary.StudentRequest.GetDetails' received a SOAP response message via transport 'HTTP' ('xx.xxx.xxx.xxx') for operation 'getDetails'.
The broker sent a SOAP request, and has received a response.
No action required.
2011-05-24 15:56:48.331748 4640 UserTrace BIP6060I: Parser type ''Properties'' created on behalf of node 'Iternary.RequestQueue' to handle portion of incoming message of length 0 bytes beginning at offset '0'.
2011-05-24 15:56:48.332111 4640 UserTrace BIP6061I: Parser type ''SOAP'' created on behalf of node 'Iternary.RequestQueue' to handle portion of incoming message of length '4' bytes beginning at offset '0'. Parser type selected based on value ''SOAP'' from previous parser.
2011-05-24 15:56:48.332130 4640 UserTrace BIP3903I: Node (class='ComIbmSOAPRequestNode', name='Iternary.StudentRequest.GetDetails') propagating to 'out' terminal.
The specified node is about to propagate a message to the specified terminal.
No user action required. This is an information message.
2011-05-24 15:56:48.332157 4640 UserTrace BIP3904I: Invoking the evaluate() method of node (class='ComIbmSOAPExtractNode', name='Iternary#FCMComposite_1_8.'Iternary.Request' #FCMComposite_1_5.Iternary.StudentRequest#FCMComposite_1_2').
About to pass a message to the evaluate() method of the specified node.
No user action required.
2011-05-24 15:56:48.332313 4640 UserTrace BIP4144I: Entered function 'cniDetach'(7f0e75c, 91b04b0, 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A').
Entered the specified function with the specified parameters.
No user action required.
2011-05-24 15:56:48.332321 4640 UserTrace BIP4145I: Exiting function 'cniDetach' with result: 'CCI_SUCCESS'(0).
About to exit the specified the function with the specified result.
No user action required.
2011-05-24 15:56:48.332332 4640 UserTrace BIP4144I: Entered function 'cniDetach'(7f0e75c, 91b6ac8, 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A').
Entered the specified function with the specified parameters.
No user action required.
2011-05-24 15:56:48.332340 4640 UserTrace BIP4145I: Exiting function 'cniDetach' with result: 'CCI_SUCCESS'(0).
About to exit the specified the function with the specified result.
No user action required.
2011-05-24 15:56:48.332347 4640 UserTrace BIP4144I: Entered function 'cniDetach'(7f0e75c, 91b6b30, 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A').
Entered the specified function with the specified parameters.
No user action required.
2011-05-24 15:56:48.332355 4640 UserTrace BIP4145I: Exiting function 'cniDetach' with result: 'CCI_SUCCESS'(0).
About to exit the specified the function with the specified result.
No user action required.
2011-05-24 15:56:48.332370 4640 UserTrace BIP4144I: Entered function 'cniAddAsLastChild'(7f0e75c, 91baed8, 91b6b30, 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A').
Entered the specified function with the specified parameters.
No user action required.
2011-05-24 15:56:48.332378 4640 UserTrace BIP4145I: Exiting function 'cniAddAsLastChild' with result: 'CCI_SUCCESS'(0).
About to exit the specified the function with the specified result.
No user action required.
2011-05-24 15:56:48.332401 4640 UserTrace BIP4144I: Entered function 'cniAddAsLastChild'(7f0e75c, 91b8fd0, 91b04b0, 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A').
Entered the specified function with the specified parameters.
No user action required.
2011-05-24 15:56:48.332408 4640 UserTrace BIP4145I: Exiting function 'cniAddAsLastChild' with result: 'CCI_SUCCESS'(0).
About to exit the specified the function with the specified result.
No user action required |
|
|
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
|
|
|
|