Bill,
The problem is that your fault message part names are the same and are
in the same namespace. Either change the part name or in the
wsdlsoap:fault specify a different namespace. If you don't make this
type of change there is no way to distinguish the type of fault comming
accross on the wire.
Bill Keicher wrote:
>Version info:
>jax-rpc standard implementation (1.1.2, build R23) - came with JWSDP 1.4
>
>and i attached the file for your enjoyment...
>
>
>-----Original Message-----
>From: Doug Kohlert [mailto:Doug.Kohlert_at_Sun.COM]
>Sent: Wednesday, September 15, 2004 11:27 AM
>To: users_at_jax-rpc.dev.java.net
>Subject: Re: wscompile and multiple exceptions
>
>
>Bill,
>Can you include the entire WSDL? Also what version of JAXRPC are you using?
>
>Bill Keicher wrote:
>
>
>
>>Hey Everyone,
>>
>>I am new to WSDL and web services. Whenever I define multiple exceptions
>>
>>
>to
>
>
>>be thrown from a given web service method in WSDL, wscompile complains with
>>the following error:
>>ns1_fault_QNAME=new QName("urn:blah", "fault"); is already defined, which
>>leads me to believe only one exception can be thrown from a given method.
>>Axis, however, compiles the WSDL without a problem. So my question is,
>>
>>
>does
>
>
>>wscompile only support one exception per method or is there something wrong
>>with my WSDL?
>>
>>here's the port type and soap stuff from the wsdl:
>> <complexType name="EDIException">
>> <sequence>
>> <element name="message" nillable="true" type="xsd:string"/>
>> </sequence>
>> </complexType>
>> <complexType name="SubEDIException">
>> <sequence>
>> <element name="message" nillable="true" type="xsd:string"/>
>> </sequence>
>> </complexType>
>>
>>
>><wsdl:operation name="AddContent" parameterOrder="in0 in1">
>>
>> <wsdl:input message="impl:addContentRequest"
>>name="addContentRequest"/>
>>
>> <wsdl:output message="impl:addContentResponse"
>>name="addContentResponse"/>
>>
>> <wsdl:fault message="impl:EDIException" name="EDIException"/>
>>
>> <wsdl:fault message="impl:SubEDIException"
>>
>>
>name="SubEDIException"/>
>
>
>> </wsdl:operation>
>>---------------------------------
>>
>><wsdl:operation name="AddContent">
>>
>> <wsdlsoap:operation soapAction=""/>
>>
>> <wsdl:input name="addContentRequest">
>>
>> <wsdlsoap:body
>>encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
>>namespace="urn:foo" use="encoded"/>
>>
>> </wsdl:input>
>>
>> <wsdl:output name="addContentResponse">
>>
>> <wsdlsoap:body
>>encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
>>namespace="urn:foo" use="encoded"/>
>>
>> </wsdl:output>
>>
>> <wsdl:fault name="EDIException">
>>
>> <wsdlsoap:fault
>>encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
>>name="EDIException" namespace="urn:foo" use="encoded"/>
>>
>> </wsdl:fault>
>>
>> <wsdl:fault name="SubEDIException">
>>
>> <wsdlsoap:fault
>>encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
>>name="SubEDIException" namespace="urn:foo" use="encoded"/>
>>
>> </wsdl:fault>
>>
>> </wsdl:operation>
>>
>>-------------------------------
>>William Keicher
>>Software Engineer
>>Endeca
>>
>>T: 617-621-7250
>>F: 617-577-7766
>>E: wkeicher_at_endeca.com
>>-------------------------------
>>
>>
>>This email message and any attachments are confidential to Endeca. If you
>>are not the intended recipient, please notify Endeca immediately -- by
>>replying to this message or by sending an email to: legal_at_endeca.com -- and
>>destroy all copies of this message and any attachments. Thank you.
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe_at_jax-rpc.dev.java.net
>>For additional commands, e-mail: users-help_at_jax-rpc.dev.java.net
>>
>>
>>
>>
>>
>>
>
>
>
>------------------------------------------------------------------------
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe_at_jax-rpc.dev.java.net
>For additional commands, e-mail: users-help_at_jax-rpc.dev.java.net
>
>
--
-------------------------------
Doug Kohlert
Sun MicroSystems, Inc.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jax-rpc.dev.java.net
For additional commands, e-mail: users-help_at_jax-rpc.dev.java.net