public String callService(Object[] parmObj) {
String res = "";
try {
Service service = new Service();
Call call = (Call) service.createCall();
call.setTargetEndpointAddress(Sysconfig.sys_SoapUrl);
call.setOperationName(new QName(Sysconfig.sys_SoapNamespace, Sysconfig.sys_UploadOtherImg));
call.setSOAPActionURI(Sysconfig.sys_SoapActionUrl);
call.setUseSOAPAction(true);
call.addParameter(new QName(Sysconfig.sys_SoapNamespace, Sysconfig.sys_ParamUploadIP), XMLType.XSD_STRING, ParameterMode.IN);
call.addParameter(new QName(Sysconfig.sys_SoapNamespace, Sysconfig.sys_ParamOptType), XMLType.XSD_INT, ParameterMode.IN);
call.addParameter(new QName(Sysconfig.sys_SoapNamespace, Sysconfig.sys_ParamOptName), XMLType.XSD_STRING, ParameterMode.IN);
call.addParameter(new QName(Sysconfig.sys_SoapNamespace, Sysconfig.sys_ParamImgDesc), XMLType.XSD_STRING, ParameterMode.IN);
call.addParameter(new QName(Sysconfig.sys_SoapNamespace, Sysconfig.sys_ParamFileStream), XMLType.SOAP_BASE64BINARY, ParameterMode.IN);
call.addParameter(new QName(Sysconfig.sys_SoapNamespace, Sysconfig.sys_ParamImgType), XMLType.XSD_STRING, ParameterMode.IN);
call.setReturnType(XMLType.XSD_STRING);
res = (String) call.invoke(parmObj);
} catch (RemoteException ex) {
Log.writeErrorMsg(getClass(),ex,"RemoteException");
} catch (Exception e) {
Log.writeErrorMsg(getClass(),e,"Exception");
} finally {
return res;
}
}
其中:
soapUrl=
uploadOtherImg=UploadOtherImageFile
soapActionUrl=
soapNamespace=
paramUploadIP=upload_ip
paramOptType=operator_type
paramOptName=operator_name
paramImgDesc=image_desc
paramFileStream=filestream
paramImgType=imageType
阅读(4129) | 评论(0) | 转发(0) |