nusoap

How to get rid of "Uncaught SoapFault exception: [Client] looks like we got no XML document in..." error

Hello I'm trying to develop business logic for a dynamic site using nusoap on server side (because I need wsdls, and PHP SOAP extension can't generate wsdls), and PHP SOAP extenstion on client side. However, I can't get even login and getRole functions right. When i try to invoke client, I get following message Uncaught SoapFault exce...

PHP5 and SOAP/WSDL?

I have a big problem right now, i need to create my own webservices but i really don't know how, can sombody help me? maybe link to easy way to make WSDL/SOAP code? i have try NuSoap but i can't get final whit this code, please help me. :) ...

Convert old NuSoap code into PHP core soap functions

Hi I've been testing nuSoap with codeIgniter (PHP Framework) but seems nuSoap isn't prepared to work with latest php 5.3, even if I download a patched nusoap version for php 5.3 I have the following code: require_once(APPPATH.'libraries/NuSOAP/lib/nusoap'.EXT); //includes nusoap $n_params = array('CityName' => 'San Juan', 'CountryName'...

Can nusoap returns arrray of string ?

Hi all, I would like to return an array of string in my web services I've tryed : <?php require_once('nusoap/nusoap.php'); $server = new soap_server(); $server->configureWSDL('NewsService', 'urn:NewsService'); $server->register('GetAllNews', array(), array('return' => 'xsd:string[]'), 'urn:NewsService', 'urn:NewsService#GetAll...

Can nusoap return array of string ?

Hi all, I would like to return an array of string in my web services I've tryed : <?php require_once('nusoap/nusoap.php'); $server = new soap_server(); $server->configureWSDL('NewsService', 'urn:NewsService'); $server->register('GetAllNews', array(), array('return' => 'xsd:string[]'), 'urn:NewsService', 'urn:NewsService#GetAllNe...

Silverlight and PHP nuSOAP communication problem

I am writting a silverlight application in which I want to call the php webservice written using NuSOAP. here is the WSDL of webservice <?xml version="1.0" encoding="ISO-8859-1" ?> - <definitions xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/20...

C# incorrectly parsing array type from SOAP

I have a SOAP service that returns an array of a complex type. The definition in NuSOAP in PHP looks like this: // The type itself $server->wsdl->addComplexType( "Clip", "complexType", "struct", "all", "", array( "Id" => array( "name" => "id", "type" => "xsd:int" ) // ---snip--- ...

PHP nuSoap issue when connecting to a .NET server: "Object reference not set to an instance of an object."

I am currently working on a SOAP project using PHP. The script is connecting to a remote .NET service server. I get a nice response using the HelloWorld action the provide, but when the script goes to get any other data using other actions, I get "Object reference not set to an instance of an object." in a diffgram sub array of ...

Help with NuSoap - Creation of web service

I have been helplessly trying to create a web service in PHP using NuSoap for the past 2 days. However, after endlessly sifting through various tutorials and guides, i am still stuck with 10 lines of code that refuse to work. Server : // Pull in the NuSOAP code require_once('./lib/nusoap.php'); // Create the server instance $server = ...

PHP , How can I get values out of a complex array ?

I am calling a soap function that returns the following array: Array ( [FastAddressResult] => Array ( [IsError] => false [ErrorNumber] => 0 [ErrorMessage] => [Results] => Array ( [Address] => Array ( [Id] => 13872147.00 [OrganisationName] => [DepartmentName] => [Line1] => Methley Grove [Line2] => [Line3] => [Line4] => [Line5] => [PostT...

How to authentice users with SOAP ?

Do we have to send username/password along with the SOAP message ? In that case, my database server will have to run a query every time to authenticate. Is there a method for token based authentication ? It would be really helpful if someone could point me in the right direction. ...

Why use Nusoap rather than PHP SOAP ? Any benifits ?

As far as i have scourged the web, i can see an abundance of articles on how to setup Nusoap and use it to setup a soap server/client in PHP. However, none of them seem to point to any advantages of using it than PHP's own native SOAP library. Can anyone tell me what are the pros/cons between : Nusoap PHP SOAP PEAR::SOAP Zend SOAP...

Webservice error

i am new to webservices, I have created a basic stockmarket webservice, I have successfully created the server script for it and placed it in my server, Now I also creted a clent script and accessed it hruogh the same server.. Is it valid ? can boh files be accesed from the same server? or do I have to place them in different servers? If...

will webservice helps to Pass PHP Session one site to other site

Hi, Please any one tell me will webservice using nusoap helps to Pass PHP Session one site to other site. I need to pass the user session to my other site using PHP/Ajax/SOAP call ...

Can I redirect/alias one web service call to another?

I've written a simple PHP nusoap web service for an application and wish to change the name of one of the actions so that it makes more sense. However there is a CD-ROM based application in the wild using this web service and this action and so I need to redirect or alias any incoming requests to the new action... any idea how I might go...

Not getting response using SOAP and PHP.

I'm using PHP5 and NuSOAP - SOAP Toolkit for PHP. I created the server using the code below: <?php function getStockQuote($symbol) { mysql_connect('localhost','user','pass'); mysql_select_db('test'); $query = "SELECT stock_price FROM stockprices WHERE stock_symbol = '$symbol'"; $result = mysql_query($query); $row = mysql_fetch_assoc($re...

Python Consume a webservice

Hello i want to create a python application that consume a php nusoap webservice and get the result and save it in database what is the best way to do that using python regards ...

Transfer File us NuSOAP

Hey, I am having this problem transferring files using NuSOAP. I understand that you can read a file and transfer it has a string but its not working. Here is an example Client: require('libraries/nusoap/nusoap.php'); $url = "http://www.example.com"; $client = new nusoap_client($url); args = array('file_name' => 'myfile.zip'); $retur...

Calling a wsdl in php over https

I'm trying to connect to the next webservice: https://grab.beta.agiv.be/Tools/CRABTools.svc?wsdl I also have to add a header element which I have already created Can i call it just using php soapclient or zend_soap_client? Or do I have to use nusoap_client? I try something like: $soapclient = new nusoap_client($wsdl); $header = ""; /...

Calling ASP .NET web service from php client

I have a simple ASP .NET web service running and I want call it from a php client. I m using nusoap soap client. The following is the client side php code: <?php require_once('lib/nusoap.php'); $wsdl="http://localhost:64226/Service1.asmx?wsdl"; $client=new soapclient($wsdl, 'wsdl'); $param=array('number1'=>'2', 'number2'=>'3'...