Answer the question
In order to leave comments, you need to log in
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
));
$server = new SoapServer("myfile.wsdl");
Answer the question
In order to leave comments, you need to log in
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 questionAsk a Question
731 491 924 answers to any question