Yeah, because that was just changed so I could post it here: Here is the actual wsdl: <definitions targetNamespace="urn:authenticate"> − <types> − <xsd:schema targetNamespace="urn:authenticate"> <xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/"/> <xsd:import namespace="http://schemas.xmlsoap.org/wsdl/"/> </xsd:schema> </types> − <message name="authenticate_userRequest"> <part name="key" type="xsd:string"/> <part name="params" type="xsd:string"/> </message> − <message name="authenticate_userResponse"> <part name="return" type="xsd:array"/> </message> − <portType name="authenticatePortType"> − <operation name="authenticate_user"> <documentation>Authenticates Getloaded User</documentation> <input message="tns:authenticate_userRequest"/> <output message="tns:authenticate_userResponse"/> </operation> </portType> − <binding name="authenticateBinding" type="tns:authenticatePortType"> <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> − <operation name="authenticate_user"> <soap:operation soapAction="urn:authenticate#authenticate_user" style="rpc"/> − <input> <soap:body use="encoded" namespace="urn:authenticate" encodingStyle=" http://schemas.xmlsoap.org/soap/encoding/"/> </input> − <output> <soap:body use="encoded" namespace="urn:authenticate" encodingStyle=" http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> </binding> − <service name="authenticate"> − <port name="authenticatePort" binding="tns:authenticateBinding"> <soap:address location="http:///~jack/development/webservices/authenticate.gl"/> </port> </service> </definitions> On 10/2/07, Nathan Nobbe <quickshiftin@xxxxxxxxx> wrote: > > this doesnt look like a wsdl file to me > http://mysite.com/authenticate.php?wsdl > > -nathan > > On 10/2/07, blackwater dev <blackwaterdev@xxxxxxxxx> wrote: > > > Hello, > > > > I have this nusoap service: > > > > $server= new soap_server(); > > $server->register('authenticate_user', array(), array()); > > > > // Initialize WSDL support > > $server->configureWSDL('authenticate', 'urn:authenticate'); > > // Register the method to expose > > $server->register('authenticate_user', // method name > > array('key' => 'xsd:string','params'=>'xsd:array'), // input > > parameters > > array('return' => 'xsd:array'), // output > > parameters > > 'urn:authenticate', // namespace > > 'urn:authenticate#authenticate_user', // soapaction > > 'rpc', // style > > 'encoded', // use > > 'Authenticates User' // documentation > > ); > > > > function authenticate_user($key=null,$params=null){ > > $data['message']=true; > > $data['key']=$key; > > $data['params']=$params; > > return $data; > > } > > > > /* "start" the service */ > > $HTTP_RAW_POST_DATA = isset($HTTP_RAW_POST_DATA) ? $HTTP_RAW_POST_DATA : > > ''; > > $server->service($HTTP_RAW_POST_DATA); > > > > > > I then have a php5 box calling the service: > > > > > > $client = new SoapClient(" http://mysite.com/authenticate.php?wsdl"); > > $return=$client->authenticate_user("fdsfds",array("username"=>"mynameis","password"=>"fred")); > > > > > > Problem is, it throws an error of: > > > > *Fatal error*: Uncaught SoapFault exception: [HTTP] Unable to parse URL > > in > > /var/www/mysite/html/webservices/test_authenticate_service.php:9 Stack > > trace: #0 [internal function]: SoapClient->__doRequest('<?xml > > version="...', > > 'http:///~me...', 'urn:authenticat...', 1, 0) #1 [internal function]: > > SoapClient->__call('authenticate_us...', Array) #2 > > /var/www/mysite/html/webservices/test_authenticate_service.php(9): > > SoapClient->authenticate_user('fdsfds', Array) #3 {main} thrown in * > > /var/www/mysite/html/webservices/test_authenticate_service.php* on line > > *9 > > > > How can I fix this? > > > > Thanks! > > * > > > >