可以不调用WebService端的函数,将客户端生成的二进制流数据发送到WebService服务端吗?
问题1:可以不调用WebService端的函数,将客户端生成的二进制流数据发送到WebService服务端吗?
问题2: 发送数据到WebService端,要写这段代码吗?
POST /esPOS_WebService/nv_espos_webservice.asmx HTTP/1.1
Host: 59.41.59.58
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<postsalescreate xmlns="http://tempurl.org">
<astr_request>
......
</astr_request>
</postsalescreate>
</soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<postsalescreateResponse xmlns="http://tempurl.org">
<postsalescreateResult> ...... </postsalescreateResult>
</postsalescreateResponse>
</soap12:Body>
</soap12:Envelope>