If the WSDL and XSD files are accessible to the PHP code through the file
system, then specify the file name in the soap_server constructor and change
the files to refer to one another using relative URLs, e.g.
schemaLocation="schema/person.xsd"
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: "Jason Cale" <jason.cale@xxxxxxx>
To: <nusoap-general@xxxxxxxxxxxxxxxxxxxxx>
Sent: Saturday, January 08, 2005 2:16 PM
Subject: [Nusoap-general] Soap Server document style wsdl
> Hello again,
>
> Regarding my last post about document style services, i have created
> some test files to use for my webservice. One wsdl, an xml schema file
> and also a sample xml document.
>
> They can be found here.
>
> http://harmony.jasoncale.com/ws/person.wsdl
> http://harmony.jasoncale.com/ws/schema/person.xsd
> http://harmony.jasoncale.com/ws/schema/person.xml
>
> I am in the process of playing around with adding the wsdl and trying
> to get it to work, but I am a bit lost with what parts come from what..
>
> Here is a simple bit of server code.
>
> <?php
> // Pull in the NuSOAP code
> require_once('../include/nusoap.php');
> // Create the server instance
> $server = new
> soap_server('http://harmony.jasoncale.com/ws/person.wsdl');
> // Register the method to expose
> $server->register('PersonServiceSoap');
> // Define the method as a PHP function
> function PersonServiceSoap($person) {
> return $person;
> }
> // Use the request to (try to) invoke the service
> $HTTP_RAW_POST_DATA = isset($HTTP_RAW_POST_DATA) ? $HTTP_RAW_POST_DATA
> : '';
> $server->service($HTTP_RAW_POST_DATA);
> ?>
>
> I probably need to put more detail in my registration function and i
> will try that out further, but any guidance would be greatly
> appreciated.
>
> Currently if i point a browser to my server i get.. "WSDL ERROR: HTTP
> ERROR: Unsupported HTTP response status 404 Not Found
> (soapclient->response has contents of the response)"
>
> The server php file is located at
> http://harmony.jasoncale.com/ws/server.php
>
> Thanks in advance for any help
>
> Regards
>
> Jason Cale
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
|