.NET WSDL R2204 Error while Generating Stubs

Posted on 2007-10-03
Last Modified: 2013-11-19
I am using WSDL.exe to generate some stubs. But I am getting the following error message:

R2204: A document-literal binding in a DESCRIPTION MUST refer, in each of its so apbind:body element(s), only to wsdl:part element(s) that have been defined using the element attribute.

  -  Part 'request' of message 'ValidateViolationRequest' from service description with targetNamespace=''.

Any ideas as to what this may be? I am assuming that I need to attach my external types to the WSDL so it can pick them up? Has anyone any documentation on how I would do this?
Question by:directxBOB
    LVL 21

    Accepted Solution

    >>I need to attach my external types to the WSDL
    If you wanted to do this, you will have to add a KnownType Tag above your webmethod.

    Author Comment

    Cheers, I grabbed WSCF and it worked wonders.
    LVL 21

    Expert Comment

    grabbed WSCF ?? I didnt understand

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
    Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
    This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
    The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now