Here's the WSDL:

(the value @schema-location@ is replaced at deployment time with c:\folder\build/ws/definition\schemafile.xsd)

 

 

<wsdl:definitions xmlns:xs="http://www.w3.org/2001/XMLSchema"

                  xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"

                  xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"

                  xmlns:tns="urn://foo/pm/api/1_0"

                  xmlns:bla="urn://foo/framework/api/1_0"

                  targetNamespace="urn://foo/api/1_0">

  <wsdl:types>

    <xs:schema

      xmlns="http://www.w3.org/2001/XMLSchema"

      targetNamespace="urn://foo/framework/api/1_0"

      elementFormDefault="qualified">

      <xs:include schemaLocation="@schema-definition@" />

    </xs:schema>

  </wsdl:types>

 

  <wsdl:message name="processResponseMessage">

    <wsdl:part name="part1" element="bla:my-message"/>

  </wsdl:message>

  <wsdl:message name="processRequestMessage">

    <wsdl:part name="part1" element="bla:my-message"/>

  </wsdl:message>

  <wsdl:portType name="FooApiPort">

    <wsdl:operation name="process">

      <wsdl:input message="tns:processRequestMessage"/>

      <wsdl:output message="tns:processResponseMessage"/>

    </wsdl:operation>

  </wsdl:portType>

  <wsdl:binding name="FooApiBinding" type="tns:FooApiPort">

    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>

    <wsdl:operation name="process">

      <soap:operation soapAction="process" style="document"/>

      <wsdl:input>

        <soap:body use="literal" namespace="urn://foo/api/1_0"/>

      </wsdl:input>

      <wsdl:output>

        <soap:body use="literal" namespace="urn://foo/api/1_0"/>

      </wsdl:output>

    </wsdl:operation>

  </wsdl:binding>

  <wsdl:service name="yadda">

    <wsdl:port name="BlaApiPortType0" binding="tns:BlaApiBinding">

      <soap:address location="http://localhost:8080/bla/services/yadda"/>

    </wsdl:port>

  </wsdl:service>

</wsdl:definitions>

 

 

 

 

-----Original Message-----
From: Ajith Ranabahu [mailto:[EMAIL PROTECTED]
Sent: Dienstag, 9. Mai 2006 16:05
To: [email protected]
Subject: Re: [axis2] wsdl2java exception after updating to 1.00 release

 

Hi,

Can we have a look at the WSDL ? It seems that when ":" is present in

the url our entity resolver gets confused but having the WSDL would be

a great help

 

Ajith

 

On 5/9/06, Sebastian Szczygiel <[EMAIL PROTECTED]> wrote:

> 

> 

> 

> Hello,

> 

> 

> 

> Using the Axis2 1.0 release I get an exception while executing the WSDL2Java

> tool.

> 

> 

> 

> BUT: exact the same schema files worked fine with all previous Axis2

> versions including 0.95 release.

> 

> 

> 

> Any ideas what's wrong?

> 

> 

> 

> Regards,

> 

> Sebastian

> 

> 

> 

> 

> 

> 

> 

> Retrieving schema at 'file:///C:/foo.xsd', relative to 'file:/C://'.

> 

> Retrieving schema at foo.xsd', relative to 'file:/C:/ foo.xsd'.

> 

> Retrieving schema at 'bla.xsd', relative to 'file:/C:/bla.xsd'.

> 

> Exception in thread "main"

> org.apache.axis2.wsdl.codegen.CodeGenerationException:

> java.lang.RuntimeException:

> java.lang.reflect.InvocationTargetException

> 

>       at

> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:185)

> 

>       at

> org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)

> 

>       at

> org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)

> 

> Caused by: java.lang.RuntimeException:

> java.lang.reflect.InvocationTargetException

> 

>       at

> org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLBeansExtension.java:93)

> 

>       at

> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:140)

> 

>       ... 2 more

> 

> Caused by: java.lang.reflect.InvocationTargetException

> 

>       at

> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

> 

>       at

> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

> 

>       at

> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

> 

>       at java.lang.reflect.Method.invoke(Method.java:585)

> 

>       at

> org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLBeansExtension.java:83)

> 

>       ... 3 more

> 

> Caused by: java.lang.RuntimeException:

> org.apache.xmlbeans.XmlException: error: Problem parsing

> referenced XML resource - C:\bla.xsd:1:1: error: Unexpected end of file

> after null

> 

>       at

> org.apache.axis2.xmlbeans.CodeGenerationUtility.processSchemas(CodeGenerationUtility.java:192)

> 

>       ... 8 more

> 

> Caused by: org.apache.xmlbeans.XmlException: error: Problem

> parsing referenced XML resource - C:\foo.xsd:1:1: error: Unexpected end of

> file after null

> 

>       at

> org.apache.xmlbeans.impl.schema.SchemaTypeSystemCompiler.compile(SchemaTypeSystemCompiler.java:225)

> 

>       at

> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

> 

>       at

> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

> 

>       at

> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

> 

>       at java.lang.reflect.Method.invoke(Method.java:585)

> 

>       at

> org.apache.xmlbeans.XmlBeans.compileXmlBeans(XmlBeans.java:665)

> 

>       at

> org.apache.axis2.xmlbeans.CodeGenerationUtility.processSchemas(CodeGenerationUtility.java:161)

> 

>       ... 8 more

> 

> Java Result: 1

> 

> 

> 

> 

> 

> 

> 

> 

> 

> 

 

 

--

Ajith Ranabahu

Reply via email to