AMF client in Java

I am using [BlazeDS java client][1] to get info from [this page][2]. This page has a form in the middle that when you select a type, the location combo on the button gets updated. I am trying to use BlazeDS to get those values in java. I have been using [Charles web proxy][3] to debug, and this are the screenshots from [the request][4] and [the response][5]: My code so far is the following: // Create the AMF connection. AMFConnection amfConnection = new AMFConnection(); // Connect to the remote url. String url = "http://orlandoinfo.com/flex2gateway/"; try { amfConnection.connect(url); } catch (ClientStatusException cse) { System.out.println(cse); return; } // Make a remoting call and retrieve the result. try { // amfConnection.registerAlias("flex.messaging.io.ArrayCollection", "flex.messaging.io.ArrayCollection"); amfConnection.call("ColdFusion.getLocations", new Object[] {"consumer", "attractions", "ATTR"}); } catch (ClientStatusException cse) { System.out.println(cse); } catch (ServerStatusException sse) { System.out.println(sse); } // Close the connection. amfConnection.close(); When I run it I get a: ServerStatusException data: ASObject(15401342){message=Unable to find source to invoke, rootCause=null, details=null, code=Server.Processing} HttpResponseInfo: HttpResponseInfo code: 200 message: OK Can anyone spot what's wrong? Thanks for reading! [1]: http://opensource.adobe.com/wiki/display/blazeds/Java+AMF+Client [2]: http://orlandoinfo.com/attractions/ [3]: http://www.charlesproxy.com/ [4]: http://img695.imageshack.us/img695/8751/request.png [5]: http://img690.imageshack.us/img690/586/response.png
That is a client side error message, yes? Can you please post anything interesting from the server side logs?

以上就是AMF client in Java的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » JavaScript 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏