[ http://issues.apache.org/jira/browse/AXIS2-544?page=comments#action_12374045 ]
Sebastian Mittelstädt commented on AXIS2-544: --------------------------------------------- Hello Venkatakrishnan, I suggest you create a patch of your modifications and attach the patch file here (check the left menu for attaching files). Then the responbsible developer can integrate the patch into the codebase, if desired. > Java2WSDL generates invalid WSDL > -------------------------------- > > Key: AXIS2-544 > URL: http://issues.apache.org/jira/browse/AXIS2-544 > Project: Apache Axis 2.0 (Axis2) > Type: Bug > Components: Tools > Versions: 0.95 > Reporter: Sebastian Mittelstädt > > In 0.95, the Java2WSDL class generates invalid WSDL. > The following WSDL was generated with Java2WSDL: > java2wsdl -cn com.mycompany.r002.R002 -cp bin -tn http://com.mycompany.r002 > -stn http://com.mycompany.r002.schema -stp r002schema -sn r002 -of r002.wsdl > This generated the following WSDL: > <?xml version="1.0" encoding="UTF-8"?> > <wsdl:definitions targetNamespace="http://com.mycompany.r002" > 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="http://com.mycompany.r002"> > <wsdl:types> > <xs:schema targetNamespace="http://com.mycompany.r002.schema" > elementFormDefault="unqualified" attributeFormDefault="unqualified" > xmlns:r002schema="http://com.mycompany.r002.schema"> > <!-- Type definitions (omitted) --> > </xs:schema> > </wsdl:types> > <wsdl:message name="calculateResponseMessage"> > <wsdl:part name="part1" element="r002schema:calculateResponse"/> > </wsdl:message> > <wsdl:message name="calculateRequestMessage"> > <wsdl:part name="part1" element="r002schema:calculateRequest"/> > </wsdl:message> > <wsdl:portType name="r002PortType"> > <wsdl:operation name="calculate"> > <wsdl:input message="tns:calculateRequestMessage"/> > <wsdl:output message="tns:calculateResponseMessage"/> > </wsdl:operation> > </wsdl:portType> > <wsdl:binding name="r002Binding" type="tns:r002PortType"> > <soap:binding transport="http://schemas.xmlsoap.org/soap/http" > style="document"/> > <wsdl:operation name="calculate"> > <soap:operation soapAction="calculate" style="document"/> > <wsdl:input> > <soap:body use="literal" namespace="http://com.mycompany.r002"/> > </wsdl:input> > <wsdl:output> > <soap:body use="literal" namespace="http://com.mycompany.r002"/> > </wsdl:output> > </wsdl:operation> > </wsdl:binding> > <wsdl:service name="r002"> > <wsdl:port name="r002Port" binding="axis2:r002Binding"> > <soap:address location="http://127.0.0.1:8080/axis2/services/r002"/> > </wsdl:port> > </wsdl:service> > </wsdl:definitions> > This WSDL is invalid due to the following errors: > - The value 'axis2:r002Binding' of attribute 'binding' on element 'wsdl:port' > is not valid with respect to its type, 'QName'. > - The value 'r002schema:calculateRequest' of attribute 'element' on element > 'wsdl:part' is not valid with respect to its type, 'QName'. > - The value 'r002schema:calculateResponse' of attribute 'element' on element > 'wsdl:part' is not valid with respect to its type, 'QName'. > - Cannot resolve 'axis2:r002Binding' as a QName: the prefix 'axis2' is not > declared. > - Cannot resolve 'r002schema:calculateRequest' as a QName: the prefix > 'r002schema' is not declared. > - Cannot resolve 'r002schema:calculateResponse' as a QName: the prefix > 'r002schema' is not declared. -- 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
