Hello,
I am working with a rest client in java. I got the respose in json
format from api. Instead I have to get AMF stuff as responses.
I tried the following code :
// Create the AMF connection.
AMFConnection amfConnection = new AMFConnection();
// Connect to the remote url.
amfConnection.connect("
http://localhost:8400/team/messagebroker/amf");
// Make a remoting call and retrieve the result.
try
{
Object result = amfConnection.call("remoting_AMF.echo", "Hello World!");
}
catch (ClientStatusException cse)
{
// Handle exception.
}
catch (ServerStatusException sse)
{
// Handle exception.
}
// Close the connection.
amfConnection.close();
But getting serverStatus Exception. The error emsage is s follows
ServerStatusException
data: Flex Message (flex.messaging.messages.ErrorMessage)
clientId = 59C4F997-BDBB-56E8-CBCE-00006EAD2E63
correlationId = null
destination = null
messageId = 4673C68B-48F0-BD89-630B-00006041DAB8
timestamp = 132331117400
timeToLive = 0
body = null
code = 0.0
message =
details =
rootCause = null
body = null
extendedData = null
HttpResponseInfo: HttpResponseInfo
code: 200
message: OK
I don't know what to do. Can anybody help me? Is there any tutorial for
this AMF client. I am new to this technology..
Thanks in advance
--
View this message in context: http://jersey.576304.n2.nabble.com/Working-with-AMF-stuff-instead-of-json-as-response-in-rest-client-in-Java-tp7073085p7073085.html
Sent from the Jersey mailing list archive at Nabble.com.