Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

c#

.net

wsdl.exe

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.

like image 910
Andre Avatar asked Nov 09 '22 06:11

Andre


1 Answers

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.

like image 58
Adam Scharp Avatar answered Dec 30 '22 03:12

Adam Scharp