the wsdl is ok, wsdl2java will generate MyWebServiceFault_Exception instead of MyWebServiceFault
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <definitions targetNamespace="http://nono.com/" name="MyWebService" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:wsp="http://www.w3.org/ns/ws-policy" xmlns:tns="http://nono.com/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsp1_2="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"> <types> <xs:schema version="1.0" targetNamespace="http://com/nono/types" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="MyWebServiceFault" nillable="true"> <xs:complexType> <xs:sequence> <xs:element name="operationName" type="xs:string"/> <xs:element name="errorMessage" type="xs:string"/> </xs:sequence> </xs:complexType> </xs:element> </xs:schema> <xs:schema version="1.0" targetNamespace="http://nono.com/" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="MyWebServiceFault"> <xs:complexType> <xs:sequence> <xs:element name="operationName" type="xs:string"/> <xs:element name="errorMessage" type="xs:string"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="hello" type="tns:hello"/> <xs:element name="helloResponse" type="tns:helloResponse"/> <xs:complexType name="hello"> <xs:sequence> <xs:element name="name" type="xs:string" minOccurs="0"/> </xs:sequence> </xs:complexType> <xs:complexType name="helloResponse"> <xs:sequence> <xs:element name="return" type="xs:string" minOccurs="0"/> </xs:sequence> </xs:complexType> </xs:schema> </types> <message name="hello"> <part name="parameters" element="tns:hello"/> </message> <message name="helloResponse"> <part name="parameters" element="tns:helloResponse"/> </message> <message name="MyWebServiceFault"> <part name="fault" element="ns1:MyWebServiceFault" xmlns:ns1="http://com/nono/types"/> </message> <portType name="MyWebService"> <operation name="hello"> <input wsam:Action="http://nono.com/MyWebService/helloRequest" message="tns:hello"/> <output wsam:Action="http://nono.com/MyWebService/helloResponse" message="tns:helloResponse"/> <fault message="tns:MyWebServiceFault" name="MyWebServiceFault" wsam:Action="http://nono.com/MyWebService/hello/Fault/MyWebServiceFault"/> </operation> </portType> <binding name="MyWebServicePortBinding" type="tns:MyWebService"> <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/> <operation name="hello"> <soap:operation soapAction=""/> <input> <soap:body use="literal"/> </input> <output> <soap:body use="literal"/> </output> <fault name="MyWebServiceFault"> <soap:fault name="MyWebServiceFault" use="literal"/> </fault> </operation> </binding> <service name="MyWebService"> <port name="MyWebServicePort" binding="tns:MyWebServicePortBinding"> <soap:address location="REPLACE_WITH_ACTUAL_URL"/> </port> </service> </definitions> -- View this message in context: http://camel.465427.n5.nabble.com/CustomSoapFault-Problem-tp5751844p5751989.html Sent from the Camel - Users mailing list archive at Nabble.com.
