the following is the interface document:
Webservice address: http://172.16.173.88:8081/Service1.asmx?wsdl
Unified call method name:
string Request (string MethodName, string inParaXml, out ref string outParaXml)
MethodName = Namespace +". "+ method name
Eg: patient basic information BRJBXX
Request (" HisSvr.GetBRJBXXInfo ", inParaXml, out outParaXml)
input parameter inParaXml:
xml version="1.0" encoding="utf-8"? >
<Items>
<Item>
<strStartDate>2016-10-14 09:06:10</strStartDate>
<strEndDate>2016-10-14 09:08:01</strEndDate>
<strIndex>697386</strIndex>
<strParm></strParm>
</Item>
</Items>
< outParaXml >: < CDATA [
xml version="1.0" encoding="utf-8"? >
< DataSet >
< TableName= "BRJBXXList" >
< Row > < BAH > 314586 < / BAH > < ZYH > 697386 < / ZYH > < BFH > < / BFH > < CWH > 5B+37 < / CWH > < GCYSBM > < GCYSMC > < / GCYSMC > < RYRQ > 7:57:00 on 2016-10-13 < / RYRQ > < CYRQ > 2016-10-17 16:54:27 < / CYRQ > < BRXM > Li Ningning < < / GCYSBM > < GCYSMC > < / GCYSMC > < RYRQ > < / RYRQ > < CYRQ > 2016-10-17 < / CYRQ > < BRXM > Li Ningning < < / GCYSBM > < GCYSMC > < / GCYSMC > < RYRQ > < / RYRQ > < CYRQ > 2016-10-17 < / CYRQ > < BRXM > Li Ningning < / RYZDBM > < RYZDMC > < / RYZDMC > < SSZDBM > < / SSZDBM > < SSZDMC > < / SSZDMC > < BLZDBM > < / BLZDBM > < BLZDMC > < / BLZDMC > < GRZDBM > < / GRZDBM > < GRZDMC > < / GRZDMC > < CYZDBM > 83895 < / CYZDBM > < CYZDMC > mild anemia < / CYZDMC > < JRZLBZ > < / JRZLBZ > < GRBZ > < / GRBZ > < XSRBZ > < / XSRBZ >
< / Row >
< / Table >
< / DataSet >
] >
the java calling method is:
public static void test3() {
Service service = new Service();
Call call;
try {
call = (Call) service.createCall();
call.setTargetEndpointAddress(url);
call.setUseSOAPAction(true);
call.setSOAPActionURI(soapActionURI);
call.setOperationName(new QName(namespace, methodName));
call.addParameter(new QName(namespace, "MethodName"), XMLType.XSD_STRING,
ParameterMode.IN);//
call.addParameter(new QName(namespace, "inParaXml"), XMLType.XSD_STRING,
ParameterMode.IN);//
call.addParameter(new QName(namespace, "outParaXml"), XMLType.XSD_STRING,
ParameterMode.IN);//
call.setReturnType(XMLType.XSD_STRING);
String inparam = "<?xml version="1.0" encoding="utf-8" ?>"+
"<Items>"+
"<Item>"+
"<strStartDate>2016-10-14 09:06:10</strStartDate>"+
"<strEndDate>2016-10-14 09:08:01</strEndDate>"+
"<strIndex>697386</strIndex>"+
"<strParm></strParm>"+
"</Item>"+
"</Items>";
String out=null;
String result = (String) call.invoke(new Object[] {"HisSvr.GetBRJBXXInfo",inparam,out });
System.out.println(out);
System.out.println(result);
} catch (ServiceException e) {
e.printStackTrace();
} catch (RemoteException e) {
e.printStackTrace();
}
}
now the interface is connected, but I don"t know how to get the value in the C-sharp output parameter through java