美文网首页程序员
Fusion客户创建SOAP接口PAYLOAD(一)

Fusion客户创建SOAP接口PAYLOAD(一)

作者: 微笑的天 | 来源:发表于2019-03-23 22:15 被阅读0次
    1. 创建客户主地址
    2. 创建客户组织层
    3. 创建账户层

    创建地址

    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:typ="http://xmlns.oracle.com/apps/cdm/foundation/parties/locationService/applicationModule/types/" xmlns:loc="http://xmlns.oracle.com/apps/cdm/foundation/parties/locationService/" xmlns:par="http://xmlns.oracle.com/apps/cdm/foundation/parties/partyService/" xmlns:sour="http://xmlns.oracle.com/apps/cdm/foundation/parties/flex/sourceSystemRef/" xmlns:loc1="http://xmlns.oracle.com/apps/cdm/foundation/parties/flex/location/">
       <soapenv:Header/>
       <soapenv:Body>
          <typ:createLocation>
             <typ:location>
                <!--Optional:-->
                <loc:Country>CN</loc:Country>
                <!--Optional:-->
                <loc:Province>甘肃省</loc:Province>
                <!--Optional:-->
                <loc:Address1>蓬莱</loc:Address1>
                <!--Optional:-->
                <loc:Address2>神洲</loc:Address2>
                <!--Optional:-->
                <loc:Address3>米兰达</loc:Address3>
                <!--Optional:-->
                <loc:Address4>坐台</loc:Address4>
                <!--Optional:-->
                <loc:City>平凉市</loc:City>
                <!--Optional:收货联系人-->
                <loc:AddrElementAttribute1>名金月古</loc:AddrElementAttribute1>
                <!--Optional:区/县-->
                <loc:AddrElementAttribute2>莲花台</loc:AddrElementAttribute2>
                <!--Optional:收获公司-->
                <loc:AddrElementAttribute3>九天</loc:AddrElementAttribute3>
                <!--Optional:-->
                <loc:PostalCode>210000</loc:PostalCode>
                <!--Optional:-->
                <loc:AddressStyle>POSTAL_ADDR_CN</loc:AddressStyle>
                <!--Optional:-->
                <loc:CreatedByModule>TCA_FORM_WRAPPER</loc:CreatedByModule>
             </typ:location>
          </typ:createLocation>
       </soapenv:Body>
    </soapenv:Envelope>
    

    创建组织层

    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:typ="http://xmlns.oracle.com/apps/cdm/foundation/parties/organizationService/applicationModule/types/" xmlns:org="http://xmlns.oracle.com/apps/cdm/foundation/parties/organizationService/" xmlns:par="http://xmlns.oracle.com/apps/cdm/foundation/parties/partyService/" xmlns:sour="http://xmlns.oracle.com/apps/cdm/foundation/parties/flex/sourceSystemRef/" xmlns:con="http://xmlns.oracle.com/apps/cdm/foundation/parties/contactPointService/" xmlns:con1="http://xmlns.oracle.com/apps/cdm/foundation/parties/flex/contactPoint/" xmlns:org1="http://xmlns.oracle.com/apps/cdm/foundation/parties/flex/organization/" xmlns:par1="http://xmlns.oracle.com/apps/cdm/foundation/parties/flex/partySite/" xmlns:rel="http://xmlns.oracle.com/apps/cdm/foundation/parties/relationshipService/" xmlns:org2="http://xmlns.oracle.com/apps/cdm/foundation/parties/flex/orgContact/" xmlns:rel1="http://xmlns.oracle.com/apps/cdm/foundation/parties/flex/relationship/">
    <soapenv:Header/>
       <soapenv:Body>
          <typ:createOrganization>
             <typ:organizationParty>
                <!--Optional:-->
                <org:CreatedByModule>TCA_FORM_WRAPPER</org:CreatedByModule>
                <org:PartyNumber>031402</org:PartyNumber>
                <!--D-U-N-S 编号:-->
                <!--<org:DUNSNumberC>010101010</org:DUNSNumberC>-->
                <!--纳税人标识:-->
                <!--<org:JgzzFiscalCode>101010101</org:JgzzFiscalCode>-->
                <org:OrganizationProfile>
                 <org:OrganizationName>名金月古</org:OrganizationName>
                 <org:CreatedByModule>TCA_FORM_WRAPPER</org:CreatedByModule>
                 <org:DUNSNumberC>010101010</org:DUNSNumberC>
                 <org:JgzzFiscalCode>101010101</org:JgzzFiscalCode>
                </org:OrganizationProfile>
                <org:PartyUsageAssignment>
                  <!--Optional:-->
                  <par:PartyUsageCode>CUSTOMER</par:PartyUsageCode>
                  <par:CreatedByModule>TCA_FORM_WRAPPER</par:CreatedByModule>
                </org:PartyUsageAssignment>
                <org:PartySite>
                   <!--Optional:-->
                   <par:LocationId>300000002864580</par:LocationId>
                     <!--Optional:-->
                     <par:CreatedByModule>TCA_FORM_WRAPPER</par:CreatedByModule>
                     <!--Optional:-->
                     <par:IdentifyingAddressFlag>true</par:IdentifyingAddressFlag>
                     <par:StartDateActive>1990-01-01</par:StartDateActive>
                     <!--Optional:-->
                     <par:EndDateActive>4712-12-31</par:EndDateActive>
                </org:PartySite>        
             </typ:organizationParty>
          </typ:createOrganization>
       </soapenv:Body>
    </soapenv:Envelope>
    

    创建账户层

    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:typ="http://xmlns.oracle.com/apps/cdm/foundation/parties/customerAccountService/applicationModule/types/" xmlns:cus="http://xmlns.oracle.com/apps/cdm/foundation/parties/customerAccountService/" xmlns:cus1="http://xmlns.oracle.com/apps/cdm/foundation/parties/flex/custAccountContactRole/" xmlns:par="http://xmlns.oracle.com/apps/cdm/foundation/parties/partyService/" xmlns:sour="http://xmlns.oracle.com/apps/cdm/foundation/parties/flex/sourceSystemRef/" xmlns:cus2="http://xmlns.oracle.com/apps/cdm/foundation/parties/flex/custAccountContact/" xmlns:cus3="http://xmlns.oracle.com/apps/cdm/foundation/parties/flex/custAccountRel/" xmlns:cus4="http://xmlns.oracle.com/apps/cdm/foundation/parties/flex/custAccountSiteUse/" xmlns:cus5="http://xmlns.oracle.com/apps/cdm/foundation/parties/flex/custAccountSite/" xmlns:cus6="http://xmlns.oracle.com/apps/cdm/foundation/parties/flex/custAccount/">
       <soapenv:Header/>
       <soapenv:Body>
          <typ:createCustomerAccount>
             <typ:customerAccount>
                <!--Optional:-->
                <cus:PartyId>300000002762616</cus:PartyId>
                <!--Optional:-->
                <cus:AccountNumber>100001</cus:AccountNumber>
                <!--Optional:-->
                <cus:AccountName>100001</cus:AccountName>
                <!--Optional:-->
                <cus:CreatedByModule>TCA_FORM_WRAPPER</cus:CreatedByModule>
                <!--Zero or more repetitions:-->
                <cus:CustomerAccountSite>
                   <!--Optional:-->
                   <cus:PartySiteId>300000002762617</cus:PartySiteId>
                   <!--Optional:-->
                   <cus:CreatedByModule>TCA_FORM_WRAPPER</cus:CreatedByModule>
                   <!--Optional:-->
                   <cus:SetId>300000000002493</cus:SetId>
                   <!--Zero or more repetitions:-->
                   <cus:CustomerAccountSiteUse>
                      <!--Optional:-->
                      <cus:SiteUseCode>BILL_TO</cus:SiteUseCode>
                      <!--Optional:-->
                      <cus:CreatedByModule>TCA_FORM_WRAPPER</cus:CreatedByModule>
                   </cus:CustomerAccountSiteUse>
                    <cus:CustomerAccountSiteUse>
                      <!--Optional:-->
                      <cus:SiteUseCode>SHIP_TO</cus:SiteUseCode>
                      <!--Optional:-->
                      <cus:CreatedByModule>TCA_FORM_WRAPPER</cus:CreatedByModule>
                    </cus:CustomerAccountSiteUse>
                   </cus:CustomerAccountSite>
             </typ:customerAccount>
          </typ:createCustomerAccount>
       </soapenv:Body>
    </soapenv:Envelope>
    

    相关文章

      网友评论

        本文标题:Fusion客户创建SOAP接口PAYLOAD(一)

        本文链接:https://www.haomeiwen.com/subject/hzyevqtx.html