Wrong Web Service Name Space Is Used And Unexpected SOAP Envelope Is Generated By Camel

Solution Verified - Updated -

Issue

With the following Camel route, sometimes it generates an
unexpected soap envelope. But sometimes not.

<cxf:cxfEndpoint address="${ADDRESS}" id="sampleEndpoint" serviceClass="sample.DemoWS"/>

~~skip~~

<to id="demo" uri="cxf:bean:sampleEndpoint"/>
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;
import javax.xml.bind.annotation.XmlSeeAlso;

@WebService(targetNamespace = "http://demo", name = "demo")
@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
public interface DemoWS {

Due to the unexpected soap envelope, SoapFault occurs.

Environment

  • Red Hat Fuse
    • 6.3

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content