67,513
社区成员
发帖
与我相关
我的任务
分享
public static void main(String[] args)
{
try
{
String xml = "TestInfo";
/**设置访问点*/
String endpoint = "http://8.8.8.8:8080/CrmWeb/services/DEPGRPService";
/**创建 call*/
Call call = (Call) new Service().createCall();
/**设置操作名 */
call.setOperationName("queryMessageInfo");
/**设置访问点 */
call.setTargetEndpointAddress(new java.net.URL(endpoint));
/**调用服务,返回值*/
String ret = (String) call.invoke(new Object[]{xml});
System.out.println("返回值是:" + ret);
} catch (Exception e){
e.printStackTrace();
}
}