Announcement Announcement Module
Collapse
No announcement yet.
Call two method using PayloadRootAnnotationMethodEndpointMapping with same argument Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Call two method using PayloadRootAnnotationMethodEndpointMapping with same argument

    I was able to create basic web service using PayloadRootAnnotationMethodEndpointMapping, but I am stuck when I am trying to create two methods with different name but having same arguments.
    I mean suppose I am having a object of TestRequest and TestResponse and in my end point I have two methods as endpoint methods named
    @PayloadRoot(localPart =TestRequest, namespace = http://myExample.com)
    public TestResponse connect(TestRequest req){}
    @PayloadRoot(localPart =TestRequest, namespace = http://myExample.com)
    public TestResponse makeCall(TestRequest req){}

    First method does some other functionality with req and second one does other. Now when I deploy my war with this endpoint, and xsd containing elements for request and response and when I try to download wsdl, stub contains only one method i.e connect dunno why. So due to this I am not able to call second method any how. Please suggest me what is alternative to this or any way to achieve what I want to do.

    Thanks
Working...
X