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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T15:49:07+00:00 2026-05-27T15:49:07+00:00

I created client from wsdl file using visual studio 2010 Pro, created new project,

  • 0

I created client from wsdl file using visual studio 2010 Pro, created new project, right click to Reference, choosed “Add Service Reference…” then wrote the address of web service, clicked finished. After Visual Studio generated partial classes, then called method that had two arguments:

CompanyClient client = new CompanyClient();
log[] logs = client.GetLogs(new System.DateTime(2000, 11, 22), new System.DateTime(2011, 11, 22));

Then have exception:

SystemInvalidException: There was an error reflecting 'arg0'.

Inner exception:

System.InvalidOperationException: The top XML element 'arg0' from namespace '' references distinct types System.DateTime and System.Int32. Use XML attributes to specify another XML name or namespace for the element or types.

I wrote soapserver in scala and tested it with SoapUI everything is working, but while developing client such problems occurred.

  • 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-27T15:49:08+00:00Added an answer on May 27, 2026 at 3:49 pm

    The issue is that you probably have two arg0 classes (or a variant of that) from two different namespaces (on code side), but serialize as the same root name + namespace on xml side. The SOAP serializer doesn’t like this since it cannot figure out whether to deserialize a given type as ns1.arg0 or ns2.arg0 when it sees the xml.

    The problem and solution is discussed here: http://social.msdn.microsoft.com/Forums/ar/asmxandxml/thread/e3405d68-9d48-4600-8fa0-1587aa380c47

    Cheers,
    Anash

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

Sidebar

Related Questions

Environment : Visual Studio 2010 Professional .NET Framework 4 C# Added Service Reference using
I'm using Visual Studio 2010, .Net4, Silverlight(4.0.50826.0). I created a WCF service and I`m
I have created two wsdl files with shared types imported from xsd schema file.
I have to make a web service client from an wsdl file. I have
I am using a .net 2.0 client to create a proxy from a wsdl
I'm able to generate a client from a wsdl file. Now I need to
i created an additional content type called clients where I can create new client
Using the client-side ASP.NET AJAX library, I have created an instance of a client
Short Version: When I've created a Channel using ChannelFactory on a client which uses
I have to implement a webservice client to a given WSDL file. I used

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.