Hi there,
I downloaded WebORB today and am trying to evaluate the product in conjunction with the Amethyst plugin for vs2010.
I have run into an issue that I hope someone can provide some assistance with.
Firstly I installed WebORB into a web site and configured it as per the installation documentation.
Everything seemed to work perfectly, from the WebORB console I am able to successfully invoke and test a small echo service that returns a string.
I used the Amethyst plugin to generate client side proxies for my Flex 4.5 application project, however any time I try and perform the same call to the service it always returns null.
I have been over the tutorials multiple times and cannot seem to work out what the issue could be.
Here is the Flex client code I am using to invoke the service:
Code:
import mx.events.*;
import flash.events.*;
import ARISFlexService.FormGuideService;
import ARISFlexService.FormGuideServiceModel;
[Bindable]
private var model:FormGuideServiceModel= new FormGuideServiceModel();
private var serviceProxy:FormGuideService= new FormGuideService(model);
[Amethyst(designer)]
private function button1_click (event:flash.events.MouseEvent):void {
serviceProxy.Echo("test");
var s = model.EchoResult;
}
The logs seem to indicate the operation should have worked:
[Thread-17] WEBORB INFO:20/10/2011 9:18 PM:Received request for http://localhost:6943/horsetorque2010fix/weborb.aspx from ::1
[Thread-17] WEBORB INFO:20/10/2011 9:18 PM:Request is in session 1u4njauergv1iaf3mzdmxabp
[Thread-17] WEBORB INSTRUMENTATION:20/10/2011 9:18 PM:Request parsing time in ms - 0
[Thread-17] WEBORB INFO:20/10/2011 9:18 PM:Dispatching request processing to V3 Dispatcher
[Thread-17] WEBORB INFO:20/10/2011 9:18 PM:loading type: ARISFlexService.FormGuideService
[Thread-17] WEBORB INSTRUMENTATION:20/10/2011 9:18 PM:clr method invocation time (in ms) - 0 method - Echo
[Thread-17] WEBORB INFO:20/10/2011 9:18 PM:Object Handler handler successfully invoked method Echo on the service ARISFlexService.FormGuideService
[Thread-17] WEBORB INFO:20/10/2011 9:18 PM:V3 Dispatcher successfully handled request processing
[Thread-17] WEBORB INFO:20/10/2011 9:18 PM:Starting response serialization
[Thread-17] WEBORB INFO:20/10/2011 9:18 PM:got headers 0
[Thread-17] WEBORB INFO:20/10/2011 9:18 PM:got bodies 1
[Thread-17] WEBORB INFO:20/10/2011 9:18 PM:AMFMessageWriter.write - message version: 3 header length: 0
[Thread-17] WEBORB INSTRUMENTATION:20/10/2011 9:18 PM:Response serialization time in ms - 0
[Thread-17] WEBORB INSTRUMENTATION:20/10/2011 9:18 PM:Total request processing time in ms - 2
Whilst I have a lot of experience with .NET related technologies I am pretty new to Flex, Amethyst and WebORB, so perhaps the Flex code I am using to invoke the service is incorrect?
Any assistance would be much appreciated. :)