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 IndexWebSphere Message Broker SupportExpose only necessary fields

Post new topicReply to topic
Expose only necessary fields View previous topic :: View next topic
Author Message
saviobarr
PostPosted: Mon Jul 03, 2017 9:21 am Post subject: Expose only necessary fields Reply with quote

Voyager

Joined: 21 Oct 2014
Posts: 88
Location: Sao Paulo, Brazil

Hi everyone,
I have a Integration Service, which has an operation that exposes a type (xsd) with 40 fields, but the service consumer needs provide values for only 2 fields. Is there a way to show only the necessary fields of my huge xsd?
When I create a SoapUI project for my integration service, it shows all 40 fields in the request section, but only 2 fields will be passed in the request.

Thanks in advance.

Savio Barros
_________________
Go as far as you can go. Then go farther!
Back to top
View user's profile Send private message Send e-mail
Armageddon123
PostPosted: Mon Jul 03, 2017 10:21 am Post subject: Reply with quote

Acolyte

Joined: 11 Feb 2014
Posts: 54

so, all other 38 fields must be optional . so you need to provide only the small xsd to consumer, consumer will get the whole xsd only if they do http get and suffixed with a query string ?wsdl. this can be disallowed by setting on soap nodes.
But still the consumer can try random input fields and possible it matches any of those 38 fields,, if that is a problem , then you must create a wrapper service on top of 40 fields service to only expose 2 fields and have it follow standard authentication/authorization procedures.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Mon Jul 03, 2017 10:32 am Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17394

Or you could simply ignore the fact that the mapper shows all 40ish fields, and use it to only set the ones that need to be set.
_________________
Read, Think, Try, Repeat
Back to top
View user's profile Send private message
saviobarr
PostPosted: Mon Jul 03, 2017 11:03 am Post subject: Reply with quote

Voyager

Joined: 21 Oct 2014
Posts: 88
Location: Sao Paulo, Brazil

mqjeff wrote:
Or you could simply ignore the fact that the mapper shows all 40ish fields, and use it to only set the ones that need to be set.

Yes. Currently I am using that approach, but the consumer team does not accept the fact that they can just ignore fields showed in the SoapUI request. Deal with people is always the worse part of each job
_________________
Go as far as you can go. Then go farther!
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexWebSphere Message Broker SupportExpose only necessary fields
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.