public Map pushDate(String urladd, String apikey, String mobile,
String photourl, String description, String partnerid,
String nickname, String gender, String dob, String email) {
Map rMap = null;
try {
String nameSpace = “urn:candidateinterfacewl”;
String endPoint = urladd;
Service service = new Service();
Call call = null;
call = (Call) service.createCall();
call.setTargetEndpointAddress(new URL(endPoint));
call.setOperationName(new QName(nameSpace, “mobilereg”));
call.addParameter(new QName(nameSpace, “apikey”),
XMLType.XSD_STRING, ParameterMode.IN);
call.addParameter(new QName(nameSpace, “mobile”),
XMLType.XSD_STRING, ParameterMode.IN);
call.addParameter(new QName(nameSpace, “photourl”),
XMLType.XSD_STRING, ParameterMode.IN);
call.addParameter(new QName(nameSpace, “description”),
XMLType.XSD_STRING, ParameterMode.IN);
call.addParameter(new QName(nameSpace, “partnerid”),
XMLType.XSD_STRING, ParameterMode.IN);
call.addParameter(new QName(nameSpace, “nickname”),
XMLType.XSD_STRING, ParameterMode.IN);
call.addParameter(new QName(nameSpace, “gender”),
XMLType.XSD_STRING, ParameterMode.IN);
call.addParameter(new QName(nameSpace, “dob”), XMLType.XSD_STRING,
ParameterMode.IN);
call.addParameter(new QName(nameSpace, “email”),
XMLType.XSD_STRING, ParameterMode.IN);
call.addParameter(new QName(nameSpace, “status”),
XMLType.XSD_STRING, ParameterMode.OUT);
call.addParameter(new QName(nameSpace, “candidateid”),
XMLType.XSD_STRING, ParameterMode.OUT);
call.addParameter(new QName(nameSpace, “mobileurl”),
XMLType.XSD_STRING, ParameterMode.OUT);
call.addParameter(new QName(nameSpace, “errorno”),
XMLType.XSD_STRING, ParameterMode.OUT);
call.addParameter(new QName(nameSpace, “errormessage”),
XMLType.XSD_STRING, ParameterMode.OUT);
call.setReturnType(XMLType.AXIS_VOID);
call.setUseSOAPAction(true);
call.setSOAPActionURI(nameSpace + “/mobiler”);
call.invoke(new Object[] { apikey, mobile, photourl, description,
partnerid, nickname, gender, dob, email });
rMap = call.getOutputParams();
// System.out.println(“status “+mp.get(new
// javax.xml.namespace.QName(“status”)));
// System.out.println(“candidatid “+mp.get(new
// javax.xml.namespace.QName(“candidateid”)));
// System.out.println(“mobileurl “+mp.get(new
// javax.xml.namespace.QName(“mobileurl”)));
// System.out.println(“errorno “+mp.get(new
// javax.xml.namespace.QName(“errorno”)));
// System.out.println(“errormessage “+mp.get(new
// javax.xml.namespace.QName(“errormessage”)));
} catch (Exception e) {
e.printStackTrace();
}
return rMap;
}
public static void main(String[] args) {
new PCC3MMS().pushDate(“http://2.1.1.1/intecand.php”,”ksdfljlsdfljl”,”kkkkk”,”http://1.1.1.1/a/a”,”http://1.1.1.1/a/b”,”888″,””,””,””,””);
}
发布者:全栈程序员-用户IM,转载请注明出处:https://javaforall.cn/100557.html原文链接:https://javaforall.cn
【正版授权,激活自己账号】: Jetbrains全家桶Ide使用,1年售后保障,每天仅需1毛
【官方授权 正版激活】: 官方授权 正版激活 支持Jetbrains家族下所有IDE 使用个人JB账号...