You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Manuel Ernstberger (JIRA)" <ji...@apache.org> on 2006/11/02 10:48:40 UTC

[jira] Commented: (AXIS2-1561) Java2WSDL generates incorrect WSDL

    [ http://issues.apache.org/jira/browse/AXIS2-1561?page=comments#action_12446523 ] 
            
Manuel Ernstberger commented on AXIS2-1561:
-------------------------------------------

Thank you for fixing that problem.
But unfortunately there is still an error in the resulting wsdl. Opening the wsdl with eclipse, the error message "Invalid content was found starting with element 'wsdl:fault'. One of {"http://schemas.xmlsoap.org/wsdl/":output}' is expected" is shown.

> Java2WSDL generates incorrect WSDL
> ----------------------------------
>
>                 Key: AXIS2-1561
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1561
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>    Affects Versions: nightly
>            Reporter: Manuel Ernstberger
>
> When I generate a WSDL from a Java class with the latest nightly build of Axis2, in the generated WSDL the "wsdl:fault" element has no "name" attribute, as it is supposed to be.
> My Java class looks like that:
> public class TestWSImpl implements TestWS {
>     public void ping(String text){
>         System.out.println(text);
>     }
>     
>     public String echo(String text) {
>         System.out.println(text);
>         return text;  
>     }
> }
> And this is the resulting WSDL:
> <wsdl:definitions xmlns:axis2="http://epdm.tsystems.com/xsd" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:ns1="http://epdm.tsystems.com/xsd" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://epdm.tsystems.com/xsd"><wsdl:types><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ax21="http://epdm.tsystems.com/xsd" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://epdm.tsystems.com/xsd">
> <xs:element name="echoFault">
> <xs:complexType>
> <xs:sequence>
> <xs:element name="echoFault" type="xs:anyType" />
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> <xs:element name="echo">
> <xs:complexType>
> <xs:sequence>
> <xs:element name="param0" type="xs:string" />
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> <xs:element name="echoResponse">
> <xs:complexType>
> <xs:sequence>
> <xs:element name="return" type="xs:string" />
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> <xs:element name="pingFault">
> <xs:complexType>
> <xs:sequence>
> <xs:element name="pingFault" type="xs:anyType" />
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> <xs:element name="ping">
> <xs:complexType>
> <xs:sequence>
> <xs:element name="param0" type="xs:string" />
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> </xs:schema></wsdl:types><wsdl:message name="echoMessage"><wsdl:part name="part1" element="ns1:echo" /></wsdl:message><wsdl:message name="echoResponseMessage"><wsdl:part name="part1" element="ns1:echoResponse" /></wsdl:message><wsdl:message name="echoFault"><wsdl:part name="part1" element="ns1:echoFault" /></wsdl:message><wsdl:message name="pingMessage"><wsdl:part name="part1" element="ns1:ping" /></wsdl:message><wsdl:message name="pingFault"><wsdl:part name="part1" element="ns1:pingFault" /></wsdl:message><wsdl:portType name="TestWSPortType"><wsdl:operation name="echo"><wsdl:input message="axis2:echoMessage" /><wsdl:output message="axis2:echoResponseMessage" /><wsdl:fault message="axis2:echoFault" name="echoFault" /></wsdl:operation><wsdl:operation name="ping"><wsdl:input message="axis2:pingMessage" /><wsdl:fault message="axis2:pingFault" name="pingFault" /></wsdl:operation></wsdl:portType><wsdl:binding name="TestWSSOAP11Binding" type="axis2:TestWSPortType"><soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" /><wsdl:operation name="echo"><soap:operation soapAction="urn:echo" style="document" /><wsdl:input><soap:body use="literal" namespace="http://epdm.tsystems.com/xsd" /></wsdl:input><wsdl:output><soap:body use="literal" namespace="http://epdm.tsystems.com/xsd" /></wsdl:output><wsdl:fault><soap:body use="literal" namespace="http://epdm.tsystems.com/xsd" /></wsdl:fault></wsdl:operation><wsdl:operation name="ping"><soap:operation soapAction="urn:ping" style="document" /><wsdl:input><soap:body use="literal" namespace="http://epdm.tsystems.com/xsd" /></wsdl:input><wsdl:fault><soap:body use="literal" namespace="http://epdm.tsystems.com/xsd" /></wsdl:fault></wsdl:operation></wsdl:binding><wsdl:binding name="TestWSSOAP12Binding" type="axis2:TestWSPortType"><soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" /><wsdl:operation name="echo"><soap12:operation soapAction="urn:echo" style="document" /><wsdl:input><soap12:body use="literal" namespace="http://epdm.tsystems.com/xsd" /></wsdl:input><wsdl:output><soap12:body use="literal" namespace="http://epdm.tsystems.com/xsd" /></wsdl:output><wsdl:fault><soap12:body use="literal" namespace="http://epdm.tsystems.com/xsd" /></wsdl:fault></wsdl:operation><wsdl:operation name="ping"><soap12:operation soapAction="urn:ping" style="document" /><wsdl:input><soap12:body use="literal" namespace="http://epdm.tsystems.com/xsd" /></wsdl:input><wsdl:fault><soap12:body use="literal" namespace="http://epdm.tsystems.com/xsd" /></wsdl:fault></wsdl:operation></wsdl:binding><wsdl:service name="TestWS"><wsdl:port name="TestWSSOAP11port" binding="axis2:TestWSSOAP11Binding"><soap:address location="http://localhost:8080/axis2/services/TestWSTestWS" /></wsdl:port><wsdl:port name="TestWSSOAP12port" binding="axis2:TestWSSOAP12Binding"><soap12:address location="http://localhost:8080/axis2/services/TestWSTestWS" /></wsdl:port></wsdl:service></wsdl:definitions>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org