Resolving Non RM Request or Missing wsa:Action header error
We have been getting bug reports where users run into the following
error when interoperating with MS.
<message>com.sun.xml.ws.rm.RMException: WSRM3018: Non RM Request or Missing
wsa:Action header</message>
This is a case where we are trying MS client -> Sun
endpoint which is written beginning from Java and which has WS Reliable Messaging
(WS RM) enabled.
This is related to issue
href="https://wsit.dev.java.net/issues/show_bug.cgi?id=487">487.
style="text-decoration: underline;">
Here is how you can workaround this issue.
href="https://wsit.dev.java.net/source/browse/*checkout*/wsit/wsit/docs/howto/wsit-enabled-fromjava.zip.">
Consider you have a service like this
@WebService
public class MyFooImpl {
@WebMethod(action="doFoo")
public int doFoo(int bar, int zot) {
.....
}
}
Make sure you specifiy the action in @WebMethod annotation.
Without
the action in the @WebMethod annotation, empty Action
appears in the
application messages..
For a complete running sample check the following sample in
href="https://wsit.dev.java.net/source/browse/*checkout*/wsit/wsit/docs/howto/wsit-enabled-fromjava.zip.">wsit-enabled-fromjava
sample.
You need to set the AS_HOME to the installation of
href="https://glassfish.dev.java.net/"> Glassfish v2.Call the following targets
ant server
ant client runThis will show the demo with Sun client talking to Sun endpoint.
Next if you want to try the C# client
Follow instuctions from href="https://wsit-docs.dev.java.net/releases/m5/WCFClient2.html">here.
This shows you how to generate the artifacts using svcutil,
build the c# client and call Client.exe
- Login or register to post comments
- Printer-friendly version
- bhaktimehta's blog
- 1509 reads





