Calling CGI web service published call from Web Client

Delphi 2010

I have written a simple CGI Web service which I have deployed to my web server.
Everything works great and I can connect using a Delphi Client.

http://myurl/cgi-bin/UCDSWS.exe/WSDL/IUsers

I was wondering if there was a simple way to create a client for the webbrowser (html file) using HTML, JavaScript, etc.

If so, how....please provide sample code - NOT links.

Or do I have to install something else on the server side to do this?

thanx
DelphiRulezAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

systanCommented:
Hello

Let me try to answer your questions,

>I was wondering if there was a simple way to create a client for the webbrowser (html file) using HTML, JavaScript, etc.
If using delphi client can connect to your cgi web service, and so different users on the internet can

>Or do I have to install something else on the server side to do this?
You don't have to install anything, unless if your web server does not support something else.

You've got it good
0
DelphiRulezAuthor Commented:
Thats not what I am asking. I know i can connect to a webservice by creating a client in Delphi. I described that above. I have been successful at doing so.

My question is:  

Can I create a client USING DELPHI that is not a Win32 executable (in otherwards, can i create a Web client)???????

Maybe using Intraweb, but i'd rather not.

Im just curious if delphi 2010 has a fetaure of creating clients for browsers.

thanx

0
ebob42Commented:
You can create a client for the web using WebBroker, WebSnap, InternetExpress or IntraWeb.

Just create a new web project, then do a WSDL Import and add the import unit for the web service to your project, and finally call the web service in your web unit (passing some input from the web page to the web method probably).

Depending on what you want, I can send you a sample project, but I'm not sure this is what you want, since it seems you want some magic HTML interface to a web service...
0
Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

DelphiRulezAuthor Commented:
as i stated above, i dont want to create a delphi client. I want to creat a webbrowser client.


>>> it seems you want some magic HTML interface to a web service...

I wouldn't call it magic, since it is possible to make one, using many languages, Java, Javscript, AJax, Perl, etc.  

All Im asking is if there is something in Delphi 2010 that will do it for me, whether it be in delphi or some other language or a mixture of the two  (for example, Intraweb is delphi code but converted to HTML and Javascript in the back ground)

ANyway, it seems like i already no the answer is NO, else someone would have given me an answer by now.
0
ebob42Commented:
The answer is not NO, but it's difficult to understand exactly what you want.

I can produce a HTML page with input as front-end, and then a Delphi web server applciation as back-end, but the actual call to the web service would be made from the Delphi application.  IntraWeb is not "delphi code but converted to HTML and JavaScript in the back ground" by the way - IntraWeb is a framework with which you can make a Delphi weblication that can produce HTML and JavaScript.

You can also use PHP in the browser, but that would then be a question more suited to another category (and not "Delphi Internet").

So for an automagically generated client in HTML that would call your web service, like the ASP.NET test page for ASP.NET web services, no I guess that's not possible indeed.
0
DelphiRulezAuthor Commented:

ebob42:

"I can produce a HTML page with input as front-end, and then a Delphi web server applciation as back-end, but the actual call to the web service would be made from the Delphi application. "

ya, again, your creating the client as a delphi application. I want a non delphi application. I want a web browser app.

As far as I know, the only way using delphi is via Intraweb.


"IntraWeb is a framework with which you can make a Delphi weblication that can produce HTML and JavaScript."


Ya, is that not exactly what i said?

"delphi code converted to HTML and JavaScript"


"You can also use PHP in the browser, but that would then be a question more suited to another category (and not "Delphi Internet")."

That is what I stated......that I believe there is no way to do it in delphi....that i would have to do it in another language.

BTW, is this Bob Swart?




0
ebob42Commented:
Yes, this is Bob Swart. Who is DelphiRulez? ;-)
0
DelphiRulezAuthor Commented:
Shane Holmes
0
ebob42Commented:
LOL, then feel free to contact me directly if you wish. I still think a HTML client can be produced, but not without writing some Delphi source code. I'm not sure if you can produce HTML and JavaScript to call the Web Service directly, without the Delphi code. Perhaps in PHP - I've seen that happen, but I don't know the syntax to do that, sorry. Perhaps someone else can be of more help - but maybe in the PHP or JavaScript sections...
0
DelphiRulezAuthor Commented:
ya, i was just looking to test my web service using a web browser. Im not going to worry to much about it. My goal is to just write a web service on a MS SQL Server database....and publish a few calls.


Anyway, to close this question out, I have a question for you.

If I have a web service (CGI) created in Delphi. And i have a WSDL file

for instance: (you will need to be on our VPN to reach this)

http://seavalupay01.valutech.com/shanedev/UCDSWSDemo.exe/wsdl/ITest

is that all i need? Any client can connect? This is all the need?

thanks

shane
0
ebob42Commented:
If the client has the URL to the WSDL, they can work with it.

Any SOAP client then only needs to import that WSDL and turn it into some import unit with the native language specification to call the web service. The client can be any development language or environment that supports SOAP. So the WSDL URL from above - if they can reach it - is indeed enough.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
DelphiRulezAuthor Commented:
Great!  Then im not gonna worry about any client in any language other than delphi. Thanx again!
0
DelphiRulezAuthor Commented:
Great!  Then im not gonna worry about any client in any language other than delphi. Thanx again!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Delphi

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.