1

Is it possible to add a service reference without utilizing the app.config to supply the bindings? In our application we have always just a new wsdl by using the .Net 2.0 Web Reference. Which requires no app.config.

Since the project is a DLL, it builds nicely without any worries of making sure the application running it, will supply the correct bindings through its app.config.

I hope that makes sense, from what I've seen/tried. There's no way to add a service reference without an app.config file.

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
cgatian
  • 22,047
  • 9
  • 56
  • 76
  • Yes, it's possible. See the answer of this question: http://stackoverflow.com/questions/3703844/consume-a-soap-web-service-without-relying-on-the-app-config# – Alexandre Junges Apr 01 '14 at 18:19

1 Answers1

1

You can use the WSDL tool to create a class file which you can use to make requests. See http://msdn.microsoft.com/en-us/library/7h3ystb6.aspx

I'm not sure if they still ship the tool with VS2010, but you should be able to find it quite easily.

aaroncatlin
  • 3,203
  • 1
  • 16
  • 27