求助,怎么把XML提交到接口?

浏览:1151 发布日期:2016/06/15 分类:求助交流
xml的内容是<TXLife> 
  <UserAuthRequest> 
    <UserLoginName>XXXX</UserLoginName>
    <UserPswd> 
      <Pswd>password</Pswd> 
    </UserPswd> 
  </UserAuthRequest>  
  <TXLifeRequest> 
    <TransRefGUID>635306765673272986</TransRefGUID>  
    <TransType tc="103">103</TransType>  
    <TransExeDate>2014-03-17</TransExeDate>  
    <TransExeTime>18:07:35</TransExeTime>  
    <OLifE> 
      <Holding id="Holding_1"> 
        <Policy> 
          <ProductCode>RW0131_03</ProductCode>  
          <EffDate>2014-03-29 06:05:00</EffDate>  
          <Life> 
            <FaceUnits>1</FaceUnits>  
            <OLifEExtension VendorCode="10">
              <FlightNumber>CZ6250</FlightNumber>
              <FlightTime>2014-03-29 18:05:00</FlightTime>
              <NeedSMS>T</NeedSMS>
            </OLifEExtension> 
          </Life> 
        </Policy> 
      </Holding>  
      <Party id="Party_1"> 
        <FullName>test</FullName>  
        <GovtID>110108196703025474</GovtID>  
        <GovtIDTC tc="1">1</GovtIDTC>  
        <Person> 
          <Gender tc="1">1</Gender>  
          <BirthDate>1967-03-02</BirthDate> 
        </Person>  
        <Phone> 
          <PhoneTypeCode tc="12">Mobile</PhoneTypeCode>  
          <DialNumber>13000000000</DialNumber> 
        </Phone> 
      </Party>  
      <Party id="Party_2"> 
        <FullName>test</FullName>  
        <GovtID>110108196703025474</GovtID>  
        <GovtIDTC tc="1">1</GovtIDTC>  
        <Person> 
          <Gender tc="1">1</Gender>  
          <BirthDate>1967-03-02</BirthDate> 
        </Person>  
        <Phone> 
          <PhoneTypeCode tc="12">Mobile</PhoneTypeCode>  
          <DialNumber>13000000000</DialNumber> 
        </Phone> 
      </Party>  
      <Relation RelatedObjectID="Party_1" OriginatingObjectID="Holding_1" id="Relation_1">
        <OriginatingObjectType tc="4">Holding</OriginatingObjectType>  
        <RelatedObjectType tc="6">Party</RelatedObjectType>  
        <RelationRoleCode tc="8">Owner</RelationRoleCode> 
      </Relation>  
      <Relation RelatedObjectID="Party_2" OriginatingObjectID="Holding_1" id="Relation_2">
        <OriginatingObjectType tc="4">Holding</OriginatingObjectType>  
        <RelatedObjectType tc="6">Party</RelatedObjectType>  
        <RelationRoleCode tc="32">Insured</RelationRoleCode> 
      </Relation>  
      <Relation RelatedObjectID="Party_2" OriginatingObjectID="Party_1" id="Relation_3">
        <OriginatingObjectType tc="6">Party</OriginatingObjectType>  
        <RelatedObjectType tc="6">Party</RelatedObjectType>  
        <RelationRoleCode tc="168">Self</RelationRoleCode> 
      </Relation> 
    </OLifE>  
    <OLifEExtension> 
      <PartnerCode>XXXXX</PartnerCode>
    </OLifEExtension> 
  </TXLifeRequest> 
</TXLife>
怎么提交呢? 找了好多方法都都不行,求助
最佳答案
评论( 相关
后面还有条评论,点击查看>>