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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T23:27:57+00:00 2026-05-23T23:27:57+00:00

My client has specified a WSDL file as contract for a web service that

  • 0

My client has specified a WSDL file as contract for a web service that I have to implement. (It really must be that WSDL file, because it has been communicated already to other partners and so on, and they will implement their own web services and clients based on that WSDL too. It’s a WSDL file of 63 KB.)

With wsdl.exe I have created the proxy classes for the server side. So I could implement the web service.
BUT: if making use of wsdl.exe to create the client side proxy classes based on the original WSDL file, then that results in a client application that is not able to communicate with the web service!

INSTEAD: by adding “?wsdl” to the web service URL, I get another WSDL file. When making use of that second WSDL file to create the client side proxy classes, then that results in client applications which are perfectly able to communicate with the web service. Strangely, that second WSDL file has a size of 288 KB instead of the 63 KB of the original WSDL file.

So that should mean that the WSDL is not round-trip… (WSDL file -> wsdl.exe to create server side proxy classes -> web service -> adding “?wsdl” to web service URL -> results in another WSDL file as the original one (and worse: they are not compatible).)

Can anyone explain this? (For my project it is important, because the other parties will make use of the original WSDL file and so they won’t be able to communicate with my web service…)

I did tests with C# as well as with CLI. It is reproducible. I am making use of IIS 7.5 and .NET framework 3.5.

  • 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-23T23:27:58+00:00Added an answer on May 23, 2026 at 11:27 pm

    After having modified slightly the code that was generated by my code wizard (a freely available template for CLI ASP.NET web services for Visual Studio 2008, but the standard C# web service template generates the same kind of code), I got something like that :

    // MyWebService.cpp : main project file.
    #include "stdafx.h"
    #include "Global.asax.h"
    #include "HeaderFileGeneratedByWsdlExe.h"
    
    using namespace System;
    using namespace System::Web;
    using namespace System::Web::Services;
    
    namespace MyWebService {
    
        [WebService(Namespace = L"http://MyNamespace.org/")]
        [WebServiceBinding(ConformsTo = WsiProfiles::BasicProfile1_1)]
        public ref class MyWebService : public System::Web::Services::WebService
        {
        public:
    
            [WebMethod(Description = L"myMethod does something")]
            System::Void myMethod(MyClass ^myInstance)
            {
                DoSth(myInstance);
            }
        };
    }
    

    “HeaderFileGeneratedByWsdlExe.h” is of course the header file that I generated with wsdl.exe (based on the specified WSDL file), specifying ‘serverInterface’ mode. (In that header file ‘MyClass’ is defined.)
    At this point it is possible to build the web service correctly and run it. I could ‘discover’ the wsdl file of my web service, generate client side proxy classes for it and implement a client application that could communicate correctly with my web service. Unfortunately, when I made use of the original WSDL file to generate the client side proxy classes, the client application still could send a MyClass instance to the web service, but the web service was not able to serialize that MyClass instance.

    The code must be changed as follows:

    // MyWebService.cpp : main project file.
    #include "stdafx.h"
    #include "Global.asax.h"
    #include "HeaderFileGeneratedByWsdlExe.h"
    
    using namespace System;
    using namespace System::Web;
    using namespace System::Web::Services;
    
    namespace MyWebService {
    
        [WebService(Namespace = L"http://MyNamespace.org/")]
        public ref class MyWebService : public InterfaceFromHeaderFile
        {
        public:
    
            System::Void myMethod(MyClass ^myInstance)
            {
                DoSth(myInstance);
            }
        };
    }
    

    The modifications are:
    – I removed the WebServiceBinding attribute.
    – I deduced the class from the abstrµact server side proxy class in the generated header file instead of from ‘WebService’.
    – I removed the WebMethod attribute.

    After these modifications everything is working as expected.

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

Sidebar

Related Questions

I have a WSDL file and I am trying to create a web service
We have received a WSDL from our client that we use to communicate with
I have a client that's utilizing a windows service I wrote that polls a
I have successfully implemented a restful service that works with my own client. Now,
Moving forward with re-designing a web service architecture using WCF, our team has been
My client has a multi-page PDF file. They need it split by page. Does
My client has an old MS SQL 2000 database that uses varchar(50) fields to
My client has recently taken ownership of an existing web site, with final deliverable
My client has a compiled ASP.NET 2.0 application that was compiled & deployed a
I've been developing a WCF web service using .NET 3.5 with IIS7 and it

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.