Hello,
I am making a prototype system with a Pocket PC that must connect to a
Server Application.
Unfortunately, the server cannot be a Web Server, but a simple Windows Forms
Application.
Here is my question:
The only way to easily communicate for a Pocket PC is the Web Service.
Is it possible to host a web service in a Windows Forms Application ?
I have try to register a Remoting Object With HTTP Channel but It seems not
to work.
Here is the code I have try :
public static void StartRemoting() {
ChannelServices.RegisterChannel(new HttpServerChannel(4801),false);
RemotingConfiguration.RegisterWellKnownServiceType (
typeof(MyService),
"MyService",
WellKnownObjectMode.SingleCall );
}
When I try to register the web service by using the URL:
http://theserver.domain:4801/MyService?WSDL
This URL return a well formated XML SOAP Contract but it declare no method
and cannot be consumed.
Thank you for your help.