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 Certification (SCDJWS/OCEJWSD) and the fly likes WS-Addressing 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 » Certification » Web Services Certification (SCDJWS/OCEJWSD)
Bookmark "WS-Addressing" Watch "WS-Addressing" New topic
Author

WS-Addressing

davide boleso
Ranch Hand

Joined: Jul 15, 2012
Posts: 39
Hello like I already stated many times in this forum preparing Web Services Certification using different sources it confuse me a little
A question from mock I am using ask "how to permit an explicit relationship of action message addressing with the fault message of the wsdl operation mapped from the exception class"

the answer is "FaultAction annotation" and not "Action annotation", at the end of the question it mentions like source "oracle online FaultAction Annotation"
I noticed until now I used JAX-WS v2.1 pointing on rt.jar from the jre while the question refer to oracle specification "http://docs.oracle.com/cd/E17802_01/webservices/webservices/docs/2.0/api/index.html?javax/xml/ws/addressing/FaultAction.html" and they are different.
Wich API should I face for the exam ?

I also tried following experiment : with JAX-WS v2.1 if I make annotation in the followin manner

@WebMethod
@FaultAction(className=MyException.class,value = "http://names.it/namesexception")
public String getYourName(String name) throws MyException{

this does not create any wsaw:Action in the faul operation If i want to see that it works only if I declare annotation like this

@Action(
input = "http://names.it/getYourNameRequest",
output = "http://names.it/getYourNameResponse",
fault = { @FaultAction(className = MyException.class,
value = "http://names.it/namesexception")})
So according to that the righ answer is add Action annotation with nested fault attribute with the value @FaultAction

Any comment ?
thanks
Davide


OCPJP 6 | OCEJWSD 6 | OCEJWCD 6
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: WS-Addressing