This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Web Services and the fly likes question on  wsa:Action= Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "question on  wsa:Action="http://example.com/numbers/AddNumbersPortType/Result"" Watch "question on  wsa:Action="http://example.com/numbers/AddNumbersPortType/Result"" New topic
Author

question on wsa:Action="http://example.com/numbers/AddNumbersPortType/Result"

Steven Jiang
Greenhorn

Joined: Mar 01, 2008
Posts: 22
Anyone can help me with my question as follows.


My question is what is:
wsa:Action="http://example.com/numbers/AddNumbersPortType/Result"
for???

My project use it as well, I searched URL, can not find another reference, only defined in one place.

Thank you
Steven


I gotta keep learning...
R Srini
Ranch Hand

Joined: Feb 19, 2010
Posts: 215
Hi. wsa:Action, like SOAPAction, indicates the intent of the SOAP HTTP request. When applied to the message input (<input wsa:action="http://example.com/getDataRequest" />), Axis2 will use the information to find the operation to invoke.

Per this link, how the action information is used varies with the tool: "In WSE, the action URI is used to figure out what policy to apply to a message and how to dispatch to code (if you are using the low-level messaging API). In some tools, the action URI is not used for dispatching; they favor the name of the element in the message body instead." (WSE = WS-Eventing)

If you search for "Listing 14" at this link: "In Listing 14, we see the final response message with the expected result and the output action set in Listing 8." If you follow through the example, it seems that the Action URI associated with the output is actually used as the action in the response's Header section as you can see in the wsa:Action line in Listing 14. And this is what I have observed with GlassFish as well when I was performing some tests last night. So, if we annotate the web method like this:
then the SOAP Response might have a header section like this (or a :
If, instead of being returned to the sender of the request, the response is routed to the next node in a chain, the action may indicate to the next node what to do next. So based on this analysis (with almost no info available on the web), I am thinking that the output action is useful in a scenario where WS-Addressing is used to route SOAP data over multiple SOAP nodes in a chain. However, in my tests with GlassFish, it didn't look like the input action was being used for dispatching to the right method (as I had read about Axis). Instead, it looked like the input action made no difference at all, and maybe it was using the method name instead. Maybe I didn't do something right ... So I am still confused ... this time about how the input action is used in GlassFish.

Hope that helped a bit.
Steven Jiang
Greenhorn

Joined: Mar 01, 2008
Posts: 22
Thank you very much for your detailed response. it definitely helps me understand much more.

Appreciate it.
Steven
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: question on wsa:Action="http://example.com/numbers/AddNumbersPortType/Result"