草庐IT

soap_client

全部标签

php - PHP Soap的使用

我正在尝试通过SOAP将数据插入远程服务器。但出现以下错误:object(stdClass)#3(1){["DataInsertResult"]=>string(51)"Hata:DI-Valuecannotbenull.Parametername:s"在这里你可以找到我的代码如下:Authenticate("accountname","password");$send=$client->DataInsert(array("idRoot"=>array("DataToDb"=>array("Drow"=>array("FName"=>"George","LName"=>"Houston

php - 如何为 SOAP 客户端功能创建适当的 xml?

我已经在SOAPClient上花费了几个小时,但仍然没有结果,希望有人能帮助我。我正在尝试创建以下代码并将其发送到网络服务:POST/PortalServices/PortalServices.asmxHTTP/1.1Host:***.***.comContent-Type:text/xml;charset=utf-8Content-Length:lengthSOAPAction:"http://***.com/CreateUser"stringstringstringstringstringstringint要获取此xml,我使用以下代码:WsService=newWsService

具有特殊字符(编码)的 PHP SOAP 客户端?

我正在尝试使用PHP的SOAP客户端。没关系,因为我只是知道。但是当Data包含特殊字符时就会出现问题。特殊字符,如♫里面。(它以十六进制代码的形式出现在数据中。)示例如下:header('Content-Type:text/plain;charset=UTF-8');$client=newSoapClient('http://www.example.com/webservice.asmx?WSDL',array('trace'=>1,'encoding'=>'UTF-8'));$result_1=$client->GetText();$result_2=$client->G

php - 将 php 异常(soap 错误)转换为特定类

我在将php异常转换为通用类时遇到问题。我正在调用一个Web服务方法,当它失败时,它返回一个soap错误,并在“详细信息标签”中包含信息。这就是我使用SoapUI(http://soapui.org)调用Web服务方法时的结果:s:ClientErrorPostingNewSponsorFulltoMiddleware2duplicate(s)detected0NewNewExtRels194eMail0NewNewExtRels194Address7我想获取“详细信息”标签中的MyPlanWSError内容。我想将其转换为php类。我已经使用了很好的工具wsdl2php(http:/

php - 通过 cURL 使用自签名证书通过 https 执行 soap 请求

我正在尝试通过https对用C#编写的网络服务执行soap请求。服务器使用自签名证书。在多次尝试使用SoapClient失败后我决定使用纯cURL执行请求。我的代码://Soapserviceparamsxml';$headers=array('Content-type:text/xml;charset="utf-8"','Accept:text/xml','Cache-Control:no-cache','Pragma:no-cache','SOAPAction:https://ip:8443/ServiceName','Content-length:'.strlen($post),

php - Google 云端硬盘服务帐户和 "Unauthorized client or scope in request"

我有3个使用DriveSDK的服务帐户。1,有效,2无效。返回的错误是“ErrorrefreshingtheOAuth2token,message:'{"error":"unauthorized_client","error_description":"Unauthorizedclientorscopeinrequest."}'"所有3个帐户都已在开发者控制台中注册。所有3个都被授权在GoogleApps控制台中进行“ManagedClientAPIaccess”。所有3个都有范围“https://www.googleapis.com/auth/drive.readonly”。所有3个

php - haxe (php) https 调用 : stream_socket_client() Peer certificate CN did not match expected CN

我正在使用haxe的Http类(编译为php)通过https将request()发送到AWS。这是一个使用haxe-aws库(https://github.com/Blank101/haxe-aws)的最小示例:variamconf=newIAMConfig('newbucket.s3-eu-central-1.amazonaws.com',accessKey,secretKey,'eu-central-1','s3');varsig4=newSig4Http('https://newbucket.s3-eu-central-1.amazonaws.com/',iamconf);sig

php - Oauth 2 $client->getAccessToken() 返回空值

我正在使用codeigniterMVC框架使用谷歌客户端库登录我的网站。当谷歌使用代码重定向并且我执行以下代码时,一切都运行良好,期待$client->getAccessToken()。$client->getAccessToken()返回空值。我看了很多教程,但没有得到任何帮助。这是我的Controller功能一的代码。在此函数中,我设置我的凭据以创建authUrl。publicfunctionlogin(){//Includetwofilesfromgoogle-php-clientlibraryincontrollerinclude_onceAPPPATH.'third_part

php - fatal error : SOAP-ERROR: Encoding: Violation of encoding rules in PHP

我正在尝试使用PHP连接到SOAPAPI,但不断收到以下错误:Fatalerror:SOAP-ERROR:Encoding:Violationofencodingrules这是网络服务的WSDL:PasssignupdetailsfromcustomerandreturnexistingIDiffoundorcreatenewcustomerrecordandreturnnewIDPassupdatedetailsfromcustomerandreturnupdatestatusandMemberIDGenerationoftheVoucherTypesGenerationoftheV

php - 在同一个 PHP SOAP 服务器中处理对多个类的请求

是否可以使用一个PHPSOAP服务器来处理对多个类(服务)的请求?如果是,您能否展示一个示例实现?如果不是,能否请您说明原因? 最佳答案 您能否将其他服务包装在一个类中?完全未经测试,这只是一个想法......classMySoapService{publicfunction__construct(){$this->_service1=newService1();$this->_service2=newService2();}//Youcouldprobablyuse__call()hereandinterceptanycalls,