2010-07-19 58 views
0

我使用Php Nusoap创建了一个简单的Web服务。它的正常工作,但唯一缺少的是将默认的xmlns属性添加到响应标签。Nusoap - 为响应修复空的xmlns属性

这里是响应的副本:

<?xml version="1.0" encoding="ISO-8859-1"?> 
<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 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/"> 
    <SOAP-ENV:Body> 
    <LoginResponse xmlns=""> 
     <LoginResult> 
     <register> 
      <customer>d2ff3b88d34705e01d150c21fa7bde07</customer> 
     </register> 
     </LoginResult> 
    </LoginResponse> 
    </SOAP-ENV:Body> 
</SOAP-ENV:Envelope> 

我如何添加命名空间到LoginResponse标签。提前Thanx。

回答

0

是否将它添加到register()工作?

​​
+0

不,它不工作,我试过了。使用nusoap将属性添加到响应标记的方法是什么? – Rajat 2010-07-20 00:17:54

+0

如何添加复杂类型(仅适用于“开箱即用”服务器,不适用于nusoap)。 – Wrikken 2010-07-20 01:37:24