473,386 Members | 1,790 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Using a webservice in Windows application

Hi all

I need to develope a web service that I should use in a windows based application.

This web service must be a layer that invokes one more webservice.Due to some security constraints I should use the URL path as https://webservice_name....
instead of
http://webservice_name....

this I should implement in which I need to develope( the above mentioned one).Can any one help me in How to reffer the URL as mentioned.

And one more doubt that how can I reffer a webservice in windows based application?(I application developed using VC++.Net).
EggHeadCafe.com - .NET Developer Portal of Choice
http://www.eggheadcafe.com
Jul 29 '07 #1
2 2828
Raja Yashwanth wrote in news:20************************@gmail.com:
And one more doubt that how can I reffer a webservice in windows based
application?(I application developed using VC++.Net).
Add a web reference in VS.NET 2005.
Jul 29 '07 #2
On Sun, 29 Jul 2007 23:56:09 +0200, Spam Catcher <sp**********@rogers.com
wrote:
Raja Yashwanth wrote in news:20************************@gmail.com:
>And one more doubt that how can I reffer a webservice in windows based
application?(I application developed using VC++.Net).

Add a web reference in VS.NET 2005.
.... or use 'wsdl.exe' tool which gives you more control over generating
proxy class from WSDL schema.

If you want to connect SSL secured WebService you schould implement
System.Net.ServicePointManager.ServerCertificateVa lidationCallback delegate
to decide what certificate do you trust.

Code below is sample of trust all certificates:

System.Net.ServicePointManager.ServerCertificateVa lidationCallback +=
delegate(
object sender,
System.Security.Cryptography.X509Certificates.X509 Certificate certificate,
System.Security.Cryptography.X509Certificates.X509 Chain chain,
System.Net.Security.SslPolicyErrors sslPolicyErrors)
{
return true;
};

Mrozik
Jul 30 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Programatix | last post by:
Hi, I'm working on a project which includes WebServices and Windows Form application. The Windows Form application will call the WebServices to retrieve data from database. The data will be...
0
by: Cenray | last post by:
How to generate a web request from a Winform Application using a WebService? In a C# Windows Application, when I try to genrate a web request using the following code, it is woking fine ...
0
by: Nalla | last post by:
Hi, I have a requirement to call webservices from my old C++ application.So first I tried with Vc++.net as follows.....There are 2 approach Dotnet frame work and soaptoolkit 3.0 I am not able to...
1
by: gillcleeren | last post by:
I have made an desktop application which connects to a webservice running on a remote webserver. When my exe-file connects to the webservice, the firewall (my Norton Internet Security firewall, as...
4
by: MacLanca | last post by:
Hi, I've done the HelloWorld WebService, installed in a WebServer (INTERNET) When I call it with Windows App it works, if I use a webform it doesn’t (INTERNET) Both of them work in the INTRANET...
0
by: galico | last post by:
Hi All, One of my clients is having a problem with a webservice that is part of an application. The application is constructed as follows. 1. Windows forms client(.NET 1.1) - on user PCs 2....
0
by: kamig | last post by:
Hi! Scenario: Consuming my webService in a windows application give denied acces! Explanation: I have to say a moveTo fn. which move one file/dir from one drive to another, <authorization>
6
by: tony | last post by:
Hello! When you have windows forms you have the same possibility as when you have a Console application to use Console.Writeln to write whatever on the screen. Now to my question: Is it...
0
by: nhaughton | last post by:
I have writtten a webservice in .Net 1.1 using C#, that exposes an existing COM+ application as a webservice to remote web applications. The COM+ application works fine under Win 2000, XP amd...
1
by: Raja Yashwanth | last post by:
Hi all I need to develope a web service that I should use in a windows based application. This web service must be a layer that invokes one more webservice.Due to some security constraints I...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.