J
J
jamol2013-12-04 07:32:39
PHP
jamol, 2013-12-04 07:32:39

Can I use SoapClient without wsdl to connect to a web service (SoapServer) that was created with wsdl?

Is it possible to create a SoapClient without a wsdl to request a SoapServer that was created with a wsdl
SOAP client

$client = new SoapClient(null, array(
    'location'=>'http://localhost/webService',
    'uri'=>'targetNameSpace',
    'trace' => 1
 ));

SOAP server
$server = new SoapServer("myfile.wsdl");
If possible, why is this webservice not working? gives Procedure not present exception.
Here is the web service code

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Boliev, 2013-12-04
@jamol

The client does not need its own wsdl. The client uses the one on the server to find out what the server is and how to communicate with it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question