Groups | Blog | Home
all groups > dotnet sdk > july 2005 >

dotnet sdk : http client request sample


David Thielen
7/27/2005 7:45:03 PM
Hi;

I am trying to create a licensing system like MS Office has. When I get the
key I want to talk to my server using http. Is there a good sample of how to
do this on the client side anywhere?

And does this handle proxy servers?

--
v-phuang NO[at]SPAM online.microsoft.com (
7/28/2005 12:00:00 AM
Hi

Here is sample about Encryption/Decryption with .NET
http://www.codeproject.com/dotnet/encryption_decryption.asp

Also as Erick said, if you choose the Web service approach, the WSE 2.0
will support Encryption.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
erick NO[at]SPAM csharpbox.com
7/28/2005 4:18:59 AM
I have done something similar in the past using the Cripto API (as Peter
suggested) and web services. Nowardays, if i had such requirement again ,
i would look at WSE http://msdn.microsoft.com/webservices/webservices/building/wse/default.aspx.



Erick Sgarbi

[quoted text, click to view]

David Thielen
7/28/2005 5:56:08 AM
A sample using crypto is great - it makes my life even easier as I need that
part too (I didn't ask for that figuring that was too much to hope for).

I did consider using web services but the server side is java (long story)
and getting web services to run in just a java/java setup is virtually
impossible. So for a C#/java setup I'm guessing it is impossible.

thanks - dave

ps - Those of you doing web services in .NET have no idea how awful it is to
set up on the java side - no idea...

--
thanks - dave


[quoted text, click to view]
v-phuang NO[at]SPAM online.microsoft.com (
7/28/2005 8:23:50 AM
Hi

Based on my research, I did not find such a sample.
But I think you can use the HttpWebRequest and Crypto API in .NET framework
to do the job.
We can first Crypto the license information and then send to the License
server to compute the valid in the server side and then return the
authentication response.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
erick NO[at]SPAM csharpbox.com
7/28/2005 1:56:59 PM
I have done J2EE WS in TomCat a long time ago... I understand where you're
comming from. I guess you should look at Peter's solution and invoke Http
from C#, specifically speaking you can use System.Net.WebClient as it will
allow you to download/upload files, perform webrequest with a few lines of
code.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemnetwebclientclasstopic.asp


HTH
Erick Sgarbi

[quoted text, click to view]

notifications NO[at]SPAM csharpbox.com
7/28/2005 5:33:31 PM
I have done J2EE WS in TomCat a long time ago... I understand where you're
comming from. I guess you should look at Peter's solution and invoke Http
from C#, specifically speaking you can use System.Net.WebClient as it will
allow you to download/upload files, perform webrequest with a few lines of
code.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemnetwebclientclasstopic.asp

HTH,

Erick Sgarbi

[quoted text, click to view]

j-integra_support NO[at]SPAM intrinsyc.com
8/3/2005 12:51:35 PM
[quoted text, click to view]

That is why there are interoperability tools available which allow you
to avoid all the headaches of using Web Services. Try using J-Integra
Espresso, which allows you to integrate .NET and Java seamlessly. Easy
to use and much faster than Web Services!

Shane Sauer
J-Integra Interoperability Solutions
http://j-integra.intrinsyc.com/
When Web Services are not enough
AddThis Social Bookmark Button