如何调用webservice接口?

来源:百度知道 编辑:UC知道 时间:2024/05/12 10:35:18
现在我要用PHP调用一个WEBservice
WEBservice的地址为:http://www.xxxxx.com.cn/webservice/online.asmx
方法名:checkMember
此方法将返回一个整数..
PHP要怎么样来实现呢?麻烦将一些简单代码贴上来...

PHP如何调用webservice接口
用PHP如何按照webservice接口已定义的格式进行调用?
POST /sendsms.asmx HTTP/1.1
Host: 172.16.18.4
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>
<SendSms10198 xmlns="http://172.16.18.4:80