Link to home
Start Free TrialLog in
Avatar of DelphiRulez
DelphiRulez

asked on

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
Avatar of systan
systan
Flag of Philippines image

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
Avatar of DelphiRulez
DelphiRulez

ASKER

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

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...
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.
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.

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?




Yes, this is Bob Swart. Who is DelphiRulez? ;-)
Shane Holmes
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...
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
ASKER CERTIFIED SOLUTION
Avatar of ebob42
ebob42
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Great!  Then im not gonna worry about any client in any language other than delphi. Thanx again!
Great!  Then im not gonna worry about any client in any language other than delphi. Thanx again!