ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Error Processing SOAP/JMS Messages with 

Post new topic  Reply to topic
 Error Processing SOAP/JMS Messages with 
 « View previous topic :: View next topic » 
Author Message
jayZ
PostPosted: Fri Jun 08, 2012 10:49 am    Post subject: Error Processing SOAP/JMS Messages with 
 Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Fri Jun 08, 2012 10:57 am    Post subject: Reply with quote

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
View user's profile Send private message
jayZ
PostPosted: Fri Jun 08, 2012 11:07 am    Post subject: Reply with quote

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">
   &#xD;.           
   <a:Address>URL</a:Address>
   &#xD;.         
  </a:ReplyTo>


and

Code:
<string>",,,,,,,&#x0;,0,0,0,"","",0,,,0,"",0,0,"","",0,0,,0,"",0,,0,"",,,"","","",,,,0,,"","",,&#x0;,"","",,"",,"",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
View user's profile Send private message
rekarm01
PostPosted: Fri Jun 08, 2012 3:41 pm    Post subject: Re: Error Processing SOAP/JMS Messages with &#xd; Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 1415

jayZ wrote:
Code:
<string> ... ,&#x0;, ... ,&#x0;, ... </string>

Is that supposed to be '&#x0;' (null) or '&#x0d;' (carriage return)?

The null character cannot appear in a well-formed XML document - neither directly, nor as a character reference.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Error Processing SOAP/JMS Messages with &#xd;
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.