主要是报文体的soap报文不好组装
请求参数:
curl -v -H "Content-Type: text/xml;charset=UTF-8" -H "SOAPAction: \"http://com.ips.core.channelqueryPayStatus\"" -d "<?xml version=\"1.0\" encoding=\"UTF-8\"?><soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\"><soapenv:Body><queryPayStatus xmlns=\"http://com.ips.core.channel\"><arg0 xmlns=\"\"><bankrequest><channelCode>3100213600000051</channelCode><supplierBillNo>2020111200016051499625571770000</supplierBillNo><merchantCode>224363057</merchantCode></bankrequest></arg0></queryPayStatus></soapenv:Body></soapenv:Envelope>" -X POST http://192.168.12.218:7006/channel/services/nucc310021360051ws?wsdl
返回参数:
* About to connect() to 192.168.12.218 port 7006 (#0)
* Trying 192.168.12.218... connected
* Connected to 192.168.12.218 (192.168.12.218) port 7006 (#0)
> POST /channel/services/nucc310021360051ws?wsdl HTTP/1.1
> User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.13.1.0 zlib/1.2.3 libidn/1.18 libssh2/1.2.2
> Host: 192.168.12.218:7006
> Accept: */*
> Content-Type: text/xml;charset=UTF-8
> SOAPAction: "http://com.ips.core.channelqueryPayStatus"
> Content-Length: 473
>
< HTTP/1.1 200
< Content-Type: text/xml;charset=UTF-8
< Transfer-Encoding: chunked
< Date: Fri, 27 Nov 2020 04:29:17 GMT
<
* Connection #0 to host 192.168.12.218 left intact
* Closing connection #0
<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><ns:queryPayStatusResponse xmlns:ns="http://com.ips.core.channel"><ns:return><bankresponse><repCode>03</repCode><repMsg>受理关系不存在</repMsg><bankRepCode>NOAUTH</bankRepCode><bankMsg>受理关系不存在</bankMsg><channelCode>3100213600000051</channelCode><supplierBillNo>2020111200016051499625571770000</supplierBillNo></bankresponse></ns:return></ns:queryPayStatusResponse></soapenv:Body></soapenv:Envelope>