Ingo Rammer Technology Consulting
^ .NET Remoting FAQ
» IngoRammer.com
» My Books
» Conferences
» Consulting & Services
» Newsletter
 
 
 
» Contact
 

HOWTO: Use a [WebMethod] from .NET Remoting?

Question

I have class implementing a [WebMethod], and I want to communicate with this class through Remoting (I have a WinForms clients). I tried to generate proxy by soapsuds.exe, but this tool failed.

What I need to do with my WebService class in order to call its WebMethods through Remoting?

Answer

SoapSuds.exe expects a RPC style WSDL/Web Service but ASP. NET Web Services are Document style per default. These different styles imply different XML message encoding.

Apply an attribute to your ASP.NET Web Service class to achieve 'compatibility': [SoapRpcService()]






© 2002, 2003 by Ingo Rammer (ingo@ingorammer.com). Information is provided as-is and is subject to heavy changes due to its pre-release character.