There are two MyWebServiceFault element definition in wsdl. Can you remove the one which target namespace is "http://nono.com/“?
-- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English) http://jnn.iteye.com (Chinese) Twitter: willemjiang Weibo: 姜宁willem On June 6, 2014 at 9:04:42 PM, nono (yan.w...@db-is.com) wrote: > the wsdl is ok, wsdl2java will generate MyWebServiceFault_Exception instead > of > MyWebServiceFault > > > > > 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"> > > > > xmlns:xs="http://www.w3.org/2001/XMLSchema"> > > > > > > > > > > > > xmlns:xs="http://www.w3.org/2001/XMLSchema"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > xmlns:ns1="http://com/nono/types"/> > > > > > message="tns:hello"/> > > message="tns:helloResponse"/> > > wsam:Action="http://nono.com/MyWebService/hello/Fault/MyWebServiceFault"/> > > > > > style="document"/> > > > > > > > > > > > > > > > > > > > > > > > -- > 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. >