-
Sep 4th, 2012, 11:40 AM
#1
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules