title: NuSOAP - Undefined index: namespace error
body: <p>I have a working service utilising NuSOAP v0.9.5, writing data to a web service.</p>
  
  <p>As soon as I try to retrieve data (or even use the existing code) to do something else, I'm getting an Undefined index: namespace error (line 1499/1500) from NuSOAP.</p>
  
  <p>As someone not fluent in SOAP, wondering if anyone has some pointers on debugging/what to look for.</p>
  
  <p>Here's a gist with my class that interacts with the WSDL service:
  <a href="https://gist.github.com/aleayr/de79995554c09695cde0" rel="nofollow">https://gist.github.com/aleayr/de79995554c09695cde0</a></p>
  
  <p>Things to note:</p>
  
  <p>The createTicket() function works, however, it fails with the undefined namespace index error if I call it from a different script to the one that it currently works in.</p>
  
  <p>The updateTicket() function has never worked, throws the undefined namespace index error, despite using virtually the same code.</p>
  
  <p>The error appears to be when $this->wsdl_client->call is invoked.</p>
  
  <p>I've tried using $this->wsdl_client->request and $this->wsdl_client->response to view the XML from the successful request, but when the error happens, it's in the client and I can't work out why it's failing.</p>
  
  <p>Any thoughts as to where I should start?</p>