67,513
社区成员
发帖
与我相关
我的任务
分享
Service service = new Service();
Call call = (Call)service.createCall();
call.setTargetEndpointAddress(new java.net.URL((String)SysConfig.application.getAttribute("WEBSERVICECLIENT_SMS")));//设置目标地址
call.setUseSOAPAction(true);
call.setSOAPActionURI("http://Huamai.com/PostSms");//
call.setOperationName(new QName("http://Huamai.com/","PostSms"));//操作的方法
//增加相应参数
//注意:要以new QName(namespace,paratmeter1)的方式,否则服务端接收到的数据为空
call.addParameter(new QName("http://Huamai.com/","SenderMobile"), org.apache.axis.encoding.XMLType.XSD_STRING,javax.xml.rpc.ParameterMode.IN);//发送人手机号
call.addParameter(new QName("http://Huamai.com/","ReceiverMobile"), org.apache.axis.encoding.XMLType.XSD_STRING, javax.xml.rpc.ParameterMode.IN);//接收人手机号
call.addParameter(new QName("http://Huamai.com/","Message"), org.apache.axis.encoding.XMLType.XSD_STRING,javax.xml.rpc.ParameterMode.IN);//短信内容
call.setReturnType(org.apache.axis.encoding.XMLType.XSD_INT);//返回值类型
Integer result = (Integer) call.invoke(new Object[]{"",po.getStrMobile(),"您有一条关于收文流程-标题为\""+recDocMain.getStrDocTitle()+"\"的任务即将于"+recDocMain.getStrCopyReportUnit()+" 结束,请及时处理!"});