I need to get the target namespace
"targetNamespace="http://schemas.bankconnect.dk/2014""; of incomming soap
message:

<?xml version="1.0" encoding="UTF-8"?>

<wsdl:definitions xmlns:xs="http://www.w3.org/2001/XMLSchema";
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
xmlns:tns="http://schemas.bankconnect.dk/2014";
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
xmlns:ns1="http://schemas.xmlsoap.org/soap/http"; name="BankConnect"
targetNamespace="http://schemas.bankconnect.dk/2014";>
        <wsdl:types>


My Route:


 
from("cxf:bean:hubws?dataFormat=MESSAGE").streamCaching().onException(Exception.class)
                .process(new LogError()).end()
                .process(new StopRequest())
                .bean(AddIpBean.class).bean(SetRoutingKey.class)
                .bean(Util.class,
"setMiljo").multicast().to("direct:channel1", "direct:channel2",
"direct:channel3")
                .aggregationStrategy(new
HubAggregationStrategy()).stopOnException();





My AddIpBean i have this code ....


     public Document enrich(@Headers Map<?,?> requestHeaders, Document doc)
throws HubException  {
        
        
        
        String namespaceURI = doc.getNamespaceURI();
        

     }


The namespaceURI is null, to get the namespaceUri i have to set the parser
to be namespaceAware, but the  doc is parsed behind the scenes.
How do i get the target name space ?

Frank



--
View this message in context: 
http://camel.465427.n5.nabble.com/The-doc-isent-namespaceAware-how-to-set-this-up-tp5756682.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to