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 » Setting xsi:nil="true" attribut in SOAP message

Post new topic  Reply to topic
 Setting xsi:nil="true" attribut in SOAP message « View previous topic :: View next topic » 
Author Message
wmqstankela
PostPosted: Thu Mar 17, 2016 6:15 am    Post subject: Setting xsi:nil="true" attribut in SOAP message Reply with quote

Voyager

Joined: 29 Feb 2016
Posts: 94

Hi all,

I'm having a problem with creating element with xsi:nil="true" attribute in SOAP message in ESQL.
When I use this code in compute node:
Code:
SET OutputRoot.SOAP.Body.someField VALUE = NULL;

it generates element in SOAP message like <NS3:someField/> but I need to be like <NS3:someField xsi:nil="true"/>.

Any advice is really helpful.
Thanks
Back to top
View user's profile Send private message
mqjeff
PostPosted: Thu Mar 17, 2016 6:24 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

http://www.ibm.com/support/knowledgecenter/SSMKHH_9.0.0/com.ibm.etools.mft.doc/ac06000_.htm
_________________
chmod -R ugo-wx /
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Mar 17, 2016 6:26 am    Post subject: Re: Setting xsi:nil="true" attribut in SOAP messag Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

wmqstankela wrote:
Hi all,

I'm having a problem with creating element with xsi:nil="true" attribute in SOAP message in ESQL.
When I use this code in compute node:
Code:
[code]SET OutputRoot.SOAP.Body.someField[/code] VALUE = NULL;

it generates element in SOAP message like <NS3:someField/> but I need to be like <NS3:someField xsi:nil="true"/>.

Any advice is really helpful.
Thanks

Have you tried:
Code:
SET OutputRoot.SOAP.Body.NS3:someField.(XMLNSC.Attribute).xsi:nil = true;

Make sure you declare xsi as an ESQL namespace but also with an XMLNSC.Namespace type declaration to avoid having a new namespace declaration for each occurrence in the output document...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
wmqstankela
PostPosted: Thu Mar 17, 2016 6:33 am    Post subject: Reply with quote

Voyager

Joined: 29 Feb 2016
Posts: 94

Thanks fjb_saper for your help, it's solved problem.
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 » Setting xsi:nil="true" attribut in SOAP message
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.