web stats
Mirth Community - View Single Post - custom web service listener source
View Single Post
  #3  
Old 05-04-2015, 09:27 AM
tmcdevitt tmcdevitt is offline
OBX.3 Kenobi
 
Join Date: Oct 2014
Posts: 125
tmcdevitt is on a distinguished road
Exclamation

Sorry I am using Mirth 3.2.1.7650 below is the class, I am want to call AvaibleOrder WebMethod. The resource is set for the default resource. directory is custom-lib and the loaded libraries are listed. I also checked the channel library resources are set for the default resource. Below is the class did I not create the jar correct?

package com.custom.webservice;

import javax.jws.WebService;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import java.util.ArrayList;
import javax.xml.ws.RequestWrapper;
import javax.xml.ws.ResponseWrapper;

import com.mirth.connect.connectors.ws.AcceptMessage;
import com.mirth.connect.connectors.ws.WebServiceReceiver ;




@WebService
public class CustomAcceptMessage extends AcceptMessage {


public CustomAcceptMessage(WebServiceReceiver webServiceReceiver){
super(webServiceReceiver);
}


@WebMethod(operationName = "hello")
public String hello(@WebParam(name = "name") String txt) {
return "dHello " + txt + " !";
}
@WebMethod(operationName = "CheckOrders")
public String AvaibleOrder(@WebParam(name = "OrderID")Integer OrderID,@WebParam(name = "ArrDoc")ArrayList ArrDoc){
return "S";


}
}

Last edited by tmcdevitt; 05-04-2015 at 09:47 AM.
Reply With Quote