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 » Allowing missing elements in request to SOAP Input Node?

Post new topic  Reply to topic
 Allowing missing elements in request to SOAP Input Node? « View previous topic :: View next topic » 
Author Message
bdaoust
PostPosted: Mon Apr 20, 2020 9:39 am    Post subject: Allowing missing elements in request to SOAP Input Node? Reply with quote

Centurion

Joined: 23 Sep 2010
Posts: 128

Hello all :

Have a message flow in IIB9.0.0.1 that using a SOAP Input. Two clients call this SOAP web service.

One of the clients is not sending a field that is defined in the message model, so w are getting a parsing error. They are not sending this because the value would always be false in that system and we didn't want (or quite frankly - didn't think) to modify that system to send the value in.

So I was hoping that in the message set when defining that element, I could make it nillable or set a default string of "false" That does not appear to be working. The default message domain is SOAP with supported message domain XMLNSC.

Are my only two options (assuming keeping the SOAP Input Node) is to either have the client send the value or leave validation off?

Thank you
Brian
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Apr 20, 2020 11:00 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

If the field is optional then you can specify it with minOccurs=0 in the WSDL. That's not the same as a field which must be present but can contain a null.
_________________
Honesty is the best policy.
Insanity is the best defence.
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 » Allowing missing elements in request to SOAP Input Node?
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.