Jump to content

Call SOAP Web Service form uniGUI Application


MariusTurnkey

Recommended Posts

Hi,

 

I am a newbie with uniGUI, and before I start my self-tuition, I would like to find out if it is possible to call and use SOAP web service methods from within a uniGIU application.

 

My intention would be to use uniGUI only for the Web Application side and not Desktop applications.

 

Regards

Marius

Link to comment
Share on other sites

Hi,

 

I started testing uniGUI. So far I am very impressed by it.

 

I'm managing to call a Web Service Method, and getting the data back, but I do not know if this is the correct way or if it will stand the test of a "multi-user environment".

 

What I have done is to import the wsdl file.

Then I use (uses) that file in my main unit.

I have dropped a HTTPRIO component onto the MainModule (WSDLLocation and Service is set).

Then by hitting a UniButton, I invoke the web method by doing this:

try

CoInitialize(nil);

DAMISWS := (UniMainModule.SoapPipe AS IDAMISWS);

Res := DAMISWS.getUserList('All');

UniMemo1.Lines.Add(Res);

finally

CoUninitialize;

end;

 

And this gives me the results I expected.

 

Any advise or comments welcome.

 

Regards

Marius

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...