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:

    public void getCountr(@RequestPayload GetCountryRequest request) {

    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”);

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

    Can you please tell me what’s wrong?

    Thank you!