How can I create a partial proxy class from large WSDL?

558 views Asked by At

I have a large WSDL file from a third party service provider.

Is there any way to cherry pick what services, contracts, endpoints I want when I use the wsdl tool command line?

Visual Studio crashesh because of the volume of services included in the wsdl.

Update Seems like this is not possible. Just need to edit the wsdl to contain only relevant contracts. Third party provided solved the issue.

1

There are 1 answers

0
Adam Scharp On

Precompile your service references into a separate class library.

  • Create a new class library project
  • Add service reference to all needed WSDLs
  • Compile project
  • Grab dll from class library project and add as a file reference to the project where you want reference the services.

Disclaimer: I know this doesn't specifically answer your question, but it should solve your root problem, which is Visual Studio running slow or crashing when you reference code generated from your WSDL. If Visual Studio is crashing at the time of the when you are adding the service reference, this may not help you. In that case, I apologize.