473,378 Members | 1,492 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,378 software developers and data experts.

SOAP calls to a server from a Windows Forms app

TC
Hello All,

I'm building a COM object using C# and I need to communicate with a server
via SOAP.

Unfortunately, all of the samples that I've seen target ASP.Net, config
files, etc.

Does anyone have a quick & dirty sample of how to make SOAP calls from
within a Windows Forms application using C#?

What assemblies need to be referenced?

Thanks & Regards,

TC
Nov 17 '05 #1
1 2098
TC wrote:
I'm building a COM object using C# and I need to communicate with a server
via SOAP.

Unfortunately, all of the samples that I've seen target ASP.Net, config
files, etc.

Does anyone have a quick & dirty sample of how to make SOAP calls from
within a Windows Forms application using C#?

What assemblies need to be referenced?

Thanks & Regards,


Not sure if you need a reference to System.Web, but everything's just
the same as for ASP.NET. Right-click on References and go to "Add Web
Reference" and type the address of your WSDL/asmx. Type a name for the
reference on the right (I usually use "Soap.ProductName"), then you're
good to go:

Soap.ProductName.ServiceName webServices = new
Soap.ProductName.ServiceName();

webServices.CallWebMethodHere("something", "somethingElse");
--
Danny
Nov 17 '05 #2

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

Similar topics

6
by: Glauco | last post by:
I'm trying to use SOAPpy 0.10.1 for a client but is difficult to handle easly Is this library in use or i'm using an OLD death library ? I'm alone in find a lot of problem in a SOAP Client ?...
1
by: Dante | last post by:
I have developed a PHP web service that runs on a linux machine. I have also developed a windows forms client to the web service in C#. The only problem that I'm having is that the data that I...
4
by: pepcag | last post by:
I used http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconalteringsoapmessageusingsoapextensions.asp as a template to create a very simple web method with soap...
1
by: TC | last post by:
Hello All, I'm building a COM object using C# and I need to communicate with a server via SOAP. Unfortunately, all of the samples that I've seen target ASP.Net, config files, etc. ...
0
by: TC | last post by:
Hey All, I have been asked to port a VB6 COM component that makes SOAP calls to .Net. The server side SOAP calls are written in PHP and after referencing the WSDL, the SOAP methods do not offer...
6
by: A.M-SG | last post by:
Hi, We are developing a SmartClient application and we are planning to expose business objects layer to SmartClient application by using ASP.NET SOAP web services.
52
by: frankgerlach | last post by:
>From my simple performance tests of SOAP it seems that it is about ten times slower than binary object request protocols such as RMI, IIOP or SimpleORB. Is this also YOUR experience ?
31
by: Bryan Dickerson | last post by:
Ok, simple question: from a VB.Net web service (as I've said before, I'm a newbie to SOAP), how would I get the SOAP body into a string? My boss and I concur that it, at least from our...
1
by: libsfan01 | last post by:
Hi all Can anyone explain the relationship between SOAP and XMLHttpRequest in Javascript? What actually is SOAP? and how does it relate to the process of transferring data client-side through...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...

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.