Re: Host a Web Service in a Windows Forms Application




I have a similiar Problem.

I must Host a WEB-Service in a Windows form Application.

Bute the CASSINI-Example seemed not to be the
solution for me.
In the CASSINI-Example example there is now way,
to get data from the windows-Applictaion to the
WEB-Service !!

Lets assume I need a WEB-Service:
GetOpenWindowName( ) as string

How can I get in the Web-Service the name of the open window
in the Windows forms Application ??


Thanks for any hint
Peter






DC wrote:
[B]Ok, so you want to connect an app, running on the pocket PC, to
another
app, running on a remote PC, and you want to do it via web services.
yes?

and you want to know, can you host web services in a windows forms
app?

yes.

have you seen Cassini?
http://tinyurl.com/bcj8

-Dino

--
-Dino
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.



--
peter931
------------------------------------------------------------------------
Posted via http://www.mcse.ms
------------------------------------------------------------------------
View this thread: http://www.mcse.ms/message2017593.html

.



Relevant Pages

  • Re: AxShDocVw.AxWebBrowser.Navigate and object headers
    ... around from Windows form host to web application window, ... which is exactly what a web-service ... representation of the Car when it has completed it's method. ...
    (microsoft.public.dotnet.languages.csharp)
  • Forward Credentials from ASP.NET Web-application to ASP.NET Web-Service?
    ... I have an ASP.NET web-application using Windows Based authentication ... that references a web-service to do business logic type things. ... XML-Web-service request myself using the base classes? ...
    (microsoft.public.dotnet.security)
  • WEB-Service versus Service hosted by System.Runtime.Remoting in windows-Application
    ... I have tried to host a WEB-Service in my Windows Application ... Dim channelProperties As New System.Collections.Specialized.ListDictionary ... Public Class Service1 ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • How to integrate a WEB-Service in my Windows-Applacation
    ... I am using VS2003 and VS2005 on WINDOWS XP Professional SP2. ... Application A1 on PC A should send information via WEB-Service to ... I have already studied AsyncWebService sample in VS.2003 ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: re:vb.net?
    ... The support files have ... but a poor choice for installed Windows software. ... Microsoft is trying to go toward a web services approach ... > I know programmers like a challenge, see if you can get me to part ...
    (microsoft.public.scripting.vbscript)

Quantcast