Hi I have cxf client which generates soap message where the ns2 namespace is inside searchRequest tag. I am using cfx version 2.0.2. The java classes are generated using wsdl2java.
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <ns2:searchRequest xmlns:ns2="http://xxx.yy.com/simplesoap/"> <search_name>SomeName</search_name> </ns2:searchRequest> </soap:Body> </soap:Envelope> The web service gives me error because it wants the ns2 namespace to be in first Line of msg like this. Then it's working Ok. <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns2="http://xxx.yy.com/simplesoap/"> <soap:Body> <ns2:searchRequest> <search_name>SomeNome</search_name> </ns2:searchRequest> </soap:Body> </soap:Envelope> How can i tell cfx to generate the soap message where the namespace is in the first line of the msg. -- View this message in context: http://www.nabble.com/Cxf-Soap-message-namespace-missing-tf4554470.html#a12997352 Sent from the cxf-user mailing list archive at Nabble.com.
