Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to set SoapAction on a soap message in soap 1.2

 
Srinivas Kumar Mayasula
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can someone please provide an example for how to set SoapAction on the soap message (am not using dispatcher call) while sending a Soap Request using SOAP 1.2?

Currently am using soap 1.1 and here is how am setting the action:

msg.getMimeHeaders().addHeader("SOAPAction", soapAction);

In soap 1.2 is there any other way to set the soap action? and is it enough if we set the soap action in the soap header or do we need to set it in any other place as well like soappart?

Thanks in advance,
Srini
 
Sujeeth Pakala
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why do you want to use soapAction attribute of <soapperation> element ?

Normally it is used for routing purposes.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic