users@jax-rpc.java.net

Re: fault message can't have multipe parts?

From: Doug Kohlert <doug.kohlert_at_sun.com>
Date: Fri, 04 Apr 2003 10:20:43 -0800

Pedro,
A fault message MUST have a single part according to the WSDL 1.1
specification (section 3.6).

Pedro Salazar wrote:
> Greetings,
>
> I'm defining a WSDL file, and I pretend to add an exception with 2
> elements, but unfortunately I got this exception:
>
> error: fault "PositionException" refers to message
> "Positioning_Exception", but the message has more than one parts
>
> <message name="Positioning_Exception">
> <part name="code" type="xsd:string" /> //<--- 1
> <part name="message" type="xsd:string" /> //<---- 2
> </message>
>
> <operation name="getPosition" parameterOrder="user">
> <input message="pos:Positioning_getPosition"/>
> <output message="pos:Positioning_getPositionResponse"/>
> <fault name="PositionException" message="pos:Positioning_Exception"/>
> </operation>
>
>
> Is this a WSDL or a JAXRPC limitation?
>
> thanks,
> Pedro Salazar.
> --
> PS
> pedro-b-salazar_at_ptinovacao.pt
> PGP:0E129E31D803BC61


-- 
Doug Kohlert
Java Software Division
Sun Microsystems, Inc.
phone: 503 345-9806