wsdl2java generates errorneous code ----------------------------------- Key: CXF-1723 URL: https://issues.apache.org/jira/browse/CXF-1723 Project: CXF Issue Type: Bug Components: Tooling Affects Versions: 2.1.1 Environment: Windows XP 5.1, java 1.5.0_12 Reporter: Markus Schmid
Code generation from "test.wsdl" results in errorneous java code "DeliverFaultMessage.java" (without exceptions/error/warnings of wsdl2java). ---- test.wsdl ---- START <wsdl:definitions name="test" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:types="http://www.abc.com/mb/schema" xmlns:tns="http://www.abc.com/mb" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:SCXSD="http://www.abc.com/mb/schema.ws" targetNamespace="http://www.abc.com/mb"> <wsdl:types> <schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:xmime="http://www.w3.org/2005/05/xmlmime" targetNamespace="http://www.abc.com/mb/schema" elementFormDefault="qualified"> <xsd:element name="data" type="xsd:string"/> <xsd:element name="comment" type="xsd:string"/> </schema> </wsdl:types> <wsdl:message name="DeliverRequestMessage"> <wsdl:part name="header" element="types:data"/> <wsdl:part name="body" element="types:data"/> </wsdl:message> <wsdl:message name="DeliverResponseMessage"> <wsdl:part name="header" element="types:data"/> <wsdl:part name="body" element="types:data"/> </wsdl:message> <wsdl:message name="DeliverFaultMessage"> <wsdl:part name="comment1" element="types:comment"/> <wsdl:part name="comment2" element="types:comment"/> </wsdl:message> <wsdl:portType name="DeliverPortType"> <wsdl:operation name="Deliver"> <wsdl:input message="tns:DeliverRequestMessage"/> <wsdl:output message="tns:DeliverResponseMessage"/> <wsdl:fault name="runtimeexception" message="tns:DeliverFaultMessage"/> </wsdl:operation> </wsdl:portType> <wsdl:binding name="DeliveryBinding" type="tns:DeliverPortType"> <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/> <wsdl:operation name="Deliver"> <soap:operation soapAction=""/> <wsdl:input> <soap:header message="tns:DeliverRequestMessage" part="header" use="literal"/> <soap:body use="literal" parts="body"/> </wsdl:input> <wsdl:output> <soap:header message="tns:DeliverResponseMessage" part="header" use="literal"/> <soap:body use="literal" parts="body"/> </wsdl:output> <wsdl:fault name="runtimeexception"> <soap:fault name="runtimeexception" use="literal"/> </wsdl:fault> </wsdl:operation> </wsdl:binding> <wsdl:service name="DeliverService"> <wsdl:port name="DeliverPort" binding="tns:DeliveryBinding"> <soap:address location="http://localhost:1001/deliver"/> </wsdl:port> </wsdl:service> </wsdl:definitions> ---- test.wsdl ---- END -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.