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 <[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]

Reply via email to