ward87 ward87 - 22 days ago 6
ASP.NET (C#) Question

Web Service without adding a reference?

I have 3 web services added to service references in a class library.(This is a sample project for an API use) I need to move these into my project but i cannot add the service references because of the security issues(By security issues i mean the service only responds to one ip address and that is the ip address of our customer's server.) Is there a way to generate a class like using "Ildasm.exe" for that particaluar web service?

Answer

You don't need to add web service reference to play with web service code: You can manually generate class to play with e.g.:

wsdl.exe /out:d:/Proxy.cs /order http://localhost:2178/Services.asmx

And then you can add this file manually to your project.