627 questions
2 votes
1 answer
36 views
How do you return a more complex data type in PHP / nusoap?
I am using PHP / nusoap to build an API and have seen a number of ways to return complex data types. These generally refer to either a mixed data type or an array. An example is returning: $aInvoice = ...
0 votes
0 answers
54 views
Unable to consume php nusoap web service [duplicate]
I asked Microsoft's Copilot a query to write a sample web-service accepting employee number and return name of the employee against the supplied employee number from database. Here is script of the ...
1 vote
1 answer
295 views
nuSoap didn't show the expected result
I'm a beginner and still learning. I have a nusoap problem. I am trying to find out what is wrong with my code because I think all of it is correct based on all the tutorial that I've searched. But ...
0 votes
0 answers
82 views
HTTP Request using NuSoap
I am trying to re-create the following XML request using NuSoap and send to a server. The server expects a request that looks like the following. POST /UserRegistratoin/services/Register/ HTTP/1.0 ...
0 votes
1 answer
341 views
NuSoap Client Call works on localhost but not on Live Server [closed]
I have a Wordpress app that consumes an external API and connects to it via NuSoap Client request. I first developed this in localhost WAMP server, PHP 7.4, and got it working, but now I've migrated ...
0 votes
1 answer
2k views
nusoap library compatible with PHP 7.4
I have used nusoap PHP library for soap request handling. It worked perfectly with PHP 5.4. I had to upgrade my PHP version to 7.4. Can anyone suggest or provide the suitable nusoap version match for ...
0 votes
1 answer
281 views
NUSOAP Client response is empty when I call SOAP endpoint on upgraded server
I am using NUSOAP client with a hard coded XML request to communicate with a Server to read a response from a Websphere server. I use nusoap_client->send to send the request. $result = ...
0 votes
0 answers
330 views
NuSoap PHP: Unexpected character \'>\' (code 62) in content after \'<\' (malformed start element?)
I'm trying to consume a webservice of "Ventanilla unica" and I also copied the sample request and shows the same error. Sample request code of Ventanillaunica: $wsdlRequest = "<...
1 vote
0 answers
127 views
Why is my nuSOAP client request to a a web service returning an empty array?
I am using xampp, if that helps. The code is supposed to send a query from the client.php to the server.php for a module name from the database and return corresponding module code and lecturer name. ...
1 vote
0 answers
55 views
When to use elements and attrs in nusoap?
In Nusoap, if I want to define array of struct, I can do it like this: (message is a struct) $server->wsdl->addComplexType( 'messageArray', 'complexType', 'array', '', 'SOAP-ENC:Array', [], // $...
1 vote
1 answer
402 views
How do i set username and password in a soap server?
I need to add credentias for my soap server, but i don't have much experience in this. What i have to use for add the user and password? <?php require_once "vendor/econea/nusoap/src/nusoap.php&...
0 votes
1 answer
609 views
The nusoap client fails to run
as it says in the title, I am trying to make a calculator in which the user enters the numbers and it does the most basic operations. The problem is that the client part does not work when I run it, ...
0 votes
0 answers
132 views
NuSOAP PHP web service and sending large string
again i am seeking for you help! I am new to NuSOAP, so please bear with me. I am trying to send multiple records, with multiple columns to my service, split this into records and writting them into ...
0 votes
1 answer
549 views
Error due to blank lines appearing in the response, while creating a php webservice using nusoap
I'm getting below error while creating a sample php webservice using nusoap. This page contains the following errors: error on line 4 at column 6: XML declaration allowed only at the start of the ...
0 votes
1 answer
520 views
How to set request headers in SOAP request using NuSOAP toolkit
could anyone tell me how to add request headers for subscription keys in SOAP request. I am using NuSOAP toolkit for making SOAP calls. Setting keys for authorisation SOAP calls seems difficult for ...