Welcome Guest Search | Active Topics | Members | Log In | Register

WeborbClient C# Subscribe Options · View
darez
Posted: Friday, January 13, 2012 10:44:14 AM
Rank: Apprentice Coder
Groups: Member

Joined: 5/25/2010
Posts: 37
Points: 111
Location: italia
Hi at all, I'm trying to LISTEN with WebOrbClient and C# with Subscription messaging.

Quote:

webOrbClient = new WeborbClient("http://localhost:6802/weborb.aspx", "SamplePollingDestination");

ResponseHandler myResponseOK = new ResponseHandler(this.serverListener);
ErrorHandler myResponseKO = new ErrorHandler(this.serverListenerFault);

Responder responder = new Responder(myResponseOK, myResponseKO);

Subscription mySub= webOrbClient.Subscribe(responder, "test001");
webOrbClient.Subscribed += new WeborbClient.SubscribedHandler(webOrbClient_Subscribed);


Quote:
public void serverListener(Object obj)
{
try
{
MessageBox.Show("message received");
}
catch (Exception e)
{
MessageBox.Show("SamplePollingDestination: " + e.Message);
}
}

public void serverListenerFault(Fault fault)
{
MessageBox.Show("SamplePollingDestination fault: " + fault.Message);
}



My Problem is that will never be called serverListener.
But the Messaging Destination work fine with WEBORB TEST DRIVE (i have 'send' a message' and i received it in WEB ORB TEST DRIVE console).
I can SEND from C#, but the C# never receive ANY MESSAGE.

What i have wrong?

D:
darez
Posted: Saturday, January 14, 2012 3:36:24 PM
Rank: Apprentice Coder
Groups: Member

Joined: 5/25/2010
Posts: 37
Points: 111
Location: italia
No one can help me?

I'm very K.O. for my work :-(

d
Sergey.Kukurudzyak
Posted: Monday, January 16, 2012 9:49:00 AM
Rank: Newbie Coder
Groups: Member

Joined: 5/10/2011
Posts: 1
Points: 3
Hi darez,

you are using Responder, but need use SubscribeResponder or SubscribeAdaptedResponder.

SubscribeResponder will deliver message with out any modification, and it will be AsyncMessage with headers and etc.
SubscribeAdaptedResponder will deliver adapted message so if some body push string you will get string.
Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

YAFVision Theme Created by Jaben Cargman (Tiny Gecko)
Powered by Yet Another Forum.net version 1.9.1.8 (NET v2.0) - 3/29/2008
Copyright © 2003-2008 Yet Another Forum.net. All rights reserved.
This page was generated in 0.107 seconds.