Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

WS-Addressing

 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Mo-om! You're embarassing me! Can you just read a tiny ad like a normal person?
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic