namespace missing in soap message
| From: | nik600 | Date: | Thu, 25 Nov 2010 22:10:58 +0000 |
| Subject: | namespace missing in soap message | ||
| Groups: | php.soap | ||
| Request: | Send a blank email to php-soap+get-3143@lists.php.net to get a copy of this message | ||
Dear all
i've developed a web service based on a wsdl file.
I've got this scenario:
production server (debian 5 amd64 - PHP/5.2.6-1+lenny9)
production client (debian 5 amd64 - PHP/5.2.6-1+lenny9)
development client (ubuntu 10.04 PHP/5.3.2-1ubuntu4.2)
dev client -> production server is working
production client -> production server is NOT working.
Working SOAP sent from dev client
<?xml version="1.0" encoding="UTF-8"?>
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope"
xmlns:ns1="http://myws.footesting.it/myws-test/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<env:Body>
<ns1:NewZone>
<parameters xsi:type="ns1:Zone">
<Name>mynewzone.it</Name>
<SOA>dns.footesting.it. hostmaster@footesting.it.</SOA>
<TTL>3D</TTL>
<Serial>2010112501</Serial>
<Refresh>86400</Refresh>
<Retry>2H</Retry>
<Expire>1W</Expire>
<Minimum>1D</Minimum>
<NameServerList NameServer="dns.footesting.it." />
<NameServerList NameServer="dns2.footesting.it." />
<Entries>
<Key>mynewzone.it</Key>
<Type>MX</Type>
<Priority>10</Priority>
<Value>footestingmail.footesting.it.</Value>
</Entries>
<Entries>
<Key>www</Key>
<Type>CNAME</Type>
<Value>footestingweb.footesting.it.</Value>
</Entries>
</parameters>
</ns1:NewZone>
</env:Body>
</env:Envelope>
NOT Working SOAP sent from production client
<?xml version="1.0" encoding="UTF-8"?>
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope"
xmlns:ns1="http://myws.footesting.it/myws-test/">
<env:Body>
<ns1:NewZone>
<parameters>
<Name>mynewzone.it</Name>
<SOA>dns.footesting.it. hostmaster@footesting.it.</SOA>
<TTL>3D</TTL>
<Serial>2010112501</Serial>
<Refresh>86400</Refresh>
<Retry>2H</Retry>
<Expire>1W</Expire>
<Minimum>1D</Minimum>
<NameServerList NameServer="dns.footesting.it." />
<NameServerList NameServer="dns2.footesting.it." />
<Entries>
<Key>mynewzone.it</Key>
<Type>MX</Type>
<Priority>10</Priority>
<Value>footestingmail.footesting.it.</Value>
</Entries>
<Entries>
<Key>www</Key>
<Type>CNAME</Type>
<Value>footestingweb.footesting.it.</Value>
</Entries>
</parameters>
</ns1:NewZone>
</env:Body>
</env:Envelope>
It seems that the difference is the xsi:type="ns1:Zone" attribute at
the parameters element, is this a php 5.2 error or should i change
something in the code?
Thanks in advance
--
/*************/
nik600