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 SupportNameSpaces In Response

Post new topicReply to topic
NameSpaces In Response View previous topic :: View next topic
Author Message
Deepak.k
PostPosted: Tue Jan 03, 2017 3:24 am Post subject: NameSpaces In Response Reply with quote

Novice

Joined: 18 Aug 2016
Posts: 20

Hi Guys

I have requirement where response should be like this

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<CreateAccrualActivityResponse xmlns="http://skywards.com/Mercator.CRIS.WS">
<CreateAccrualActivityResult>
<ProgrammeMemberActivity>
<NumberOfActivityUnits>
<IsQuery>false</IsQuery>
<QueryString />
<ContainsQueryOperators>true</ContainsQueryOperators>
<HasValue>true</HasValue>
<Value>1000</Value>
</NumberOfActivityUnits>
</ProgrammeMemberActivity>
</CreateAccrualActivityResult>
</CreateAccrualActivityResponse>
</soap:Body>
</soap:Envelope>


But i am getting as

<NS1:Envelope xmlns:NS1="http://schemas.xmlsoap.org/soap/envelope/">
<NS1:Body>
<NS2:CreateAccrualActivityResponse xmlns:NS2="http://skywards.com/Mercator.CRIS.WS">
<NS2:CreateAccrualActivityResult>
<NS2:ProgrammeMemberActivity>
<NS2:NumberOfActivityUnits>
<NS2:IsQuery>false</NS2:IsQuery>
<NS2:QueryString/>
<NS2:ContainsQueryOperators>true</NS2:ContainsQueryOperators>
<NS2:HasValue>true</NS2:HasValue>
<NS2:Value>10</NS2:Value>
</NS2:NumberOfActivityUnits>
</NS2:ProgrammeMemberActivity>
</NS2:CreateAccrualActivityResult>
</NS2:CreateAccrualActivityResponse>
</NS1:Body>
</NS1:Envelope>

How to over come this issue and how we can remove those NS1 and NS2

Thanks
Back to top
View user's profile Send private message
smdavies99
PostPosted: Tue Jan 03, 2017 3:55 am Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6077
Location: Somewhere over the Rainbow this side of Never-never land.

How (As in actual code) are you creating the response?
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
timber
PostPosted: Tue Jan 03, 2017 5:04 am Post subject: Reply with quote

Guardian

Joined: 25 Aug 2015
Posts: 947

Please read this:
https://www.ibm.com/support/knowledgecenter/SSKM8N_8.0.0/com.ibm.etools.mft.doc/ac67194_.htm

...and come back with any remaining questions.
Back to top
View user's profile Send private message
Deepak.k
PostPosted: Wed Jan 04, 2017 2:53 am Post subject: Reply with quote

Novice

Joined: 18 Aug 2016
Posts: 20

Thanks for your replies guys

That NS1 and NS2 are generated getting from wsdl itself so there is no problem with response.
Back to top
View user's profile Send private message
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexWebSphere Message Broker SupportNameSpaces In Response
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.