<?php
$client = new SoapClient("https://wsite86.viewfinity.net/WebServices/KeyLicenseManager.asmx?wsdl");
try {$parameters = array('KeyLicenseRequest'=>"string");$username = $client->GetKeyLicense ($parameters);} catch (SoapFault $fault){ echo "Fault! code:",$fault->faultcode,", string: ",$fault->faultstring;
}print_r($username);
?>
这是我调用.net暴露给我的接口代码
/*******************************************************/
下面是SOAP上面的内容,他只提供了一个方法给我 只有一个字符串<?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> <GetKeyLicense xmlns="http://viewfinity.com/"> <KeyLicenseRequest>string</KeyLicenseRequest> </GetKeyLicense> </soap:Body></soap:Envelope>
/******************************/
下面是xml文档内容 是需要传过去的
<?xml version="1.0" encoding="utf-8" ?>
- <KeyLicenseRequest>
<LoginId>China Nanosoft</LoginId> - <!-- the password is encrypted and should not be altered -->
<Password>lf8AGqDlTWKjmmzUbfCB+w==</Password>
- <UserProfile>
<LastName>Huang</LastName> <FirstName>Howy</FirstName> <Company>NanoSoft</Company> <Email>[email protected]</Email> <Phone>24242425</Phone> <Country>China</Country> <Province>Shanghai</Province> <NumberOfDesktops>1234</NumberOfDesktops> - <!-- value either true or false --> <PrivilegeManagement>true</PrivilegeManagement> - <!-- value either true or false --> <SystemsManagement>true</SystemsManagement> </UserProfile>-</KeyLicenseRequest>
$client = new SoapClient("https://wsite86.viewfinity.net/WebServices/KeyLicenseManager.asmx?wsdl");
try {$parameters = array('KeyLicenseRequest'=>"string");$username = $client->GetKeyLicense ($parameters);} catch (SoapFault $fault){ echo "Fault! code:",$fault->faultcode,", string: ",$fault->faultstring;
}print_r($username);
?>
这是我调用.net暴露给我的接口代码
/*******************************************************/
下面是SOAP上面的内容,他只提供了一个方法给我 只有一个字符串<?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> <GetKeyLicense xmlns="http://viewfinity.com/"> <KeyLicenseRequest>string</KeyLicenseRequest> </GetKeyLicense> </soap:Body></soap:Envelope>
/******************************/
下面是xml文档内容 是需要传过去的
<?xml version="1.0" encoding="utf-8" ?>
- <KeyLicenseRequest>
<LoginId>China Nanosoft</LoginId> - <!-- the password is encrypted and should not be altered -->
<Password>lf8AGqDlTWKjmmzUbfCB+w==</Password>
- <UserProfile>
<LastName>Huang</LastName> <FirstName>Howy</FirstName> <Company>NanoSoft</Company> <Email>[email protected]</Email> <Phone>24242425</Phone> <Country>China</Country> <Province>Shanghai</Province> <NumberOfDesktops>1234</NumberOfDesktops> - <!-- value either true or false --> <PrivilegeManagement>true</PrivilegeManagement> - <!-- value either true or false --> <SystemsManagement>true</SystemsManagement> </UserProfile>-</KeyLicenseRequest>
解决方案 »
- php急急……
- 怎么在winow.showModelDialog页面中弹出下载页面,急急急~~~!
- 关于中文乱码问题!
- php构建的环境是什么
- smarty怎么给这种布局赋值谢谢
- 进来帮我测试的朋友都有分。。。
- 没办法,在2000论坛里没人回答我,可我现在快死,请哪位大侠帮帮我?
- 有一个很难的问题,php获取javascript的值来判断域名来路,后期不好处理~
- SESSION中的数组为什么有时候取得到,有时候取不到呢?
- PHP 一个类中一个方法可以使用另一个方法的变量吗?不行的化,怎么设置一个可以随时赋值的全局变量呢?
- 关于 php点用WebService 如何实现。。。
- php执行cmd无反应,命令没有执行
Server Error in '/' Application.
--------------------------------------------------------------------------------Request format is unrecognized.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.InvalidOperationException: Request format is unrecognized.Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace:
[InvalidOperationException: Request format is unrecognized.]
System.Web.Services.Protocols.WebServiceHandlerFactory.CoreGetHandler(Type type, HttpContext context, HttpRequest request, HttpResponse response) +406022
System.Web.Services.Protocols.WebServiceHandlerFactory.GetHandler(HttpContext context, String verb, String url, String filePath) +212
System.Web.Script.Services.ScriptHandlerFactory.GetHandler(HttpContext context, String requestType, String url, String pathTranslated) +47
System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) +193
System.Web.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +93
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.3615; ASP.NET Version:2.0.50727.3618