在POST请求中使用CURL,响应不正确-我认为
我向WSDL发出以下CURL post请求在POST请求中使用CURL,响应不正确-我认为,curl,wsdl,Curl,Wsdl,我向WSDL发出以下CURL post请求 curl --header "Content-Type: text/xml;charset=UTF-8" --header "SOAPAction:urn:ActivateRequest" --data @therequest.txt https://thewebsite.com/SAPISOAP/SAPI?wsdl request.txt文件由以下部分组成: <s:Envelope xmlns:s="http://schemas.xmlsoa
curl --header "Content-Type: text/xml;charset=UTF-8" --header "SOAPAction:urn:ActivateRequest" --data @therequest.txt https://thewebsite.com/SAPISOAP/SAPI?wsdl
request.txt
文件由以下部分组成:
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Activate xmlns="http://SAPISOAP/">
<SapiRequest xmlns="">
<primaryAccountNumber>35463223438965343</primaryAccountNumber>
<processingCode>100000</processingCode>
<transactionAmount>1000.00</transactionAmount>
<transmissionDateTime>160218131500</transmissionDateTime>
<traceNumber>000911</traceNumber>
<localTransactionTime>131500</localTransactionTime>
<localTransactionDate>160218</localTransactionDate>
<merchantCategoryCode>5311</merchantCategoryCode>
<pointOfServiceEntryMode>041</pointOfServiceEntryMode>
<retrievalReferenceNumber>beloga1</retrievalReferenceNumber>
<sourceIdentifier>BB34343</sourceIdentifier>
<merchantIdentifier>BB0000001</merchantIdentifier>
<transactionCurrencyCode>710</transactionCurrencyCode>
<productID>45445454FDGADTYUJHGFDSG</productID>
<productType>D</productType>
</SapiRequest>
</Activate>
</s:Body>
</s:Envelope>
<?xml version='1.0' encoding='UTF-8'?><S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"><S:Body><ns2:ActivateResponse xmlns:ns2="http://SAPISOAP/"><return><primaryAccountNumber>35463223438965343</primaryAccountNumber><processingCode>100001</processingCode><transactionAmount>1000.00</transactionAmount><transmissionDateTime>160218131500</transmissionDateTime><traceNumber>000911</traceNumber><localTransactionTime>131500</localTransactionTime><localTransactionDate>160218</localTransactionDate><merchantCategoryCode>5311</merchantCategoryCode><pointOfServiceEntryMode>041</pointOfServiceEntryMode><retrievalReferenceNumber>beloga1</retrievalReferenceNumber><responseCode>13</responseCode><sourceIdentifier>BB34343</sourceIdentifier><merchantIdentifier>BB0000001</merchantIdentifier><transactionCurrencyCode>710</transactionCurrencyCode><productID>45445454FDGADTYUJHGFDSG</productID><productType>D</productType><transactionUniqueIdentifier>00000015313F375EBBC5D60091</transactionUniqueIdentifier></return></ns2:ActivateResponse></S:Body></S:Envelope>
35463223438965343
100000
1000
160218131500
000911
131500
160218
5311
041
贝洛加1
BB34343
BB0000001
710
45445454FDGADTYUJHGFDSG
D
我得到的答复如下:
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Activate xmlns="http://SAPISOAP/">
<SapiRequest xmlns="">
<primaryAccountNumber>35463223438965343</primaryAccountNumber>
<processingCode>100000</processingCode>
<transactionAmount>1000.00</transactionAmount>
<transmissionDateTime>160218131500</transmissionDateTime>
<traceNumber>000911</traceNumber>
<localTransactionTime>131500</localTransactionTime>
<localTransactionDate>160218</localTransactionDate>
<merchantCategoryCode>5311</merchantCategoryCode>
<pointOfServiceEntryMode>041</pointOfServiceEntryMode>
<retrievalReferenceNumber>beloga1</retrievalReferenceNumber>
<sourceIdentifier>BB34343</sourceIdentifier>
<merchantIdentifier>BB0000001</merchantIdentifier>
<transactionCurrencyCode>710</transactionCurrencyCode>
<productID>45445454FDGADTYUJHGFDSG</productID>
<productType>D</productType>
</SapiRequest>
</Activate>
</s:Body>
</s:Envelope>
<?xml version='1.0' encoding='UTF-8'?><S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"><S:Body><ns2:ActivateResponse xmlns:ns2="http://SAPISOAP/"><return><primaryAccountNumber>35463223438965343</primaryAccountNumber><processingCode>100001</processingCode><transactionAmount>1000.00</transactionAmount><transmissionDateTime>160218131500</transmissionDateTime><traceNumber>000911</traceNumber><localTransactionTime>131500</localTransactionTime><localTransactionDate>160218</localTransactionDate><merchantCategoryCode>5311</merchantCategoryCode><pointOfServiceEntryMode>041</pointOfServiceEntryMode><retrievalReferenceNumber>beloga1</retrievalReferenceNumber><responseCode>13</responseCode><sourceIdentifier>BB34343</sourceIdentifier><merchantIdentifier>BB0000001</merchantIdentifier><transactionCurrencyCode>710</transactionCurrencyCode><productID>45445454FDGADTYUJHGFDSG</productID><productType>D</productType><transactionUniqueIdentifier>00000015313F375EBBC5D60091</transactionUniqueIdentifier></return></ns2:ActivateResponse></S:Body></S:Envelope>
354632234389653431000011000.00160218131500009111315001602185311041BELOGA113BB34343BB0000001710454454FDGADTYUJHGFDGD00000015313F375EBBC5D60091
我做错了什么?谢谢:),但是我更喜欢得到关于英语更正问题的回答。谢谢:),但是我更喜欢得到关于英语更正问题的回答。