Zdravím všechny,

pokouším se rozchodit webové služby komunikující přes SOAP 1.2 a pořád se mi to nedaří. Používám xfire + spring. Vyzkoušel jsem už různá nastavení, ale služba je pořád vystavována s defaultním SOAP 1.1 bindingem.
Nebo není vystavena vůbec.

Takto mám nastavenou službu.
<service>
        <name>HelloWebService</name>
        <namespace>http://hello.org</namespace>
        <serviceClass>cz.chali.test.HelloWebService</serviceClass>
        <serviceFactory>jsr181</serviceFactory>
        <style>document</style>
        <use>literal</use>
        <createDefaultBindings>false</createDefaultBindings>
        <bindings>
            <soap12Binding name="WebServiceSoap12Binding"
transport="http://www.w3.org/2003/05/soap/bindings/HTTP/"; allowUndefinedEndpoints="true"/>
        </bindings>
</service>

a třída pro službu:

@WebService(endpointInterface = "cz.bellman.cobs.COBSTaskpoolWebServiceInterface")
public class HelloImpl  implements Hello {

        String sayHello(String name){
                return name ", hello";
        }
}

WebService()
public interface Hello {
    @WebMethod
    String sayHello(String name);
}

Nemá někdo nějaký nápad, případně jiný framework který by se SOAP 1.2 fungoval?

Martin Chalupa

Odpovedet emailem