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","","","","");
}
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","","","","");
}