axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anne Thomas Manes" <atma...@gmail.com>
Subject Re: Help defining fault
Date Wed, 17 Jan 2007 17:33:02 GMT
Note that a faultcode value does not need to be defined as an element.
The value is defined as a QName, but you don't have to define an
element for it. What you need to do is define the MyElement element,
and that's the element that you must reference from the <wsdl:part>
definition.

Anne

On 1/17/07, Javier Kohen <jkohen@users.sourceforge.net> wrote:
> Hi,
>
> I need help defining the WSDL for the following fault message. Note that
> AuthenticationFailed has no namespace prefix, but MyElement does:
>     <soap:Fault>
>       <faultcode>AuthenticationFailed</faultcode>
>       <faultstring>Authentication Failed</faultstring>
>       <detail>
>         <MyElement xmlns="mynamespace">new auth token</MyElement>
>       </detail>
>     </soap:Fault>
>
> The best I could come up with was the following, but it doesn't qualify
> MyElement properly, as it ends up with an empty namespace:
>
> <message name="AuthenticationFailedMessage">
>         <wsdl:part name="fault" element="AuthenticationFailed" xmlns="" />
> </message>
>
> Then:
> <xsd:element name="AuthenticationFailed">
> <xsd:complexType><xsd:sequence>
>         <xsd:element name="MyElement" type="xsd:string"/>
> </xsd:sequence></xsd:complexType>
> </xsd:element>
>
>
> Thanks for your attention,
> --
> Javier Kohen <jkohen@users.sourceforge.net>
> ICQ: blashyrkh #2361802
> Jabber: jkohen@jabber.org
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message