|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
SOAP Reply with custom header |
« View previous topic :: View next topic » |
Author |
Message
|
goffinf |
Posted: Fri Jan 08, 2010 10:11 am Post subject: SOAP Reply with custom header |
|
|
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 |
|
 |
mgk |
Posted: Fri Jan 08, 2010 10:38 am Post subject: |
|
|
 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 |
|
 |
goffinf |
Posted: Sun Jan 10, 2010 9:21 am Post subject: |
|
|
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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|