如何在Delphi中更改SOAP结构?

时间:2013-10-28 09:17:43

标签: delphi soap

我已经将一个wsdl导入Delphi并且它不能与服务器一起工作。我被告知我需要将结构改为

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"      xmlns:api="http://api.service.api.xxxxxxx.com/"> 
<soapenv:Header/> 
<soapenv:Body> 
<api:openApiConnection> 
<login>XXXXXXXXX</login> 
<pwd>XXXXXXXX</pwd> 
<key>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX</key> 
</api:openApiConnection> 
</soapenv:Body> 
</soapenv:Envelope> 

而不是德尔福的

<?xml version="1.0"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<openApiConnection xmlns="http://api.service.api.xxxxx.com/">
<login xmlns="">XXXXXXXXXXXXXXXXX</login>
<pwd xmlns="">XXXXXXXXXXXX</pwd>
<key xmlns="">XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX</key>
</openApiConnection>
</soapenv:Body>
</soapenv:Envelope>

有什么想法吗?或者我必须自己滚动?

由于

0 个答案:

没有答案