Xml soap响应的格式不同,如何以正确的格式获取响应
我已经用PHP编写了soap服务,我在Node中重写了它们,我使用了已经存在的.wsdl并更改了tns和地址,.wsdl中的所有其他内容都是相同的,然后在我的节点代码中使用了this.wsdl 当我使用wizdler扩展运行API时,节点SOAP API在数据库中读取、插入和更新值时工作。但是我得到的响应格式不同于现有的格式,尽管使用了相同的.wsdl,我认为这使得.net中的响应为null,如何以正确的格式获得它 收到的答复Xml soap响应的格式不同,如何以正确的格式获取响应,xml,web-services,soap,wsdl,Xml,Web Services,Soap,Wsdl,我已经用PHP编写了soap服务,我在Node中重写了它们,我使用了已经存在的.wsdl并更改了tns和地址,.wsdl中的所有其他内容都是相同的,然后在我的节点代码中使用了this.wsdl 当我使用wizdler扩展运行API时,节点SOAP API在数据库中读取、插入和更新值时工作。但是我得到的响应格式不同于现有的格式,尽管使用了相同的.wsdl,我认为这使得.net中的响应为null,如何以正确的格式获得它 收到的答复 <?xml version="1.0" e
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tns="http://localhost:3001/wsdl">
<soap:Body>
<tns:DDL_GetStoreLoginsResponse>
<tns:StoreLogins>
<StoreLogins>
<Username>user</Username>
<Password>password</Password>
</StoreLogins>
<StoreLogins>
<Username>manju</Username>
<Password>manjula</Password>
</StoreLogins>
</tns:StoreLogins>
</tns:DDL_GetStoreLoginsResponse>
</soap:Body>
</soap:Envelope>
<?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/" xmlns:tns="http://12.502.51.612/soap/service.php">
<SOAP-ENV:Body>
<ns1:DDL_GetStoreLoginsResponse xmlns:ns1="http://12.502.51.612/soap/service.php">
<return xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="tns:StoreLogin[2]">
<item xsi:type="tns:StoreLogin">
<Username xsi:type="xsd:string">user</Username>
<Password xsi:type="xsd:string">password</Password>
</item>
<item xsi:type="tns:StoreLogin">
<Username xsi:type="xsd:string">manju</Username>
<Password xsi:type="xsd:string">manjula</Password>
</item>
</return>
</ns1:DDL_GetStoreLoginsResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
用户
密码
满洲
曼珠拉
要求的答复
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tns="http://localhost:3001/wsdl">
<soap:Body>
<tns:DDL_GetStoreLoginsResponse>
<tns:StoreLogins>
<StoreLogins>
<Username>user</Username>
<Password>password</Password>
</StoreLogins>
<StoreLogins>
<Username>manju</Username>
<Password>manjula</Password>
</StoreLogins>
</tns:StoreLogins>
</tns:DDL_GetStoreLoginsResponse>
</soap:Body>
</soap:Envelope>
<?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/" xmlns:tns="http://12.502.51.612/soap/service.php">
<SOAP-ENV:Body>
<ns1:DDL_GetStoreLoginsResponse xmlns:ns1="http://12.502.51.612/soap/service.php">
<return xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="tns:StoreLogin[2]">
<item xsi:type="tns:StoreLogin">
<Username xsi:type="xsd:string">user</Username>
<Password xsi:type="xsd:string">password</Password>
</item>
<item xsi:type="tns:StoreLogin">
<Username xsi:type="xsd:string">manju</Username>
<Password xsi:type="xsd:string">manjula</Password>
</item>
</return>
</ns1:DDL_GetStoreLoginsResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
用户
密码
满洲
曼珠拉
出于安全原因,我在发布问题时更改了IP地址