Spring WS WS-Addressing @Action Example

You may also like...

Subscribe
Notify of
guest
3 Comments
Oldest
Newest
Inline Feedbacks
View all comments
figds
figds
February 8, 2017 17:02

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!

Amarnath
Amarnath
October 17, 2017 19:49

Dude you are awesome. Small things matter. Thank you.

Amarnath
Amarnath
October 17, 2017 19:49

Dude you are awesome. Small things matter. Thank you.

3
0
Would love your thoughts, please comment.x
()
x