Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1957976
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T07:57:18+00:00 2026-05-17T07:57:18+00:00

I need to consume a SOAP web service from a C# .Net 4.0 client.

  • 0

I need to consume a SOAP web service from a C# .Net 4.0 client. I’ve added the WSDL as a Service Reference in VS 2008 and can now see the XML types as classes so I can construct the SOAP message.

The WSDL Port is defined as an Interface and the two operations defined in the WSDL (UploadMessage and ValidateMessage) are visible methods.

How do you actually use these methods? I thought the Port would be available as a class so you could directly call the methods and that VS would have created the relevant code for sending the SOAP message, but it looks like you have to write code to go in these methods. Is that correct?

I have googled this but can’t find a simple example using .Net 4.0 ;-(

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T07:57:19+00:00Added an answer on May 17, 2026 at 7:57 am

    When you add your service using Add Service Reference, you should have a new namespace (which you defined in the Add Service Reference dialog box – bottom left corner).

    alt text

    Inside that namespace, there ought to be a class called something like (yourservicename)Client.

    If you can’t find it, open up the Service References node in your Visual Studio Solution Explorer, and find the Show All Files button in the Solution Explorer’s little toolbar – click on it to see all files.

    alt text

    Under your Service Reference, several nodes deep, you should find a file called Reference.cs which contains the code classes generated from your WSDL.

    alt text

    In that Reference.cs, you should find your client class. This is a regular class, which you can instantiate in your code and call methods on. This will call the web service methods on that remote server you want to connect to.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to consume an external web service from my VB6 program. I want
From a .NET application, how do I consume a Web Service developed using gSoap
So I need to consume a Web Service that uses a custom SoapHeader, as
I need to create a .net client which consumes a webservice from a SAP
I am trying to consume a .net web service, and get the following error
need ask you about some help. I have web app running in Net 2.0.
I'm trying to implement a stateful web service in PHP using the SOAP extension.
I am planning on putting up a web service, or some other service exposed
I have an API consisting of ASP.NET webservices callable through GET/POST/SOAP. A new functionality
I've built ASP.NET Web Services in the past that either were publicly consumed, or

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.