标签:
1 String url="http://IP:端口/LisService.asmx";
2 String methodName="GetLisResultForBlood";
3 String soapActionURI = "http://tempuri.org/GetLisResultForBlood";
4 String namespace = "http://tempuri.org/";
5
6 Call call = (Call) new Service().createCall();
7
8 call.setTargetEndpointAddress(url);
9 call.setUseSOAPAction(true);
10 call.setSOAPActionURI(soapActionURI);
11 call.setOperationName(new QName(namespace,methodName));
12
13 call.addParameter(new QName(namespace, "patientId"), XMLType.XSD_STRING,ParameterMode.IN);
14 call.addParameter(new QName(namespace, "order_item"), XMLType.XSD_STRING,ParameterMode.IN);
15 call.setReturnType(XMLType.XSD_STRING);
16
17 String[] str = new String[2];
18 str[0] = patiId;
19 str[1] = "01";
20
21 Object obj = call.invoke(str);
22 System.out.println("obj + " + obj);
标签:
原文地址:http://www.cnblogs.com/quietwalk/p/5786243.html