I recently learned how to use remobject FOR DEVELOPMENT AND encountered many problems due to lack of experience. The following lists the problems:
I will not discuss how to use remobject Hydra to create remobject SDK Service plugin. For details, refer:
Http://www.remobjects.com/devcenter/articles? Id = {36786066-bbcb-437b-9b51-6951464a2d79}
The creation method is similar.
Note: The thyxxxserver and thyxxmessage used by the Service are all placed on the main program of the module plug-in. Never put them in the plug-in. I have made such an error. Haha.
After debugging and running the main program, the following error occurs when you call http: // localhost: 8099/soap: coinitialize has not been called. This error must be in the master project unit (Project Unit) the following uses references
Urocominit unit, if there is no urocominit. DCU, you can add it to the project. You can install remobject SDK for Delphi/source/urocominit in the remobject SDK directory. PAS found;
If the cannot a tstringlist assign a tstringlist error occurs, you need to bring the package to compile the project. In this way, you can.
Also, if you like to make remobjects SDK Service a plug-in method, remember to add the thyrodlreader component to the module plug-in main program and set its relationship with other messages.
If you want to display the interface information in memo, you can use the following code:
VaR
Lib: trodllibrary;
I, X: integer;
Defaultintf: trodlserviceinterface;
Begin
Memo. lines. Clear;
Hyrodlreader1.readfullrodl (LIB );
Try
For I: = 0 to (Lib. ServiceCount-1) Do begin
Memo. lines. Add (Lib. Services [I]. info. Name );
Defaultintf: = Lib. Services [I]. items [0];
For X: = 0 to (defaultintf. Count-1) do
Memo. lines. Add ('---->' + defaintintf. items [X]. info. Name );
End;
Finally
Lib. Free;
End;
End;
Note: trodllibrary is in unit: urodl
This is what we learned today.