Home > Back-end >  Turn a webservice problem
Turn a webservice problem

Time:10-13

Recently had a invoke the web service interface, communication and data do not have what problem, is the problem of Delphi to generate XML format slightly, the following is to use soapui tests right
 & lt; The 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" & gt; 

1270 & lt;/AMOUNT>
CNY
20130625 & lt;/FDATE>



The following is a Delphi generated
 & lt; The 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" & gt; 








Can be seen that Delphi is generated in a ROW inside the bottom of each item is added a XMLNS="", while the other requirements is behind the ROW add a XMLNS=" ", and the bottom of each item no,
O group everyone a great god help to look at, if can't allow Delphi automatic adjustment, I can manually adjust the XML, but don't know where I can adjust, with what method to adjust, thank you for your attention

CodePudding user response:

Added with delphi2012 is xe3, WSDL file is to use the WSDL import the default configuration is automatically generated

CodePudding user response:

The following is your generated? Can manipulate XML to add

CodePudding user response:

refer to the second floor gykthh response:
below is generated by yourself? Can manipulate XML add

Not, below is the Delphi generated, the above is correct I caught out manually change,
For help how to modify XML, I saw the HTTPRIO attributes didn't find which are XML, thanks

CodePudding user response:

Delphi operations when the generated XML good
Stick your generated code come out and have a look
  • Related