On Friday, February 03, 2012 1:12:52 PM Christopher Magnollay wrote: > Hi All, > > I am trying to use the CXF tool to generate java code from a legacy WSDL > file. I was not the one who wrote it (and i suspect he did it by hand) and > the cxf maven plugin is telling me that the WSDL is invalid (as is soapUI). > I would like to make changes to the WSDL to make it correct but without > changing any of the functionality. > > Error: > > [ERROR] Caused by : WSDLException (at > /wsdl:definitions/wsdl:binding[1]/wsdl:operation[1]): > faultCode=INVALID_WSDL:ibute 'soapAction'. Extension attributes must be in > a namespace other than WSDL's. > > WSDL: http://pastebin.com/1jP3Cy5x > > Any help regarding this matter would be most appreciated.
The line: <wsdl:operation name="GetSessionID" soapAction="http://api.voiceforge.com/SOAPI#GetSessionID"> Remove the soapAction attribute. It's on the <soap:operation> element internal to it which is where it belongs. It doesn't belong on the wsdl:operation. I'm also concerned about the RequestNamespace and ResponseNamespace attributes on: <soap:operation soapAction="https://api.voiceforge.com/SOAPI#GetSessionID" RequestNamespace="https://api.voiceforge.com/SOAPI" ResponseNamespace="https://api.voiceforge.com/SOAPI" style="rpc" /> They likely also need to be removed. Dan > > Chris Magnollay > Software Developer > Cepstral, LLC. -- Daniel Kulp dk...@apache.org - http://dankulp.com/blog Talend Community Coder - http://coders.talend.com