File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services Certification (SCDJWS/OCEJWSD) and the fly likes How to set SoapAction on a soap message in soap 1.2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Services Certification (SCDJWS/OCEJWSD)
Bookmark "How to set SoapAction on a soap message in soap 1.2" Watch "How to set SoapAction on a soap message in soap 1.2" New topic
Author

How to set SoapAction on a soap message in soap 1.2

Srinivas Kumar Mayasula
Greenhorn

Joined: Oct 08, 2013
Posts: 1
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

Joined: Mar 24, 2009
Posts: 98
Why do you want to use soapAction attribute of <soapperation> element ?

Normally it is used for routing purposes.


Regards, Sujeeth Pakala
SCJP, SCWCD, SCBCD, ICAD, XML Master Basic, Certified SOA Professional
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to set SoapAction on a soap message in soap 1.2