BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Delphi 2005 for NET equivalent for THttpRIO

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi WebServices SOAP
View previous topic :: View next topic  
Author Message
Alain Quesnel
Guest





PostPosted: Sun Apr 29, 2007 8:12 am    Post subject: Delphi 2005 for NET equivalent for THttpRIO Reply with quote



Is there such a thing that I can use in a Delphi 2005 .NET library? Or am I
better off creating a .NET library in Visual Studio/C#?

I just need to write a public function that calls an existing webservice (no
attachment, just 5 input params and a return value). The DLL needs to be in
..NET so that I can integrate it into MSSQL 2005 (SQL/CLR). I've done
something similar before in MSSQL 2005/C#/Visual Studio, but the CLR
function did not involve calling a webservice.

Thanks,


--

Alain Quesnel
alainsansspam (AT) logiquel (DOT) com

www.logiquel.com
Back to top
danny heijl
Guest





PostPosted: Sun Apr 29, 2007 6:30 pm    Post subject: Re: Delphi 2005 for NET equivalent for THttpRIO Reply with quote



Alain Quesnel schreef:

Quote:
Is there such a thing that I can use in a Delphi 2005 .NET library? Or am I
better off creating a .NET library in Visual Studio/C#?

Delphi .Net already has the same support for webservices that C# has in
..Net 1.1.

You don't need HTTPRIO in Delphi .Net because you already have this new
and excellent .Net webservice support available in D2005.

Danny
---
Back to top
Jean-Marie Babet
Guest





PostPosted: Mon Apr 30, 2007 11:47 pm    Post subject: Re: Delphi 2005 for NET equivalent for THttpRIO Reply with quote



Hello Alain,

In .NET there's not direct equivalent of the THTTPRIO component but .NET
offers the WSDL.EXE importer that can be used to generate bindings for you
to invoke a WebService. Matter of fact, Delphi .NET uses WSDL.EXE behind the
scene. WSDL.EXE allows one to plugin a CodeDomProvider. When Delphi.NET's
WSDL importer runs, it's basically running WSDL.EXE with the
DelphiProvider.dll as CodeDomProvider.

The code generated with that approach is not identical to the THTTPRIO's but
it's very easy to invoke a webservice.

Let me know if you need more information.

Cheers,

Bruneau.
Back to top
Alain Quesnel
Guest





PostPosted: Tue May 01, 2007 2:05 am    Post subject: Re: Delphi 2005 for NET equivalent for THttpRIO Reply with quote

If you could point me in the right direction as to which class to use in
..NET and also any .NET deployment issues on a machine that doesn't have
Delphi installed on it. Like I said it's a very basic web service, about as
simple as the getQuote webservice.
http://services.xmethods.net/soap/urn:xmethods-delayed-quotes.wsdl

Thanks,

--

Alain Quesnel
alainsansspam (AT) logiquel (DOT) com

www.logiquel.com


"Jean-Marie Babet" <bbabet (AT) borland (DOT) com> wrote in message
news:463639db$1 (AT) newsgroups (DOT) borland.com...
Quote:
Hello Alain,

In .NET there's not direct equivalent of the THTTPRIO component but .NET
offers the WSDL.EXE importer that can be used to generate bindings for you
to invoke a WebService. Matter of fact, Delphi .NET uses WSDL.EXE behind
the
scene. WSDL.EXE allows one to plugin a CodeDomProvider. When Delphi.NET's
WSDL importer runs, it's basically running WSDL.EXE with the
DelphiProvider.dll as CodeDomProvider.

The code generated with that approach is not identical to the THTTPRIO's
but
it's very easy to invoke a webservice.

Let me know if you need more information.

Cheers,

Bruneau.

Back to top
Jean-Marie Babet
Guest





PostPosted: Tue May 01, 2007 2:56 am    Post subject: Re: Delphi 2005 for NET equivalent for THttpRIO Reply with quote

Hello Alain,

My copy of BDS2006 is disabled Sad currently due to some work in progress
that conflicts... So I can give exact steps. Basically, what you'll need to
do is add a Web Reference for the WebService you want to interact with to
your application. The following link describes the process:

http://www.delphibasics.co.uk/NetArticle.asp?Name=NETWebServices

The main thing to remember is that you'll be given a class that *talks*
directly to the service. You don't need to use something analogous to the
THTTPRIO.

Once you've added the Web Reference the IDE will generate a .pas file. If
you look at the file you'll see a class that contains methods that map to
the operations exposed by the WebService. You'll basically create an
instance of that class (via .Create method) and then invoke the methods.

I hope the above helps.

Cheers,

Bruneau.
Back to top
Alain Quesnel
Guest





PostPosted: Tue May 01, 2007 6:42 am    Post subject: Re: Delphi 2005 for NET equivalent for THttpRIO Reply with quote

Sounds simple enough. I'll give it a try. I guess I'm used to Delphi for
Win32 and writing/instantiating objects or writing/using components.

Thank you,

--

Alain Quesnel
alainsansspam (AT) logiquel (DOT) com

www.logiquel.com


"Jean-Marie Babet" <bbabet (AT) borland (DOT) com> wrote in message
news:46366619$1 (AT) newsgroups (DOT) borland.com...
Quote:
Hello Alain,

My copy of BDS2006 is disabled Sad currently due to some work in progress
that conflicts... So I can give exact steps. Basically, what you'll need
to
do is add a Web Reference for the WebService you want to interact with to
your application. The following link describes the process:

http://www.delphibasics.co.uk/NetArticle.asp?Name=NETWebServices

The main thing to remember is that you'll be given a class that *talks*
directly to the service. You don't need to use something analogous to the
THTTPRIO.

Once you've added the Web Reference the IDE will generate a .pas file. If
you look at the file you'll see a class that contains methods that map to
the operations exposed by the WebService. You'll basically create an
instance of that class (via .Create method) and then invoke the methods.

I hope the above helps.

Cheers,

Bruneau.

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi WebServices SOAP All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.