PHP Web service client with nusoap problem |
|
Well I printed the
$proxy->getError(); $soap->getError(); The first one doesn't show any error. The second shows: "No operations defined in the wsdl document!" Any ideas people?!?! Thanks |
||||||||||||
|
Site Admin
|
if endpoints are in their namespaces, you have to specify/use namespace when you create soapclient object.
|
||||||||||||
_________________ The PHP IDE team |
|
Hello, thanks for your post.
However I'm not sure if I understood what you posted. When the object is created, using the call $soap = new soapclient ( $wsdl, false ); (actually it's using true and not false there). The $wsdl variable has the path to the WDSL file. Isnt that the "endpoint" ? The namespace is defined (C#) as http://mywebserver/Page/ And the $wsdl as http://mywebserver/Page/Service.asmx?wsdl What else is needed? Thanks. |
||||||||||||
|
Site Admin
|
do not use proxy, use soapclient instance and make calls like shown below:
$result = $soap->call( 'hello', // method/endpoint name array('aparam' => 'avalue'), // input parameters 'uri:test', // namespace 'uri:test/atest' // SOAPAction ); See this page for more advanced examples: http://www.scottnichol.com/nusoapprog.htm |
||||||||||||
_________________ The PHP IDE team |
PHP Web service client with nusoap problem |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by