[Original] troubleshooting of exceptions during remobjects SDK Service Development Using remobjects Hydra

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.