Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SOAP 1.2 Support #48

Open
strelok1 opened this issue Oct 22, 2014 · 4 comments
Open

SOAP 1.2 Support #48

strelok1 opened this issue Oct 22, 2014 · 4 comments

Comments

@strelok1
Copy link

Hi,

It seems that SOAP 1.2 support is missing from this plugin. Is that correct?

Setting

proxyFactoryBindingId = 'http://schemas.xmlsoap.org/wsdl/soap12/'

seems to be insufficient as the message generated is still Soap 1.1. The only way I found it would work is by explicitly setting a SoapBindingConfiguration on the JaxWSProxyFactoryBean like so:

JaxWsProxyFactoryBean clientProxyFactory = new JaxWsProxyFactoryBean(serviceClass: serviceInterface,
                address: serviceEndpointAddress,
                bus: BusFactory.defaultBus)
       SoapBindingConfiguration configuration = new SoapBindingConfiguration()
       configuration.version = Soap12.instance
       clientProxyFactory.bindingConfig = configuration

I'm happy to provide a patch to add Soap 1.2 support (with a config flag for the client) unless I am missing something and it should actually work?

Cheers,
R

@ctoestreich
Copy link
Member

Easiest is to fork and submit pull request. I will gladly merge and release

@mariodavid
Copy link

Is there an update on this? I need to send SOAP 1.2 messages and i'm not sure, if this issue is already closed because the feature is implemented already? Can anyone give me a hint?
thx

@ctoestreich
Copy link
Member

I have fixed this so that using the proxyFactoryBindingId = 'http://schemas.xmlsoap.org/wsdl/soap12/' in the config should add a soapbindingconfig and work correctly now. Please get version 2.0.3 and test.

@ctoestreich ctoestreich reopened this Dec 1, 2014
@mariodavid
Copy link

hi, thanks for the quick response. It worked out quite well. I additionally had to configure the contentType in the config.groovy to be application/soap+xml as the SOAP 1.2 spec requires:

    myClient {
        wsdl = "..."

        proxyFactoryBindingId = 'http://schemas.xmlsoap.org/wsdl/soap12/'
        contentType = 'application/soap+xml; charset=UTF-8'

    }

What i'm wondering about is, if in the given wsdl document only a soap12 binding is declared, why wsdl2java does not recognizes the situation and creates a corrent client binding. Or do i get something wrong here? Would that even be possible?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants