Dear Danial Kulp!

 

I’m sending the email again 

 

I have been working a problem since then one week

It is wrong the soap-envelope namespace when I using the CXF response by
CXF’s Provider

We are making the soap-envelope like this :

 

<SOAP-ENV:Envelope 

xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"; 

xmlns:ds="http://www.w3.org/2000/09/xmldsig#"; 

xmlns:kec="http://www.kec.or.kr/standard/Tax/"; 

xmlns:wsa="http://www.w3.org/2005/08/addressing"; 

xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-
wssecurity-secext-1.0.xsd" 

xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-
wssecurity-utility-1.0.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>

 

But when our client received soap-message’s envelope that is like this:

 

<SOAP-ENV:Envelope 

xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"; 

xmlns:ds="http://www.w3.org/2000/09/xmldsig#"; 

xmlns:kec="http://www.kec.or.kr/standard/Tax/"; 

xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"; 

xmlns:wsa="http://www.w3.org/2005/08/addressing"; 

xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-
wssecurity-secext-1.0.xsd" 

xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-
wssecurity-utility-1.0.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>

 

CXF’s provider added the
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"; perforce

We must have a namespace of SOAP-ENV only.

We are source code here for generating soap-envelope.

==>

SOAPEnvelope envvelope     = null;

envvelope = soapMessage.getSOAPPart().getEnvelope();

envvelope.addNamespaceDeclaration("wsu",      ITABContext.WSU_NAMESPACE);

envvelope.addNamespaceDeclaration("kec",
ITABContext.KEC_TARGET_NAMESPACE);

envvelope.addNamespaceDeclaration("wsa",      ITABContext.WSA_NAMESPACE);

envvelope.addNamespaceDeclaration("ds",
ITABContext.XML_DSIG_NAMESPACE);

envvelope.addNamespaceDeclaration("wsse",
ITABContext.WSS_SECURITY_NAMESPACE);

envvelope.addNamespaceDeclaration("xsd",
ITABContext.XML_SCHEMA_NAMESPACE);

envvelope.addNamespaceDeclaration("xsi",
ITABContext.XML_SCHEMA_INSTANCE_NAMESPACE);

 

Dear! Could you give me a solution??? Please…

Reply via email to