*
The moose likes Product and Other Certifications and the fly likes How to generate wsdl:fault from XSD Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Product and Other Certifications
Bookmark "How to generate wsdl:fault from XSD" Watch "How to generate wsdl:fault from XSD" New topic
Author

How to generate wsdl:fault from XSD

Zaid Ansari
Greenhorn

Joined: Dec 29, 2003
Posts: 10
I have one xsd and i want to generate WSDL from that xsd using xFire JAXB generator.

<xsd:element name="AuthorizationFailedException" type="???">

I want to define my WS method like that
@WebMethod
ManageUserResponse ManageUser(@WebParam(name = "ManageUser") ManageUser body) throws AuthorizationFailedException;

But the code that is generated for AuthorizationFailedException don't extends Exception so i cannot use it in throws clause.

My question is how can I define an element whose type is a Java object rather than objects defined in xsd schems like s:string, s:int etc. and do I need any extra setting /jar for that?

Zaid
 
 
subject: How to generate wsdl:fault from XSD
 
Similar Threads
Convert XSD to XML
Custom Exception in WebService
Problem mapping to form bean
How to map a xm type to javax.soap.SOAPElement type
problem defining "this or that OR this and that" with Castor