Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > PHP How-To
|
PHP How-To Post your "How do I do this with PHP?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the PHP How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 11th, 2007, 12:43 PM
Registered User
 
Join Date: Feb 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Nusoap problem - empty request in web service

Hi,

I am using the nusoap.php to invoke .Net web service.

While debugging, I noticed that the web service is invoked but all the parameters it recieved are null.
I have checked the namespace and it ok.
In this example I am sending one parameter, but also, if I am sending more, all of them are null.
I have tried to set style=document and use=literal but nothing is working.
Also tried to use the esdl method with no success.


here is the client php code:

<?php
include ("lib/nusoap.php");


$param = array
(
'userName'=>'testAPI'
);


$serverpath ='(URL address blocked: See forum rules);
$namespace = '(URL address blocked: See forum rules);
$soapclient = new soapclient($serverpath);
$soapAction='Register2';



$result = $soapclient->call('Register2',$param,$namespace,$soapAction) ;


if (isset($fault))
{
print "Error: ". $fault;
}
else if ($result)
{
echo '<h2>Result</h2>';
var_dump($result);
}
else
{
print "No result";
}

echo '<h2>Request</h2><pre>' . htmlspecialchars($soapclient->request, ENT_QUOTES) . '</pre>';
echo '<h2>Response</h2><pre>' . htmlspecialchars($soapclient->response, ENT_QUOTES) . '</pre>';
echo '<h2>Debug</h2><pre>' . htmlspecialchars($soapclient->debug_str, ENT_QUOTES) . '</pre>';
?>


thanks for your help,

Ronen







Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with nuSoap snowbydave1 Pro PHP 1 August 26th, 2010 08:10 AM
Consuming Web service with NuSoap CraigWhitfield PHP How-To 0 February 27th, 2008 11:20 AM
How to send Web Service request & response to url? gyandeosingh .NET Web Services 1 January 30th, 2006 04:21 AM
Web Service - Server unable to process request ksams .NET Web Services 0 January 19th, 2004 10:48 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.