Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 785
  • Last Modified:

.NET WSDL R2204 Error while Generating Stubs

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='http://www.example.org'.

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?
0
directxBOB
Asked:
directxBOB
  • 2
1 Solution
 
surajgupthaCommented:
>>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.
0
 
directxBOBAuthor Commented:
Cheers, I grabbed WSCF and it worked wonders.
0
 
surajgupthaCommented:
grabbed WSCF ?? I didnt understand
0

Featured Post

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now