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 » Updating the SOAP Request message fails

Post new topic  Reply to topic
 Updating the SOAP Request message fails « View previous topic :: View next topic » 
Author Message
vpramod544
PostPosted: Wed Dec 19, 2012 11:56 pm    Post subject: Updating the SOAP Request message fails Reply with quote

Newbie

Joined: 30 Nov 2012
Posts: 4

Hi,

I am a newbie please bare me.. This situation is completely new to me.. I am using a Webservice in my flow that expects an attribute lets say 'A'(attribute) in an element 'NFB'(element) which are mentioned in the following sample message in bold text.

Sample message

Quote:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:NS1="http://abc.com">
<soapenv:Body>
<NS1:NFB A="21" B="sdf"/>
</soapenv:Body>
</soapenv:Envelope


so this A is not Mandatory attribute in the schema level. This attribute may or may not be present in the input SOAP Request message. But when we hit the service with out this element(A and its value) then it gives fault message that: the attribute A is missing. So I hardcoded the attribute('A') and its working value(say '21') using the compute node with ESQL. This element is present till that SOAP Request node(Till the break point which is infront of SOAP Request node), after hitting the service with the modified SOAP Request message it still give the same fault message that: attribute A is missing. by this i am not understanding why the new SOAP Request message is not able to add the attribute 'A' and its value '21'. Please let me know how to add such attributes with compute node using ESQL to SOAP Reqest message. please

Here is the structure of my flow:

SOAP IN -> SOAP EXTRACT -> compute node -> SOAP Request -> SOAP Reply
Back to top
View user's profile Send private message
kash3338
PostPosted: Thu Dec 20, 2012 1:01 am    Post subject: Reply with quote

Shaman

Joined: 08 Feb 2009
Posts: 709
Location: Chennai, India

What do you do in the "compute" node before the SOAPRequest? Can you give the code that you use to map the attribute?

Also, what does your message set say for the attribute? It should be optional if you dont get it at times.
Back to top
View user's profile Send private message Send e-mail
kash3338
PostPosted: Thu Dec 20, 2012 1:04 am    Post subject: Reply with quote

Shaman

Joined: 08 Feb 2009
Posts: 709
Location: Chennai, India

What do you do in the "compute" node before the SOAPRequest? Can you give the code that you use to map the attribute?

Also, what does your message set say for the attribute? It should be optional if you dont get it at times.
Back to top
View user's profile Send private message Send e-mail
vpramod544
PostPosted: Thu Dec 20, 2012 1:12 am    Post subject: Reply with quote

Newbie

Joined: 30 Nov 2012
Posts: 4

kash3338 wrote:
What do you do in the "compute" node before the SOAPRequest?

I am just appending the attribute and its value here.

Quote:
Can you give the code that you use to map the attribute?


SET OutputRoot.XMLNSC.NS1:NFB.A = '21';

Quote:
Also, what does your message set say for the attribute? It should be optional if you dont get it at times.


Yes it is optional in the message set
Back to top
View user's profile Send private message
McueMart
PostPosted: Thu Dec 20, 2012 1:48 am    Post subject: Reply with quote

Chevalier

Joined: 29 Nov 2011
Posts: 490
Location: UK...somewhere

Have a look at this link, im not saying its 100% what your problem is, but its good knowledge to have:

http://publib.boulder.ibm.com/infocenter/wmbhelp/v8r0m0/topic/com.ibm.etools.mft.doc/ac67193_.htm?resultof=%22XMLNSC.Attribute%22
Back to top
View user's profile Send private message
kash3338
PostPosted: Thu Dec 20, 2012 1:52 am    Post subject: Reply with quote

Shaman

Joined: 08 Feb 2009
Posts: 709
Location: Chennai, India

Code:
SET OutputRoot.XMLNSC.NS1:NFB.A = '21';


This is not the way to set values to Attributes in ESQL. Check this link,

http://publib.boulder.ibm.com/infocenter/wmbhelp/v7r0m0/index.jsp?topic=%2Fcom.ibm.etools.mft.doc%2Fac67193_.htm
Back to top
View user's profile Send private message Send e-mail
vpramod544
PostPosted: Thu Dec 20, 2012 3:04 am    Post subject: Reply with quote

Newbie

Joined: 30 Nov 2012
Posts: 4

Thanks Guys its my mistake its an eye opener for me
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 » Updating the SOAP Request message fails
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.