cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From MARTELLI Julien <>
Subject Unable to set Soap Version to 1.2
Date Wed, 19 Jan 2011 08:54:08 GMT
Hi all,

I am facing a problem with the SOAP message version.
I am really stuck with this problem so any help would be appreciated.

OK so here is the context.

I have a WSDL file from which I generate sources using the wsdl2java CXF Maven plugin.
Here is an extract of my WSDL file :

<definitions xmlns:soap=""
  xmlns="" xmlns:xsd=""
  xmlns:ihe="urn:ihe:iti:xds-b:2007" xmlns:rs="urn:oasis:names:tc:ebxml-regrep:xsd:rs:3.0"
  targetNamespace="urn:ihe:iti:xds-b:2007" xmlns:soap12=""
  xmlns:wsaw="" name="DocumentRepository">
<binding name="DocumentRepository_Binding" type="ihe:DocumentRepository_PortType">
    <soap12:binding style="document" transport=""/>
    <operation name="DocumentRepository_ProvideAndRegisterDocumentSet-b">
      <soap12:operation soapAction="urn:ihe:iti:2007:ProvideAndRegisterDocumentSet-b"/>
        <soap12:body use="literal"/>
        <soap12:body use="literal"/>
    <operation name="DocumentRepository_RetrieveDocumentSet">
      <soap12:operation soapAction="urn:ihe:iti:2007:RetrieveDocumentSet"/>
        <soap12:body use="literal"/>
        <soap12:body use="literal"/>
<service name="DocumentRepository_Service">
    <port name="DocumentRepository_Port_Soap12" binding="ihe:DocumentRepository_Binding">
      <soap12:address location="https://servicelocation/DocumentRepository_Service"/>

On the generated interface there is no annotation concerning the Binding :

@WebService(targetNamespace = "urn:ihe:iti:xds-b:2007", name = "DocumentRepository_PortType")
public interface DocumentRepositoryPortType {

Then I use the generated classes to contact the Web Service and my client is not configured
via Spring but build programmatically.

The problem is that the generated SOAP message is a SOAP 1.1 message...
I am not able to find a way to configure my client to use a SOAP 1.2 binding, and I tried
to add the annotation @BindingType(
on the generated interface (as someone suggested to me on this stackoverflow post :
but it didn't change anything...
Maybe it's because I configure my client without Spring and thus the default Soap 1.1 version
is used...
I really don't know...

Do you guys have an idea ?

Thanks in advance !

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message