Hi Lawrence,

Thus, the faults in the prior WSDL is <wsdl2:outfault/> elements direct
children of <wsdl2:binding/> element, which should be <wsdl2:falut/>.  Thus,
this is a bug in Axis2 WSDL2.0 generator.

Thank you!

Saminda

On Tue, Jun 10, 2008 at 2:55 AM, Lawrence Mandel <[EMAIL PROTECTED]> wrote:

> Hi Saminda,
>
> The errors are correct as reported. WSDL 2.0 allows for fault elements to
> be specified as children of the binding element. infault and outfault
> elements are valid in the context of a binding operation element. See
> [1,2] for the references and [3] for the WSDL 2.0 schema.
>
> <description>
>  <binding
>        name="xs:NCName"
>        interface="xs:QName"?
>        type="xs:anyURI" >
>    <documentation />*
>    [ <fault /> | <operation /> ]*
>  </binding>
> </description>
>
> <description>
>  <binding>
>    <operation
>          ref="xs:QName" >
>      <documentation />*
>      [ <input /> | <output /> | <infault /> | <outfault /> ]*
>    </operation>
>  </binding>
> </description>
>
> [1] http://www.w3.org/TR/2007/REC-wsdl20-20070626/#Binding_XMLRep
> [2]
> http://www.w3.org/TR/2007/REC-wsdl20-20070626/#Binding_Operation_XMLRep
> [3] http://www.w3.org/2007/06/wsdl/wsdl20.xsd
>
>
> Lawrence
>
>
>
>
>
> "Saminda Abeyruwan" <[EMAIL PROTECTED]>
> 06/09/2008 04:40 PM
> Please respond to
> [email protected]
>
>
> To
> [email protected]
> cc
>
> Subject
> Woden[Error],0:0,WSDL520,Extension element
> "{http://www.w3.org/ns/wsdl}outfault<http://www.w3.org/ns/wsdl%7Doutfault>
> "
>
>
>
>
>
>
> Hi Devs,
>
> I have the attached WDSL2.0 document.  When I ran it through Axis2 1.4
> (with Woden 1.0M8) wsdl2java 2.0, I got the following exception. Shall I
> open a JIRA on this issue.
>
> ============
> Woden[Error],0:0,WSDL520,Extension element "{
> http://www.w3.org/ns/wsdl}outfault <http://www.w3.org/ns/wsdl%7Doutfault>"
> in the context of
> "org.apache.woden.wsdl20.xml.BindingElement" must not be in the WSDL 2.0
> namespace.
> Woden[Error],0:0,WSDL520,Extension element "{
> http://www.w3.org/ns/wsdl}outfault <http://www.w3.org/ns/wsdl%7Doutfault>"
> in the context of
> "org.apache.woden.wsdl20.xml.BindingElement" must not be in the WSDL 2.0
> namespace.
> Woden[Error],0:0,WSDL520,Extension element "{
> http://www.w3.org/ns/wsdl}outfault <http://www.w3.org/ns/wsdl%7Doutfault>"
> in the context of
> "org.apache.woden.wsdl20.xml.BindingElement" must not be in the WSDL 2.0
> namespace.
> Woden[Error],0:0,WSDL520,Extension element "{
> http://www.w3.org/ns/wsdl}outfault <http://www.w3.org/ns/wsdl%7Doutfault>"
> in the context of
> "org.apache.woden.wsdl20.xml.BindingElement" must not be in the WSDL 2.0
> namespace.
> Woden[Error],0:0,WSDL520,Extension element "{
> http://www.w3.org/ns/wsdl}outfault <http://www.w3.org/ns/wsdl%7Doutfault>"
> in the context of
> "org.apache.woden.wsdl20.xml.BindingElement" must not be in the WSDL 2.0
> namespace.
> Woden[Error],0:0,WSDL520,Extension element "{
> http://www.w3.org/ns/wsdl}outfault <http://www.w3.org/ns/wsdl%7Doutfault>"
> in the context of
> "org.apache.woden.wsdl20.xml.BindingElement" must not be in the WSDL 2.0
> namespace.
> Woden[Error],0:0,WSDL520,Extension element "{
> http://www.w3.org/ns/wsdl}outfault <http://www.w3.org/ns/wsdl%7Doutfault>"
> in the context of
> "org.apache.woden.wsdl20.xml.BindingElement" must not be in the WSDL 2.0
> namespace.
> Woden[Error],0:0,WSDL520,Extension element "{
> http://www.w3.org/ns/wsdl}outfault <http://www.w3.org/ns/wsdl%7Doutfault>"
> in the context of
> "org.apache.woden.wsdl20.xml.BindingElement" must not be in the WSDL 2.0
> namespace.
> Woden[Error],0:0,WSDL520,Extension element "{
> http://www.w3.org/ns/wsdl}outfault <http://www.w3.org/ns/wsdl%7Doutfault>"
> in the context of
> "org.apache.woden.wsdl20.xml.BindingElement" must not be in the WSDL 2.0
> namespace.
> Woden[Error],0:0,WSDL520,Extension element "{
> http://www.w3.org/ns/wsdl}outfault <http://www.w3.org/ns/wsdl%7Doutfault>"
> in the context of
> "org.apache.woden.wsdl20.xml.BindingElement" must not be in the WSDL 2.0
> namespace.
> Woden[Error],0:0,WSDL520,Extension element "{
> http://www.w3.org/ns/wsdl}outfault <http://www.w3.org/ns/wsdl%7Doutfault>"
> in the context of
> "org.apache.woden.wsdl20.xml.BindingElement" must not be in the WSDL 2.0
> namespace.
> Woden[Error],0:0,WSDL520,Extension element "{
> http://www.w3.org/ns/wsdl}outfault <http://www.w3.org/ns/wsdl%7Doutfault>"
> in the context of
> "org.apache.woden.wsdl20.xml.BindingElement" must not be in the WSDL 2.0
> namespace.
> Woden[Warning],0:0,Description-1001,The targetNamespace '
> http://www.wso2.org/types' is not dereferencable.
> ERROR [2008-06-10 01:57:35,278]  Code generation failed An access occurred
> that is not valid.
> org.apache.axis2.AxisFault: An access occurred that is not valid.
>        at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
>        at
>
> org.apache.axis2.description.WSDL20ToAxisServiceBuilder.populateService(WSDL20ToAxisServiceBuilder.java:276)
>        at
>
> org.apache.axis2.description.WSDL20ToAllAxisServicesBuilder.populateAllServices(WSDL20ToAllAxisServicesBuilder.java:90)
>        at
>
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:105)
>        at
> org.wso2.codegen.service.wsdl2code.WSDL2Code.codegen(WSDL2Code.java:191)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> =======
>
> Thank you!
>
> Saminda
>
> --
> Saminda Abeyruwan
>
> Senior Software Engineer
> WSO2 Inc. - www.wso2.org [attachment "tmp.xml" deleted by Lawrence
> Mandel/Toronto/IBM]
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Saminda Abeyruwan

Senior Software Engineer
WSO2 Inc. - www.wso2.org

Reply via email to