default namespaces

From: Date: Fri, 11 Apr 2003 08:13:08 +0000
Subject: default namespaces
References: 1  Groups: php.soap 
Request: Send a blank email to php-soap+get-542@lists.php.net to get a copy of this message
Hi, I'm trying call methods from .net and the problem I'm experiencing is that the elements in the response (such as CheckSpellingResult below) do not have a namespace specified, and there is no default namespace. How can I add an attribute such as xmlns="http://localhost/" to the envelope to make it work? Tristan. <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns4="http://localhost/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <SOAP-ENV:Body> <ns4:doGetTimePeriodsResponse> <!-- The problem is here, that doGetTimePeriodsResult does not have a namespace --> <doGetTimePeriodsResult xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="[24]" SOAP-ENC:offset="[0]"> <!-- Neither does dateTime --> <dateTime xsi:type="xsd:string">2002-01-02T14:00:00Z</dateTime> </doGetTimePeriodsResult> </ns4:doGetTimePeriodsResponse>

« previous php.soap (#542) next »