Hi,

I just tried to upgrade from 0.95 to 1.0, but when I used WSDL2Java I
got this error:


     [java] Exception in thread "main"
org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL
     [java] at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:94)
     [java] at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
     [java] at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
     [java] Caused by: org.apache.axis2.AxisFault: No port found for the
given name :QueryServicePort; nested exception is:
     [java] org.apache.axis2.AxisFault: No port found for the given name
:QueryServicePort
     [java] at
org.apache.axis2.description.WSDL2AxisServiceBuilder.populateService(WSDL2AxisServiceBuilder.java:243)
     [java] at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:87)
     [java] ... 2 more
     [java] Caused by: org.apache.axis2.AxisFault: No port found for the
given name :QueryServicePort
     [java] at
org.apache.axis2.description.WSDL2AxisServiceBuilder.findBinding(WSDL2AxisServiceBuilder.java:275)
     [java] at
org.apache.axis2.description.WSDL2AxisServiceBuilder.populateService(WSDL2AxisServiceBuilder.java:225)
     [java] ... 3 more
     [java] Java Result: 1


I didn't change my wsdl since 0.95. So I don't see the reason for this.
Here is the relevant part from my wsdl file:

<portType name="QueryEndpoint">
                <operation name="query">
                        <input message="tns:QueryEndpoint_query"
                                name="QueryEndpoint_query" />
                        <output message="tns:QueryEndpoint_queryResponse"
                                name="QueryEndpoint_queryResponse" />
                </operation>
        </portType>

        <binding name="QueryEndpointBinding" type="tns:QueryEndpoint">
                <soap:binding transport="http://schemas.xmlsoap.org/soap/http";
                        style="document" />
                <operation name="query">
                        <soap:operation soapAction="query" />
                        <input name="QueryEndpoint_query">
                                <soap:body use="literal" />

                        </input>
                        <output name="QueryEndpoint_queryResponse">
                                <soap:body use="literal" />
                        </output>
                </operation>
        </binding>

        <service name="QueryService">
                <port name="QueryEndpointPort" 
binding="tns:QueryEndpointBinding" >
                        <soap:address
                                
location="http://localhost:8080/axis2/services/QueryEndpoint"; />
                </port>
        </service>



Any idea?
Thanks for any help!!

andreas

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to