You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Javier Kohen <jk...@users.sourceforge.net> on 2007/01/17 16:29:21 UTC
Help defining fault
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 <jk...@users.sourceforge.net>
ICQ: blashyrkh #2361802
Jabber: jkohen@jabber.org
Re: Help defining fault
Posted by Javier Kohen <jk...@users.sourceforge.net>.
El mié, 17-01-2007 a las 12:33 -0500, Anne Thomas Manes escribió:
> 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.
Could you please show me a valid WSDL/XSD fragment for the message I
provided?
My first approach did involve referencing the MyElement element directly
from the part, but it didn't seem to work (unfortunately I don't recall
the details).
I found little to no examples online involving non-standard fault codes,
so I'm pretty lost. I have written a few large WSDLs from message-data
and this is the last remaining itch.
Thanks for your time,
> On 1/17/07, Javier Kohen <jk...@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 <jk...@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
--
Javier Kohen <jk...@users.sourceforge.net>
ICQ: blashyrkh #2361802
Jabber: jkohen@jabber.org
Re: Help defining fault
Posted by Anne Thomas Manes <at...@gmail.com>.
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 <jk...@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 <jk...@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