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

  • SEARCH
  • Home
  • 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 7488131
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T14:45:21+00:00 2026-05-29T14:45:21+00:00

I was recently tasked with upgrading a classic ASP web application to C#. Everything

  • 0

I was recently tasked with upgrading a classic ASP web application to C#. Everything has been fine, except that there is some code that uses Server.CreateObject("Msxml2.ServerXMLHTTP.3.0"). I really don’t even know what this is, except I have the general idea that it is being used to call a web service over HTTPS somehow.

The code looks like this:

    Dim strSOAPEnvelope

    strSOAPEnvelope = "<?xml version='1.0' encoding='utf-8'?>" & _
                        "<soap:Envelope xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'>" & _
                            "<soap:Body>..........</soap:Body>" & _
                        "</soap:Envelope>"                  

  oXMLHttp.Open "POST", "https://example.com/service.asmx", False
  oXMLHttp.setRequestHeader "Content-Type", "text/xml"
  oXMLHttp.setOption 2, 13056
  oXMLHttp.setRequestHeader "Connection", "close"
  oXMLHttp.setRequestHeader "SOAPAction", "https://example.com" & strfunction

I think that I understand the general notion that this is communicating with a web service via HTTPS. How do I go about upgrading this code to C#

  • 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-29T14:45:24+00:00Added an answer on May 29, 2026 at 2:45 pm

    This is make a SOAP request to a web service.

    The equivalent feature for you is HttpWebRequest, but Web Services in .NET is a full fledged feature. I wouldn’t bother creating XML and handling the response.

    If you are using .NET 3.0 or higher; you can use Windows Communication Foundation (WCF) to add a service reference. The link provides ample instructions on how to do that. Once you’ve added the service reference, you can call the service’s methods using plain C#. All you need to do is point it to the URL which contains the WSDL for the service.

    If you are using .NET 2.0, you can use Web References which should work for SOAP as well.

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

Sidebar

Related Questions

I have recently been tasked with upgrading an application from .net 1.1 to 3.5
Recently I have been tasked with creating an application for a business that basically
I've been tasked with the the maintenance of a nonprofit website that recently fell
I've recently been tasked with improving a records database that consists of the following:
Recently a new co-op was hired at our company and has been tasked to
I've been tasked to develop a small web application for my company, and my
I have recently been tasked to working on code that uses Java CUP. Does
I am running a J2EE web application in Tomcat, and recently I have been
Our server recently has been going down a lot and I was tasked to
I was recently tasked with debugging a strange problem within an e-commerce application. After

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.