a:soap api中的ActionNotSupported

时间:2018-04-06 10:46:08

标签: php xml soap

我有以下请求,但是当我遇到请求时。我收到了一个错误。

 <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/">
 <soapenv:Header/>
 <soapenv:Body>
  <tem:SavePartner_integration>
     <tem:Partner_integrationXML> 
         <PartnerIntegration>
         <UserID type="string">GC0014</UserID>
         <Password type="string">cmc123</Password>
         <ProductType type="string">Private Car - P</ProductType>
         <TransactionType type="string">Renewal</TransactionType>
         <TransactionID type="string">1234</TransactionID>
         <PolicyNo type="string">456</PolicyNo>
         <ProposalDate type="date">2002-01-30</ProposalDate>
         <ProposalTime type="time">15:42:00</ProposalTime>
         <PolicyStartDate type="datetime">2002-05-30</PolicyStartDate>
         <PolicyEndDate type="date">2002-05-30</PolicyEndDate>
         <ProposerType type="string">I</ProposerType>
         <CustomerName type="string">Johnson</CustomerName>
         <EngineNos type="string">q12</EngineNos>
         <ChassisNos type="string">f123</ChassisNos>
         <Make type="string">g123</Make>
         <Model type="string">s123</Model>
         <Variant type="string">v123</Variant>
         <IDV type="int">4545</IDV>
         <TotalA type="int">4545</TotalA>
         <TotalB type="int">445</TotalB>
         <GrossPremium type="int">45454</GrossPremium>
         <ServiceORSalesTax type="int">454</ServiceORSalesTax>
         <NetPremium type="int">545</NetPremium>
         <TransactionReference type="int">12345678912345678912</TransactionReference>
         <TransactionDate type="date">2016-08-11</TransactionDate>
         <TransactionAmount type="int">6565</TransactionAmount>
         <Prefix>CWP</Prefix>
          <VehicleRegistrationNumber type="string">xyz</VehicleRegistrationNumber>
         <BiFuelKit type="string">abc</BiFuelKit>
         <BiFuelKitIDV type="int">123</BiFuelKitIDV>
         <NCB type="int">321</NCB>
         <LegalLiabilityPaidDriver type="string">cdef</LegalLiabilityPaidDriver>
        <ZeroDepreciation type="string">hij</ZeroDepreciation>
        <EngineProtector type="string">klm</EngineProtector>
        <ReturnToInvoice type="string">nop</ReturnToInvoice>
        <PAUnnamedPassengerSI type="string">qrs</PAUnnamedPassengerSI>
        <Consumables_Addon type="string">tuv</Consumables_Addon>
        <RoadsideAssistance type="string">wxy</RoadsideAssistance>
         <IMTNos type="string">zzzz</IMTNos>
         <Additional_Info type="string">extra</Additional_Info>
         </PartnerIntegration>            

     </tem:Partner_integrationXML>
  </tem:SavePartner_integration>

网址:http://kgibridgeuat.kotakmahindrageneralinsurance.com/GCIntegrationServices/PartnerIntegrationService.svc?wsdl

我遇到了错误

回应:

 <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
    <s:Fault>
        <faultcode xmlns:a="http://schemas.microsoft.com/ws/2005/05/addressing/none">a:ActionNotSupported</faultcode>
        <faultstring xml:lang="en-US">The message with Action '' cannot be processed at the receiver, due to a ContractFilter mismatch at the EndpointDispatcher. This may be because of either a contract mismatch (mismatched Actions between sender and receiver) or a binding/security mismatch between the sender and the receiver.  Check that sender and receiver have the same contract and the same binding (including security requirements, e.g. Message, Transport, None).</faultstring>
    </s:Fault>
</s:Body>

0 个答案:

没有答案