Spring WS WS-Addressing @Action Example

You may also like...

  • figds

    Hi, I followed your tutorial and it worked fine, but there is something I’m trying to do but can’t get it to work.

    I want to two methods like this:

    @Action(“http://localhost/ws/getCountr”)
    public void getCountr(@RequestPayload GetCountryRequest request) {
    }

    @Action(“http://localhost/ws/getCountry”)
    @ResponsePayload
    public GetCountryResponse getCountry(@RequestPayload GetCountryRequest request) {
    }

    I add two properties for the soapaction:
    Properties soapActions = new Properties();
    soapActions.setProperty(“getCountr”, “http://localhost/ws/getCountr”);
    soapActions.setProperty(“getCountry”, “http://localhost/ws/getCountry”);
    wsdl11Definition.setSoapActions(soapActions);

    When I check the wsdl, the second method does not appear.

    Can you please tell me what’s wrong?

    Thank you!