A: 

You need to define your namespace in your WSDL. It's probably easiest to just use the Zend WSDL autogenerator, which I believe will let you set the namespace. Let me know if you need more information.

benjy
Hi benjy,Thanks for the reply. I may be very close then, because I have wdsl in xml and also a services.xmlWould I create the connection to the server using a local copy of the wdsl by putting the xml in a string ala: <?php $client = new SoapClient($wdsl, array( 'trace'=> $trace_on, 'connection_timeout' => 5, 'soap_version' => SOAP_1_1, 'exceptions' => 0, 'location' => $hostname, 'uri' => 'urn:myURN', 'style' => SOAP_DOCUMENT, 'use' => SOAP_ENCODED )); ?>Or do I put the wdsl file on the server? If so, what to call it?many thanks
wclark
I would put the WSDL on the server, and then you can just use the WSDL's URI for $wsdl in your code above. Also, I would strongly recommend setting exceptions to 1 in your options array - makes testing much easier.
benjy