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 » Trim Leading and Trailing spaces for SOAP Parser

Post new topic  Reply to topic
 Trim Leading and Trailing spaces for SOAP Parser « View previous topic :: View next topic » 
Author Message
akidase
PostPosted: Wed Jul 08, 2015 3:56 am    Post subject: Trim Leading and Trailing spaces for SOAP Parser Reply with quote

Centurion

Joined: 10 Jan 2011
Posts: 124

I need to trim all the leading and trailing whitespaces in element values and attribute values for incoming SOAP Message.

I was of the view that such option would be accounted for in the Message Model (present in previous versions with MessageSet - with the ability to Trim leading spaces or Trailing spaces or both).

SOAP Domain seems to be using XMLNSC parser and not providing with such a capability.

I am not sure how to accomplish the same in the recent version IIB9. Please suggest of any alternative ways to do the same.

Also there isn't a mxsd created for message model? Is this intended with later releases?
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed Jul 08, 2015 4:34 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

whitespace between element start and end tags is officially part of the contents of the element.

Easiest thing to do is make sure the sender doesn't include it.
Back to top
View user's profile Send private message
kimbert
PostPosted: Thu Jul 09, 2015 6:14 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

XML Schema does not offer any such feature, so it is not offered by XMLNSC / SOAP. It's a pretty unusual requirement, which is why XML Schema does not offer it.
Why, specifically, do you need to remove the leading and trailing whitespace?
_________________
Before you criticize someone, walk a mile in their shoes. That way you're a mile away, and you have their shoes too.
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 » Trim Leading and Trailing spaces for SOAP Parser
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.