I am using Apache CXF 2.3.1 with JBoss 6.

I have several web services that are configured to use WS-Security in a 
java-first method.  I have added the annotation 
@BindingType(javax.xml.ws.soap.SOAPBinding.SOAP12HTTP_BINDING)  and now my web 
services are deployed using Soap 1.2.

However, in order to get the WS-Security working, I had to change the 
signatureParts and encryptionParts in my jboss-cxf.xml configuration file to 
replace the Soap 1.1 schema ref with Soap 1.2 like this:

<!--  <entry key="encryptionParts" 
value="{Content}{http://schemas.xmlsoap.org/soap/envelope/}Body"; />  -->
<entry key="encryptionParts" 
value="{Content}{http://www.w3.org/2003/05/soap-envelope}Body"; />
(signatureParts in a similar manner...)

Which I presume will fail if I receive a Soap 1.1 request.

How can I specify that either Soap 1.1 or Soap 1.2 may be used?


-- Andrew Hart
Software Engineer
Data Networks Corporation

Reply via email to