二次开发需求:在领料出库单上搭建审核流程,当用户审核单据时,将出库单的信息发送给ERP系统二次开发设计在领料出库单审核后,通过WEBSERVICE将数据上传至中间库(中间库是EAS搭建的一个中间库帐套),由ERP系统定时向中间库读取数据二次开发代码创建领料出库单CONTROLLBEAN的扩展类MaterialReqBillControllerBeanEx,在该类中覆盖审核方法:_passAudit将审核后的单据数据,调用中间库帐套的WEBSERVICE,将数据上传至中间库protectedvoid_passAudit(Contextctx,IObjectPKpk,IObjectValuemodel)throwsBOSException,EASBizException{super._passAudit(ctx,pk,model);MaterialReqBillInfoinfo=MaterialReqBillFactory.getLocalInstance(ctx).getMaterialReqBillInfo(newObjectStringPK(pk.toString()));StorageOrgUnitInfostore=StorageOrgUnitFactory.getLocalInstance(ctx).getStorageOrgUnitInfo(newObjectStringPK(info.getStorageOrgUnit().getId().toString()));if(LPCompanyFactory.getLocalInstance(ctx).isInput(store.getCU().getId().toString())){}else{if(info.getBaseStatus().getValue()==BillBaseStatusEnum.AUDITED_VALUE){try{if(newWSInputCommon().WSInputData(ctx,true,"42",pk.toString())){}else{MsgBox.showWarning("数据上传失败,请使用手工上传功能完成数据上传");}(这段代码是上传数据)}catch(RemoteExceptione){//TODOAuto-generatedcatchblocke.printStackTrace();}catch(ServiceExceptione){//TODOAuto-generatedcatchblocke.printStackTrace();}}}}上传数据的方法newWSInputCommon().WSInputDatapublicbooleanWSInputData(Contextctx,booleanisAudit,Stringftype,Stringfid)throwsRemoteException,ServiceException,BOSException{Stringurl="";try{url=this.easLogin(ctx);}catch(Exceptione){e.printStackTrace();MsgBox.showWarning("登陆中间库失败!");returnfalse;}try{if(ftype.equals("41")){returninputPurInWarehs(url,fid,isAudit);}if(ftype.equals("42")){returninputMaterialReq(ctx,url,fid,isAudit);}if(ftype.equals("43")){returninputPurBill(ctx,url,fid,isAudit);}if(ftype.equals("01")){returninputMaterial(url,fid);}if(ftype.equals("03")){returninputPurBill(ctx,url,fid,isAudit);}}catch(EASBizExceptione){//TODOAuto-generatedcatchblockMsgBox.showWarning(e.toString());}returnfalse;}easLogin(由于上传数据的方法要写到服务端,因为无法调用EAS发布的调用EASLOGIN的方法,所以我直接调用的是登录的WEBSERVICE)publicstaticStringeasLogin(Contextctx)throwsRemoteException,ServiceException,BOSException,EASBizException{Stringendpoint;Serviceservice;Callcall;try{endpoint="http://10.1.129.82:6888/ormrpc/services/EASLogin?wsdl";service=newService();call=(Call)service.createCall();call.setTargetEndpointAddress(endpoint);call.setOperationName("login");//WSDL里面描述的接口名称call.addParameter("userName",org.apache.axis.encoding.XMLType.XSD_STRING,javax.xml.rpc.ParameterMode.IN);//接口的参数call.addParameter("password",org.apache.axis.encoding.XMLType.XSD_STRING,javax.xml.rpc.ParameterMode.IN);//接口的参数call.addParameter("slnName",org.apache.axis.encoding.XMLType.XSD_STRING,javax.xml.rpc.ParameterMode.IN);//接口的参数call.addParameter("dcName",org.apache.axis.encoding.XMLType.XSD_STRING,javax.xml.rpc.ParameterMode.IN);//接口的参数call.addParameter("language",org.apache.axis.encoding.XMLType.XSD_STRING,javax.xml.rpc.ParameterMode.IN);//接口的参数call.addParameter("dbType",org.apache.axis.encoding.XMLType.XSD_INT,javax.xml.rpc.ParameterMode.IN);//接口的参数Object_resp=call.invoke(newObject[]{"user","","eas",datacenter,"L2",2});}catch(Exceptione){e.printStackTrace();}System.out.println("调用SERVICE填写SAP凭证号");returnurl;}问题:这样写,在本地的开发环境,可以将数据上传至中间库,但发布到测试服务上,单据审核了,但数据却无法上传至中间库