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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]>
> > ICQ: blashyrkh #2361802
> > Jabber: [EMAIL PROTECTED]
> >
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Javier Kohen <[EMAIL PROTECTED]>
ICQ: blashyrkh #2361802
Jabber: [EMAIL PROTECTED]

Attachment: signature.asc
Description: Esta parte del mensaje está firmada digitalmente

Reply via email to