接口规格的设计

来源:互联网 发布:arm 是什么软件 编辑:程序博客网 时间:2024/06/02 18:46

传入参数:
字段                                  是否必填                                  是否列表                                  备注
部门标杆编码                  是                                              否 
支付金额                          是                                              否                                               单位:元。可能是理赔的付款金额或者冲账金额
凭证号                              是                                              否                                               凭证号
支付结果                          是                                              否                                               付款成功、付款失败
失败原因                          否                                              否                                                如果付款失败就有失败原因

返回参数:
字段                                  是否必填                                  是否列表                                  备注
处理结果                          是                                              否                                              处理成功返回true,处理失败返回false
失败原因                          是                                              否                                              如果处理失败就有失败原因

接口规格 CRM_NOTIFY_CLAIMS_STATE.xsd

<?xml version="1.0" encoding="UTF-8"?>
<schema targetNamespace="http://www.deppon.com/fssc/remote/crm/domain/entity"
 elementFormDefault="qualified" xmlns="http://www.w3.org/2001/XMLSchema"
 xmlns:tns="http://www.deppon.com/fssc/remote/crm/domain/entity">
 <element name="notify_claims_stateRequest" type="tns:Notify_claims_stateRequest"></element>
 <element name="notify_claims_stateResponse" type="tns:Notify_claims_stateResponse"></element>
 <complexType name="Notify_claims_stateRequest">
  <annotation>
   <documentation>通知理赔支付状态接口,请求参数</documentation>
  </annotation>
  <sequence>
   <element name="departmentCode" type="string" minOccurs="1">
    <annotation>
     <documentation>部门标杆编码</documentation>
    </annotation>
   </element>
   <element name="paymentMoney" type="float" minOccurs="1">
    <annotation>
     <documentation>
      支付金额,单位:元。可能是理赔的付款金额或者冲账金额
     </documentation>
    </annotation>
   </element>
   <element name="voucherNumber" type="string" minOccurs="1">
    <annotation>
     <documentation>凭证号</documentation>
    </annotation>
   </element>
   <element name="paymentResults" type="string" minOccurs="1"
    maxOccurs="1">
    <annotation>
     <documentation>支付结果,付款成功:1 、付款失败:0</documentation>
    </annotation>
   </element>
   <element name="failedReason" type="string" minOccurs="0">
    <annotation>
     <documentation>失败原因 如果付款失败就有失败原因</documentation>
    </annotation>
   </element>
  </sequence>
 </complexType>
 <complexType name="Notify_claims_stateResponse">
  <sequence>
   <element name="isSuccess" type="boolean" minOccurs="1"
    maxOccurs="1">
    <annotation>
     <documentation>
      处理结果 处理成功返回true,处理失败返回false
     </documentation>
    </annotation>
   </element>
   <element name="failedReason" type="string" minOccurs="0">
    <annotation>
     <documentation>失败原因 如果处理失败就有失败原因</documentation>
    </annotation>
   </element>
  </sequence>
 </complexType>
</schema>

wsdl文档 CRM_FSSC_SERVICE.wsdl
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
 xmlns:tns_domain="http://www.deppon.com/fssc/remote/crm/domain/entity"
 xmlns:tns="http://notifyclaims.fin.interfaces.module.crm.deppon.com"
 xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
 xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="CRM_FSSC_SERVICE"
 targetNamespace="http://notifyclaims.fin.interfaces.module.crm.deppon.com">
 <wsdl:types>
  <xsd:schema targetNamespace="http://www.deppon.com/fssc/remote/crm/domain/entity">
   <xsd:include schemaLocation="CRM_NOTIFY_CLAIMS_STATE.xsd" />
  </xsd:schema>
 </wsdl:types>
 <wsdl:message name="Notify_claims_stateRequest">
  <wsdl:part element="tns_domain:notify_claims_stateRequest" name="Notify_claims_stateRequest" />
 </wsdl:message>
 <wsdl:message name="Notify_claims_stateResponse">
  <wsdl:part element="tns_domain:notify_claims_stateResponse" name="Notify_claims_stateResponse" />
 </wsdl:message>
 <wsdl:portType name="ICrmNotifyClaimsService">
  <wsdl:operation name="notifyClaimState">
   <wsdl:input message="tns:Notify_claims_stateRequest" name="Notify_claims_stateRequest" />
   <wsdl:output message="tns:Notify_claims_stateResponse" name="Notify_claims_stateResponse" />
  </wsdl:operation>
 </wsdl:portType>
 <wsdl:binding name="CRM_FSSC_SERVICESOAP" type="tns:ICrmNotifyClaimsService">
  <soap:binding style="document"
   transport="http://schemas.xmlsoap.org/soap/http" />
  <wsdl:operation name="notifyClaimState">
   <soap:operation
    soapAction="" style="document" />
   <wsdl:input name="Notify_claims_stateRequest">
    <soap:body use="literal" />
   </wsdl:input>
   <wsdl:output name="Notify_claims_stateResponse">
    <soap:body use="literal" />
   </wsdl:output>
  </wsdl:operation>
 </wsdl:binding>
 <wsdl:service name="CrmNotifyClaimsServiceImpl">
  <wsdl:documentation></wsdl:documentation>
  <wsdl:port binding="tns:CRM_FSSC_SERVICESOAP" name="CrmFsscServiceSOAP">
   <soap:address location="http://localhost:8088/crm/ws/crmNotifyClaimsService" />
  </wsdl:port>
 </wsdl:service>
</wsdl:definitions>

wsdl2java -p com.deppon.fin.selfservice -frontend jaxws21 -d D:\Java_Programs\workspace\crm-interface-thirdlib\src\main\java -client D:\Java_Programs\workspace\interface\Schemas\FSSC_CRM_SERVICE.wsdl
 

 


 

原创粉丝点击