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 » SOAP Reply with custom header

Post new topic  Reply to topic
 SOAP Reply with custom header « View previous topic :: View next topic » 
Author Message
goffinf
PostPosted: Fri Jan 08, 2010 10:11 am    Post subject: SOAP Reply with custom header Reply with quote

Chevalier

Joined: 05 Nov 2005
Posts: 401

When creating a WS message flow starting from a WSDL, the wizard generates a subflow which contains a SOAPExtract and labels relating to operations specified.

Thats fine, although after the Extract the domain for the message is XMLNSC and not SOAP (I think) - plus I want to use SOAP1.2, but thats another story, I'll stick with 1.1 for now.

But what I want to be able to do is to return a custom SOAP header in the response, but I can't figure out how to do so. I haven't specified the response header in the WSDL (yet anyway).

As I understand it the SOAPReply takes care of creating the SOAP Envelope. WS-Addressing has a location where you can override values if you want to, but where do I put my response header data ??

I have searched the docs and this forum, but nothing doing ...

Thanks

Fraser.
Back to top
View user's profile Send private message
mgk
PostPosted: Fri Jan 08, 2010 10:38 am    Post subject: Reply with quote

Padawan

Joined: 31 Jul 2003
Posts: 1642

OK, So use SOAP 1.2 you really have to use the SOAP Domain. The easiest way would be to edit the generated subflow to remove the SOAPExtract node. Then you can simply add a SOAP header to the reply using some ESQL like this:

Code:
SET OutputRoot.SOAP.Header.myNS:myNewHeader = 'my value';


FYI, if you drop the WSDL onto the Node directly, rather than onto the canvas, then no subflow is generated

Kind 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
goffinf
PostPosted: Sun Jan 10, 2010 9:21 am    Post subject: Reply with quote

Chevalier

Joined: 05 Nov 2005
Posts: 401

Thanks, that worked fine. My flow actually supports both MQ and SOAP (Http) callers as well as SOAP 1.2/1.2 so I still needed a form of SOAPExtract/Envelopes but it wasn't hard to do in eSQL.

Thanks also for the WSDL tip.

I have another question regarding using multiple bindings but I'll opern a separate thread for that.

Fraser.
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 » SOAP Reply with custom header
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.