Login  
Search All Forums
Dart Home | PowerTCP Sockets for .NET | Custom Development Reply | PowerTCP Sockets for .NET (Secure and Standard) Topics | Forums   
AuthorForum: PowerTCP Sockets for .NET (Secure and Standard)
Topic: Calling a Webservice from the Connection event
rflood2000

From: Burnsville, MN USA
Posts: 5
Member Since: 06/26/03
posted June 26, 2003 12:23 PM

I have a basic WebService (Hello world for this test) that hangs when I call it from the Connection event. 

I created the object in the function, and send it the 'HelloWorld' message, but it just hangs. This same block of code works fine in Main()

-------------
TEST.Service1 dum TEST.Service1();
string ret = dum.HelloWorld();
-------------
 
I cannot get this to work in the Connect event, but it works find in Main().

Any help would be apreciated...

K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted June 27, 2003 12:26 PM

Hi,
It may be that I do not understand what you are saying, but I just setup the same simple service, and the following code worked fine in my Sockets.Net Server app. When I connect with a client, it sends back the "Hello World" string.
-ken

Dim s As New WebService1.Service1()
  
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  Server1.Listen(777)
End Sub

Private Sub Server1_Connection(ByVal sender As Object, ByVal e As Dart.PowerTCP.SslSockets.ConnectionEventArgs) Handles Server1.Connection
  e.Tcp.Send(s.HelloWorld)
End Sub
Reply | PowerTCP Sockets for .NET (Secure and Standard) Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX