Hi team,
     I am looking for a technique which will help me change the default
namespace (ns1 or ns2) added by Camel to a custom namespace (ser).

Below is our XML.

<soap:Envelope xmlns:soap="http://xxxx/soap/envelope/";>
   <soap:Header>
      <AuthenticationToken xmlns="http://xxxx";>
         <Username>xxxx</Username>
         <Password>xxxx</Password>
      </AuthenticationToken>
   </soap:Header>
   <soap:Body>
      <ns1:quote xmlns:ns1="https://xxxx";>
         <PomsRequest>

I would like to change the namespace (ns1) to (ser), since that is what our
endpoint is expecting.

We tried changing the target URI from our code using below logic.

String uri = "cxf://" + url + "?wsdlURL=" + wsdlUrl + "" +
                "&synchronous=true" +
                "&dataFormat=" + dataFormat.name() +
                "&loggingFeatureEnabled=true";
        if (dataFormat == DataFormat.PAYLOAD) {
            uri = uri + "&defaultOperationName=" + operationName;
        }
       * uri = uri +
"&endpointName='ser:PomsSrvsWSDLSOAP'&serviceName='ser:PomsSrvsWSDL'";*

But it did not do any difference.

Can you let me know, if there is any inbuilt API that can be used to
customise the namespace.



--
View this message in context: 
http://camel.465427.n5.nabble.com/how-to-change-default-namespace-ns1-or-ns2-added-by-Camel-to-custom-namespace-tp5789743.html
Sent from the Camel Development mailing list archive at Nabble.com.

Reply via email to