No, you don't need a form. When you type the URL into your browser to invoke
the client, are you sure you are typing the client URL, not the server? The
web description comes from the server when you do an HTTP GET of the server URL.
Scott Nichol
Do not send e-mail directly to this e-mail address,
because it is filtered to accept only mail from
specific mail lists.
----- Original Message -----
From: "Geoff Clarke" <geoff@xxxxxxxxxxxxxx>
To: <nusoap-general@xxxxxxxxxxxxxxxxxxxxx>
Sent: Tuesday, November 08, 2005 11:14 AM
Subject: RE: [Nusoap-general] Can't get data from server - total newb
Scott:
Thanks for your reply.
Again, I apologize for my non-understanding, but there's no form at all
in my client page. It just takes a token as a GET parameter and passes
it onto the server, I think, using the $client->call('GetUserData',
$param) statement.
Do I need a form action in order to trigger the
$server->service($_SERVER['HTTP_RAW_POST_DATA']) statement? That would
explain my issue...
Geoff
-----Original Message-----
From: nusoap-general-admin@xxxxxxxxxxxxxxxxxxxxx
[mailto:nusoap-general-admin@xxxxxxxxxxxxxxxxxxxxx] On Behalf Of Scott
Nichol
Sent: Tuesday, November 08, 2005 9:01 AM
To: nusoap-general@xxxxxxxxxxxxxxxxxxxxx
Subject: Re: [Nusoap-general] Can't get data from server - total newb
More specifically, you seem to have a page with a form on it that has
the PHP client as its action, but it seems maybe you have put the PHP
server as the action for the form.
Scott Nichol
Do not send e-mail directly to this e-mail address,
because it is filtered to accept only mail from
specific mail lists.
----- Original Message -----
From: "Scott Nichol" <snicholnews@xxxxxxxxxxxxxxx>
To: <nusoap-general@xxxxxxxxxxxxxxxxxxxxx>
Sent: Tuesday, November 08, 2005 8:59 AM
Subject: Re: [Nusoap-general] Can't get data from server - total newb
If you keep getting the HTML with the web service description, you are
pointing your browser at the URL for the server, instead of the URL for
the client.
Scott Nichol
Do not send e-mail directly to this e-mail address,
because it is filtered to accept only mail from
specific mail lists.
----- Original Message -----
From: "Geoff Clarke" <geoff@xxxxxxxxxxxxxx>
To: <nusoap-general@xxxxxxxxxxxxxxxxxxxxx>
Sent: Monday, November 07, 2005 8:07 PM
Subject: [Nusoap-general] Can't get data from server - total newb
Hi All:
Sorry for the total newb question, but I'm trying to develop my first
server with nusoap, but I can't seem to get any data returned - I keep
getting the html from the webDescription function (and, if I disable
that, the error "no data present after HTTP headers"). I searched
through the archives to no avail.
The server should take a string token and return an array
Here's my server code:
require_once('nusoap.php');
$ns="[snip].php";
$server = new soap_server;
$server->configureWSDL('GetUserData', $ns);
$server->wsdl->schemaTargetNamespace = $ns;
$server->register('GetUserData', array('token' => 'xsd:string'),
array('returnvar' => 'xsd:array'));
function GetUserData ($token)
{
$returnvar = array (
"userid"=>"",
"firstName"=>"",
"lastName"=>"",
[snip]
"info_fld0"=>""
);
$soapval = new soapval('returnvar','xsd:array',$returnvar);
return $soapval;
}
$server->service($_SERVER['HTTP_RAW_POST_DATA']);
Here's the test client code:
require_once('nusoap.php');
$wsdl="[snip].php?wsdl";
$client=new soapclient($wsdl, true);
$param=array("token"=>$_GET["token"]);
$result = $client->call('GetUserData', $param);
echo("<pre>".htmlentities($client->request)."</pre>");
echo("<pre>".htmlentities($client->response)."</pre>");
I appreciate any help you can give...
Thanks
Geoff
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server.
Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Nusoap-general mailing list
Nusoap-general@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/nusoap-general
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server.
Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Nusoap-general mailing list
Nusoap-general@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/nusoap-general
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Nusoap-general mailing list
Nusoap-general@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/nusoap-general
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
|