POST /MPSWS/HostedSharePoint2007/Service.asmx HTTP/1.1
Host: localhost
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://provisioning.microsoft.com/webservice/hostedsharepoint2007/Subscribe"<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<Subscribe xmlns="http://provisioning.microsoft.com/webservice/hostedsharepoint2007">
<SubscribeRequest xmlns="http://provisioning.microsoft.com/hostedSharePoint">
<Data>
<preferredDomainController>string</preferredDomainController>
<planName>string</planName>
<path>string</path>
</Data>
</SubscribeRequest>
<sendCredentials>boolean</sendCredentials>
</Subscribe>
</soap:Body>
</soap:Envelope>使用Nusoap,应该如何调用呢?我总是调不起来。
<?php
require_once('nusoap.php');
$client = new soapclient('接口地址XXXXX');$para['preferredDomainController']="domain1.ufhost.com";
$para['planName']='BasicSharepoint';
$para['path']='LDAP://OU=0514info.com,OU=test.com,OU=Hosting,DC=ufhost,DC=com';
$result = $client->call('Subscribe',$para);
?>
调用失败,应该是数据的格式不对不知道怎么弄了。求助~~
Host: localhost
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://provisioning.microsoft.com/webservice/hostedsharepoint2007/Subscribe"<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<Subscribe xmlns="http://provisioning.microsoft.com/webservice/hostedsharepoint2007">
<SubscribeRequest xmlns="http://provisioning.microsoft.com/hostedSharePoint">
<Data>
<preferredDomainController>string</preferredDomainController>
<planName>string</planName>
<path>string</path>
</Data>
</SubscribeRequest>
<sendCredentials>boolean</sendCredentials>
</Subscribe>
</soap:Body>
</soap:Envelope>使用Nusoap,应该如何调用呢?我总是调不起来。
<?php
require_once('nusoap.php');
$client = new soapclient('接口地址XXXXX');$para['preferredDomainController']="domain1.ufhost.com";
$para['planName']='BasicSharepoint';
$para['path']='LDAP://OU=0514info.com,OU=test.com,OU=Hosting,DC=ufhost,DC=com';
$result = $client->call('Subscribe',$para);
?>
调用失败,应该是数据的格式不对不知道怎么弄了。求助~~
没有用到wsdl文件吗?
2.如果连接成功,很有可能就是调用的参数格式不对了。
$client = new SoapClient("http://www.webxml.com.cn/WebServices/MobileCodeWS.asmx?wsdl");
$return = $client->getRegionCountry();
$return = $client->getMobileCodeInfo(array('mobileCode'=>'13626681188'));
print_r($return);