Li Wei's trip to the mainland of this is a storm in Borland's users, which is one of the most popular topics in Borland's users. I sent a text about his trip to Shanghai in 9CBS, and the result became the strongest post in the history of me. At the Webservice Technology Seminar held by Borland, Li Wei made a few Demo to demonstrate Borland's WebService solution. This is a very good Demo, which is more simple to show a very simple way. Soap / WebService development implementation with Borland, but I think there is still a place to improve.
Li Wei is also using Update 2 # Delphi 6, this version of Delphi 6 has a big improvement in SOAP / WebService application development (see "Delphi 6.02 preemptive research - BizSnap / SOAP / Webservice Four" One article), One of the biggest improvements is WSDL Import Wizard. The new WSDL Import Wizard is mainly improved in:
Increases an import result view interface, which can display the interface content included in the imported WSDL, and can preview the generated interface unit; the generated interface unit contains the HTTP remote interface object generation; supports new SOAP standards, Import the WSDL generated by Visual Studio.net.
The second point in the above point is that Li Wei can improve it. The method used in the example of "Delphi 6 preemptive - BizSnap / SOAP / WebService" is the method used in Li Wei's demo, namely a HTTPRIO control, set up URL attributes, and then use the following Code to access remote interfaces:
VAR
p: isoaphello;
Begin
p: = httprio1 as isoaphello;
Label1.caption: = p.gethello (strt ");
END;
But because of the second improvement of WSDL Import Wizard, you can't use it, you don't need to put HTTPRIO controls, and the code is simply as long as one sentence:
Label1.caption: = GetisoAphello.getHello (2);
The GetisoAphello is a function that returns an object that implements the ISOAPHELLO remote interface. It is defined and implemented in the interface unit file generated when importing WSDL. Its function is to create a new HTTPRIO object and set all the properties according to WSDL.
[Mental Studio] Raptor APR.13-02