خرید بک لینک

Vote count: 0

I am trying to integrate my application with a third party tool which is exposed through a web service. The mode of communication is asynchronous. I send the soap request and get the ack for the same, this part is fine.The third party sends the response for my request to my webservice. Problem i am facing is the Response body has different structure based on my request. I have defined one method in my webservice which listens the response and sends ack to the third party tool which is as below import javax.jws.WebService; import javax.jws.HandlerChain; import javax.jws.WebMethod;

         @WebService(targetNamespace = "http://schemas.shaik.com/cai3g1.2/")
         @HandlerChain(file = "handler.xml")
         public class MyFirstWebService {
         @WebMethod(operationName = "CreateResponse")
         public void sendRequest() {
          }
         }

This works fine when the body is as below 6B29FC40-CA47-1067-B31D-00DD010662DA 1234567890 It wont work when the response message is as below 6B29FC40-CA47-1067-B31D-00DD010662DA 1234567890 I tried to create another method in the webservice as below but its throwing error saying duplicate methods with name sendrequest

             @WebMethod(operationName = "GetResponse")
               public void sendRequest() {
                   }

please help in fixing this

asked 29 secs ago

برچسب: نویسنده: استخدام کار تاريخ: چهارشنبه 16 تير 1395 ساعت: 5:17

صفحه بندی