users@jax-rpc.java.net

Re: wscompile and multiple exceptions

From: Doug Kohlert <Doug.Kohlert_at_Sun.COM>
Date: Wed, 15 Sep 2004 08:27:09 -0700

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

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