|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Error Processing SOAP/JMS Messages with 
 |
« View previous topic :: View next topic » |
Author |
Message
|
jayZ |
Posted: Fri Jun 08, 2012 10:49 am Post subject: Error Processing SOAP/JMS Messages with 
 |
|
|
Acolyte
Joined: 03 Jun 2008 Posts: 71
|
I am receiving a message from a .Net application via the custom WCF channel. Apparently, the either WCF or the application is inserting \r in the payload, which is causing parsing errors on the SOAP Input Node (error: problem creating SOAP tree from bitstream). When I remove the 
, the message processes successfully. Originally, I read that this issue is a codepage issue, but a web search showed that this character is legal in UTF-8. Does this sound familiar to anyone? If so, how do I get around it? The application team is saying WCF is handing all the serialization and they have no control over it.
Thanks,
JZ |
|
Back to top |
|
 |
mqjeff |
Posted: Fri Jun 08, 2012 10:57 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
The question is, where in the soap message is the bad character?
Is it between XML tags? Or within an xml tag? If it's between two tags, like
Code: |
<tag1>data1</tag1>\r<tag2>data2</tag2> |
Then the problem is in how WCF is serializing the message - but it should still more or less be legal...
If it's within a tag, like
Code: |
<tag1>data1\rdata2</tag1> |
Then the problem is the sending application is not cleaning up the data it's populating. |
|
Back to top |
|
 |
jayZ |
Posted: Fri Jun 08, 2012 11:07 am Post subject: |
|
|
Acolyte
Joined: 03 Jun 2008 Posts: 71
|
I'm actually receiving the character in both places
Code: |
<a:ReplyTo s:mustUnderstand="1" a:IsReferenceParameter="true">

.
<a:Address>URL</a:Address>

.
</a:ReplyTo> |
and
Code: |
<string>",,,,,,,�,0,0,0,"","",0,,,0,"",0,0,"","",0,0,,0,"",0,,0,"",,,"","","",,,,0,,"","",,�,"","",,"",,"",0,"",,"","","","","",,"",,"","","","","","",0,0,0,0,0,,,,0,0,"X","","",,</string> |
I did confirm that only the latter example is causing problems.
Thanks for the help! That should let me point the service team in the right direction. |
|
Back to top |
|
 |
rekarm01 |
Posted: Fri Jun 08, 2012 3:41 pm Post subject: Re: Error Processing SOAP/JMS Messages with 
 |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 1415
|
jayZ wrote: |
Code: |
<string> ... ,�, ... ,�, ... </string> |
|
Is that supposed to be '�' (null) or '
' (carriage return)?
The null character cannot appear in a well-formed XML document - neither directly, nor as a character reference. |
|
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
|
|
|
|