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 » Custom SOAP header and SOAPRequest node

Post new topic  Reply to topic
 Custom SOAP header and SOAPRequest node « View previous topic :: View next topic » 
Author Message
sguruprasanna
PostPosted: Tue Sep 20, 2011 2:05 pm    Post subject: Custom SOAP header and SOAPRequest node Reply with quote

Apprentice

Joined: 29 Jul 2002
Posts: 37

Hi,

I am writing a webservice consumer flow, and I need to insert a custom header inside the SOAP header.

I have a simple flow:
MQInput -> ComputeNode -> SOAPRequest -> MQOutput

I use the compute node to insert the custom header using this code:
Code:

declare soapenv namespace 'http://schemas.xmlsoap.org/soap/envelope/';
declare cmc namespace 'http://www.cmc.com/default';
SET OutputRoot.SOAP.soapenv:Header.cmc:myHeader.cmc:To = 'EchoService';


The SOAPRequest node for some reason is dropping the custom header, so the service provider just gets the SOAP body, and no header. It never sees the "To" field that I set.

Am I missing any configuration or is this the default behaviour? Please let me know.

Thanks
Guru
Back to top
View user's profile Send private message Send e-mail
mgk
PostPosted: Wed Sep 21, 2011 12:55 am    Post subject: Reply with quote

Padawan

Joined: 31 Jul 2003
Posts: 1642

Try:

Code:
SET OutputRoot.SOAP.Header.cmc:myHeader.cmc:To = 'EchoService';


Regards,
_________________
MGK
The postings I make on this site are my own and don't necessarily represent IBM's positions, strategies or opinions.
Back to top
View user's profile Send private message
sguruprasanna
PostPosted: Wed Sep 21, 2011 5:54 am    Post subject: Reply with quote

Apprentice

Joined: 29 Jul 2002
Posts: 37

Thanks, that worked!
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Custom SOAP header and SOAPRequest 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.