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 4578822
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T20:33:23+00:00 2026-05-21T20:33:23+00:00

I have the WSDL for a web service that I cannot currently connect to.

  • 0

I have the WSDL for a web service that I cannot currently connect to. The web service has a method called ExecuteCommand which returns a CommandResult
CommandResult looks like:

string ResultMessage;
DataSet ResultDataset;
bool ResultSuccess;

I’ve added the WebService as a Service Reference, but since I cannot currently reach the actual WebService, I need to work off of an XML file that is (I’m told) the XML Response that the WebService would return should I call it’s ExecuteCommand method.

If the WebService was working, I would simply do something like:

MyWebService.ServiceDataInterfaceSoapClient ws = new ServiceDataInterfaceSoapClient();
MyWebService.CommandResult result = ws.ExecuteCommand();

Instead, I want to do something like:

MyWebService.CommandResult result = //Load Result from XML file which contains the XML response that ws.ExecuteCommand would return.

I’m not sure how to go about this. I attempted to create a XmlSerializer of type CommandResult, but I get XML parsing errors on the very first line. I’m hoping someone can point me to a basic example on how to do this.

  • 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-21T20:33:24+00:00Added an answer on May 21, 2026 at 8:33 pm

    I ended up figuring out the following and it’s doing what I needed:

    XmlSerializer xml = new XmlSerializer(typeof(CommandResult),"XMLNamespaceFromWSDL");
    CommandResult cr;
    using (Stream stream = new FileStream("CommandResult.xml", FileMode.Open))
         cr = (CommandResult)xml.Deserialize(stream);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a .NET web-service client that has been autogenerated from a wsdl-file using
I have to connect to a third party web service that provides no wsdl
I have a WSDL 1.1 file which describes my Web Service. Now I need
I have a web service that I am calling and their published WSDL doesn't
I have multiple SharePoint web parts that needs to access Reporting service 2008 which
I have a web service that is running and generates a WSDL file based
I have an WSDL / Web Service and I need to generate an set
I have a WSDL file defining the interface for a web service and I
I have a web service, defined(WSDL) and implemented in PHP. This one is relatively
I have been studying SOAP and WSDL in preparation for implementing a web service.

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.