Category : wsdl

I am getting this error message when I am trying to connect webservice with SOAP SOAP-ERROR: Parsing WSDL: Couldn’t load from "http………..?wsdl" : EndTag ‘ Thanks for any response, I am new to stuff like that. <?php try { $soap_client = new SoapClient("http://ws……………wsdl"); $param=array("strUserName"=>"xxxx","strUserPassword"=>"xxxx","strproductcode"=>"xxxx"); $response =$soapclient->StavSkladu($param); var_dump($response); }catch(Exception $e){ echo $e->getMessage(); } ?> Source: Ask ..

Read more

I have a WSDL file stored on a server with HTTPS. As of now, anybody could use it, so how can I make this file require a certificate in order to be used via SOAP? The WSDL file looks like this: <?xml version="1.0" encoding="UTF-8"?> <wsdl:definitions name="***" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="https://***/schema.wsdl" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="https://***/schema.wsdl" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"> <wsdl:types> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" ..

Read more

Greetings to all the community. I’m trying to create a query service using SOAP WSDL with Laravel, I’ve been digging around and I’ve found the laravel library https://packagist.org/packages/artisaninweb/laravel-soap The issue is that I have the impression that the authentication data is not working properly, I have tried several methods but I am not sure what ..

Read more

Please help, i have a problem when i try to call wsdl like this : try { $opts = [ ‘ssl’ => [ ‘verify_peer’ => false, ‘verify_peer_name’ => false ] ]; $context = stream_context_create($opts); $soapParameters = [ ‘stream_context’ => $context, ‘login’ => ‘username’, ‘password’ => ‘password’, ‘soap_version’ => SOAP_1_1, ‘trace’ => true, ‘cache_wsdl’ => WSDL_CACHE_NONE ..

Read more

I have a problem passing an object parameter in php. Maybe you can help me. I would like to use the method getBookingPairsByPersonID In Wsdl it looks like this: <xsd:element name="getBookingPairsByPersonID" type="tns:getBookingPairsByPersonID"/> <xsd:complexType name="getBookingPairsByPersonID"> <xsd:sequence> <xsd:element minOccurs="0" name="arg0" nillable="true" type="xsd:string"/> <xsd:element name="arg1" nillable="true" type="tns:ArrayOfString"/> <xsd:element minOccurs="0" name="arg2" type="ns0:WSTimestamp"/> <xsd:element minOccurs="0" name="arg3" type="ns0:WSTimestamp"/> <xsd:element name="arg4" type="xsd:boolean"/> ..

Read more

I’m trying to get informations from a Web Service with SoapClient, but for some reason, when I execute the code, it stays loading until timeout, and doesn’t show any error. I already tried to set php.ini with extension=php_openssl.dll and set extension=php_soap.dll, tried to execute the code in xampp, in a website hosting and the error ..

Read more

I’m testing a SOAP webservice and I want to use it in non-wsdl mode. This is the code I’m trying to run: $client = new SoapClient(null, [ ‘location’ => ‘http://www.dneonline.com/calculator.asmx’, ‘uri’ => ‘http://tempuri.org/’, ‘trace’ => 1, ]); echo $argv[1].’ – ‘.$argv[2].’ = ‘. $client->Subtract( [ ‘intA’ => $argv[2], ‘intB’ => $argv[1] ])->SubtractResult.PHP_EOL; When I run ..

Read more

I am trying to implement an ONVIF client on PHP 7.4 with SOAP extension. I thought like it should be pretty straightforward, but I am stuck at first stage. My example code is below. <?php use SoapClient; $client = new SoapClient("http://www.onvif.org/ver10/device/wsdl/devicemgmt.wsdl", ["cache_wsdl" => WSDL_CACHE_NONE, "location" => "http://192.168.1.55/onvif/device_service"]); This code throws SoapFault exception with SOAP-ERROR: Parsing ..

Read more