Using SoapClient's non-WSDL Mode

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

Typically, when consuming a SOAP web services, I've had the WSDL URI
available to me and can easily instantiate the SoapClient with that
URI.  I'm now in a position where I might have to engage a SOAP
service sans WSDL.  I've looked at the documentation, so I can see
that this is possible, but I'm hoping someone provide a little more
information about the options available.

The documentation provides this syntax for instantiating the class
without WSDL:

$client = new SoapClient (
     array (
          'location' => "http://localhost/soap.php",
          'uri'      => "http://test-uri/"

Can someone help clarify exactly what the location and uri options are
pointing to so I have some idea how to apply that to my system and/or
the external services system?



Re: Using SoapClient's non-WSDL Mode

Quoted text here. Click to load it

I should have added that I'm working ahead of this external system so
I don't have the benefit of trial and error.  I'm trying to reach a
point where I'm as prepared as possible (including as much code as
possible) when the system comes online.  Otherwise, I'd have done much
more legwork and would have at least played around more than I can in
this case.

Thanks again.

Site Timeline