soap-client

soapclient or fopen not working

感情迁移 提交于 2019-12-25 04:42:52
问题 I'm trying to set up a PHP SoapClient to connect to a wsdl... CURL & WGET from the server work fine. If I try to use soapclient I receive the error messages below. $wsdl = 'http://pav3.cdyne.com/PavService.svc?wsdl'; try { $client = new SoapClient($wsdl, array('trace' => true, 'exceptions' => true)); } catch (SoapFault $f) { echo $client->_getLastRequest(); echo $client->_getLastResponse(); echo $f->getMessage(); } catch (Exception $e) { echo $client->_getLastRequest(); echo $client->

How to connect to non-wsdl API via SoapClient in PHP?

[亡魂溺海] 提交于 2019-12-25 02:53:26
问题 I am trying to connect my PHP application to ConnectWise API. I never used SoapClient so I am completely lost even after looking over the SoapClient Manual Here is what the request should look like when it is sent to ConnectWise POST /v4_6_release/apis/2.0/ServiceTicketApi.asmx HTTP/1.1 Host: cw.connectwise.net Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "http://connectwise.com/GetServiceTicket" <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http

Undefined property: stdClass::$GetDataResult Error message

雨燕双飞 提交于 2019-12-24 20:20:08
问题 I'm Using PHP Soap Client function to connect Remote service using this code try { $result = $soapClient->GetData($parameters); } catch (SoapFault $fault) { echo "Fault code: {$fault->faultcode}" . NEWLINE; echo "Fault string: {$fault->faultstring}" . NEWLINE; if ($soapClient != null) { $soapClient = null; } exit(); } $soapClient = null; Finally I'm calling this function, echo "Return value: {$result->GetDataResult}" . NEWLINE; But It's not working for me and got warning message like this.

Laravel 5.1 consuming soap wsdl service using controller and model

主宰稳场 提交于 2019-12-24 12:44:33
问题 Currently I'm using php and nusoap and wanted to convert it to Laravel. When creating the soap calls I use data out of a mysql database. So I think I would need a model (to get my data) and a controller (to create request). EDIT: <?php namespace App\Http\Controllers; use Artisaninweb\SoapWrapper\Facades\SoapWrapper; class SoapController extends Controller { public function demo() { // Add a new service to the wrapper SoapWrapper::add(function ($service) { $service ->name('currency') ->wsdl(

How to load test a SOAP interface (are SOAP function calls atomic)?

假装没事ソ 提交于 2019-12-24 09:48:39
问题 A server offers a SOAP function call interface. Hundreds, perhaps a few thousand, of PCs call that function. I need to load test this using a single PC. At the moment I just have a for loop. Is that good enough? If not how can I make the test more realistic? I had thought of threading, but if the SOAP function call is atomic then that doesn't buy anything. Even if it does, there can still only be one active thread (per CPU) on my tester PC. I hope that is clear, please ask for further info if

Dynamically call SOAP service from own scripting language

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-24 09:35:27
问题 My application has its own scripting language of which I cannot get rid of (lots of customer-specific scripts written). Now my customers are asking if it would be possible to call a SOAP service from within that scripting language. Of course, the SOAP service that needs to be called will be different for every customer. This leaves me with several options: Use the WSDL utility to generate customer-specific SOAP client proxies and put the customer-specific logic in my application Use the WSDL

HTTP Authentication with Web References

旧城冷巷雨未停 提交于 2019-12-24 08:29:05
问题 I have a web reference created from the WSDL, but I'm not allowed to call the function unless I pass in the username / password; the original code for the XML toolkit was: Set client = CreateObject("MSSOAP.SOAPClient30") URL = "http://" & host & "/_common/webservices/Trend?wsdl" client.mssoapinit (URL) client.ConnectorProperty("WinHTTPAuthScheme") = 1 client.ConnectorProperty("AuthUser") = user client.ConnectorProperty("AuthPassword") = passwd On Error GoTo err Dim result1() As String result1

adding authentification header to client stub axis2

送分小仙女□ 提交于 2019-12-24 07:35:15
问题 I built the wsdl-client-stub based on xmlbeans. Now I got stuck adding a custom header for authentification using xmlbeans since xmlbeans stubs are lacking the necessary Classes(?) Actually, the header should look like: <SOAP-ENV:Header> <ns2:verifyingToken> <UserID>9</UserID> <Token>29438094lkjslfkjlsdkjf</Token> </ns2:verifyingToken> </SOAP-ENV:Header> So I tried as fallback going in between stub and ServiceClient: ServiceClient sc = stub._getServiceClient(); OMFactory omFactory =

Error consuming Web Service: :SoapClient(): SSL operation failed with code 1

一曲冷凌霜 提交于 2019-12-24 00:57:02
问题 I'm trying to consume a Web Services, my friend tested in windows 7 with xampp and is working. He told me he installed a self-signed certificate. But i'm stuck, i get this error: Warning: SoapClient::SoapClient(): SSL operation failed with code 1. OpenSSL Error messages: error:1408F119:SSL routines:SSL3_GET_RECORD:decryption failed or bad record mac in /var/www/project/lib/Zend/Soap/Client/Common.php on line 51 Warning: SoapClient::SoapClient(): Failed to enable crypto in /var/www/project/lib

Null values in PHP SoapClient calls

霸气de小男生 提交于 2019-12-23 22:19:33
问题 I'm writing a PHP client to a C#/WCF web service. The parameters for some of the calls consist of instances of business classes that I instantiate in PHP and pass via HTTP POSTs in SOAP formatted payloads to the webservice. The constructors for some of these classes have one or more optional parameters, of which some are of type Int32. When I set these parameters as optional in PHP and then send the instances up to the webservice they are being transmitted as empty strings (well, more