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

Wrapped result of method invocation Options · View
Adraen
Posted: Monday, May 14, 2012 6:05:45 PM
Rank: Newbie Coder
Groups: Member

Joined: 5/14/2012
Posts: 3
Points: -188
Hello everyone,

So I just wrote this post once but it seems that when I posted it nothing happened ... Let's give it another shot (and again ... hopefully i'm not spamming the forum).

I have started working on a server for an existing Flex application (over RTMPS) couple of days ago and i'm stumbling on a problem that is probably quite simple but my research on the forum and the API didn't resolved it.

I've created a service on the server side that should reply to the client request, the service calls works fine, however, replying to the request doesn't work as expected.

So the method look like this:
Code:

public MySessionObject login(Credentials o)
{
    return new MySessionObject();
}


I was expecting the result to be a MySessionObject, however, when i'm sniffing the traffic the result (the rtmp _result) is wrapped in an flex.messaging.messages.AcknowledgeMessage packet preventing my client side application from understanding the packet properly. I might have missed some obvious binding/mapping but I can't figure it out.

I tried to use the ReturnType attribute but from what i've read that's not the intended purpose of this attribute.

Best regards.

EDIT: okay it took my some time to notice that the message had to be validated ... just removed to first and second post i had created before, sorry about that.
Cyril
Posted: Wednesday, May 16, 2012 9:41:49 AM
Rank: Administration
Groups: Administration , Member

Joined: 9/10/2009
Posts: 320
Points: 778
Location: US
Hi,

did you try to debug your server side code? If I am correct, you will receive the AcknowledgeMessage message when your message rich the service.
Adraen
Posted: Thursday, May 17, 2012 1:56:53 AM
Rank: Newbie Coder
Groups: Member

Joined: 5/14/2012
Posts: 3
Points: -188
Hi,

Thanks for the reply, however, I might have misformulated the original question.

In my current server the AcknowledgeMessage is sent by the server to reply to the clients request. I'm not exactly sure if the AcknowledgeMessage is sent in parallel (sorry can't find a better word for this) with the response object or if the response object is wrapped inside the AcknowledgeMessage.

In both cases the client does not expect an AcknowledgeMessage just the message I'm sending back. Therefore the question is how can I remove this message (or wrapper in the second case) to just return the object returned by my service ?

Best regards.
Cyril
Posted: Thursday, May 17, 2012 10:52:53 AM
Rank: Administration
Groups: Administration , Member

Joined: 9/10/2009
Posts: 320
Points: 778
Location: US
Hi,

I believe it is something that is out of your control. It is a service message and can't be removed.
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.108 seconds.