SSH应用总结--接口

来源:互联网 发布:做好淘宝网的免费流量 编辑:程序博客网 时间:2024/05/02 03:10

寿险工单app发送接口

Created with Raphaël 2.1.0queryLhSheetNewplyAction.toAppqueryLhSheetNewplyAction.toAppappScheduleService.CreateTaskAppappScheduleService.CreateTaskAppHttpClientUtil.doPostHttpClientUtil.doPostclient.executeMethodclient.executeMethodlhSheetSendLogEntitynewLhSheetSendLogEntitypostMethod
LhSheetSendLogEntity lhSheetSendLogEntitynew=lhSheetNewplyService.findLhSheetSendLogEntityBySheetNo(queryLhSheetNewplyForm.getSheetno(), queryLhSheetNewplyForm.getLogEntityMethod(),null);
import org.apache.commons.httpclient.HttpClient;import org.apache.commons.httpclient.methods.PostMethod;PostMethod postMethod = new PostMethod(url);HttpClient client = new HttpClient();postMethod.getParams().setParameter(HttpMethodParams.HTTP_CONTENT_CHARSET,encoding);postMethod.addParameter("userid",userid==null?"":userid);...client.executeMethod(postMethod);

车险报案接口

Created with Raphaël 2.1.0caseCarBaseAction.saveOrUpdateCasecaseCarBaseAction.saveOrUpdateCasethis.autoSendNewCaseAndNewTaskthis.autoSendNewCaseAndNewTaskSendAutoClaimServer.sendAndReceiveAppendCARCASESendAutoClaimServer.sendAndReceiveAppendCARCASEsendAndReceiveAppendCARCASEsendAndReceiveAppendCARCASEActionMappingcaseBaseEntitydata
PackAutoClaimData data = new PackAutoClaimData(entity, policyEntity,                caseCarCopyPolicyService, insDicHelper, drvEntity);
Created with Raphaël 2.1.0sendAndReceiveAppendCARCASEsendAndReceiveAppendCARCASEtoAppendCARCASEXMLtoAppendCARCASEXMLcarCase
StringBuffer buffer = new StringBuffer();        buffer.append("<?xml version=\"1.0\" encoding=\"GB2312\"?>");        buffer.append("<CARCASE FOR=\"DATACHANGE\" VERSION=\"1.2\">");        buffer.append(carCase.toAppendCARCASEXML());        buffer.append("</CARCASE>");        return buffer.toString();
Created with Raphaël 2.1.0toAppendCARCASEXMLtoAppendCARCASEXMLcarCase.toAppendCARCASEXMLcarCase.toAppendCARCASEXMLhEAD.toXMLhEAD.toXMLbODY.toAppendCARCASEXMLbODY.toAppendCARCASEXMLcarCasecarCase.headcarCase.body
        StringBuffer buffer = new StringBuffer();        buffer.append( "<HEAD>" );          buffer.append( hEAD.toXML() );        buffer.append( "</HEAD>" );        buffer.append( "<BODY>" );          buffer.append( bODY.toAppendCARCASEXML() );        buffer.append( "</BODY>" );        return buffer.toString();
        StringBuffer buffer = new StringBuffer();        buffer.append("<CREATOR>");         buffer.append( getCREATOR() );        buffer.append("</CREATOR>");        buffer.append("<CREATE_TIME>");         buffer.append( getCREATE_TIME() );        buffer.append("</CREATE_TIME>");                buffer.append("<OPERATION>");         buffer.append( getOPERATION() );        buffer.append("</OPERATION>");        return buffer.toString();
0 0
原创粉丝点击