Example: flex_remoting_call

This example shows a call to flex_remoting_call with several invocation blocks. For an example of a call in context, see the Flex session Example: Flex session.

flex_remoting_call("GenericDestination::echoLong",
    "URL=http://myServer/flex/remoting/"
    "weborb.aspx", 
    "Snapshot=t13.inf", 
    INVOCATION, 
    "Target=/3", 
    "Operation=echoLong", 
    "Destination=GenericDestination", 
    "DSEndpoint=my-amf", 
    "Source=Weborb.Examples.InvocationTests.PrimitiveTest", 
    "Argument=<arguments><integer>7777777</integer></arguments>", 
    INVOCATION, 
    "Target=/4", 
    "Operation=echoShort",
    "Destination=GenericDestination",
     "DSEndpoint=my-amf", 
    "Source=Weborb.Examples.InvocationTests.PrimitiveTest", 
    "Argument=<arguments><integer>7</integer></arguments>", 
    INVOCATION, 
    "Target=/5", 
    "Operation=echoByte", 
    "Destination=GenericDestination", 
    "DSEndpoint=my-amf", 
    "Source=Weborb.Examples.InvocationTests.PrimitiveTest", 
    "Argument=<arguments><integer>7</integer></arguments>", 
    INVOCATION, 
    "Target=/6", 
    "Operation=echoDouble", 
    "Destination=GenericDestination", 
    "DSEndpoint=my-amf", 
    "Source=Weborb.Examples.InvocationTests.PrimitiveTest", 
    "Argument=<arguments><double>7777.7777</double></arguments>", 
    INVOCATION, 
    "Target=/7", 
    "Operation=echoChar", 
    "Destination=GenericDestination", 
    "DSEndpoint=my-amf", 
    "Source=Weborb.Examples.InvocationTests.PrimitiveTest", 
    "Argument=<arguments><string>a</string></arguments>", 
    INVOCATION, 
    "Target=/8", 
    "Operation=echoBoolean", 
    "Destination=GenericDestination", 
    "DSEndpoint=my-amf", 
    "Source=Weborb.Examples.InvocationTests.PrimitiveTest", 
    "Argument=<arguments><boolean>true</boolean></arguments>", 
    INVOCATION, 
    "Target=/9", 
    "Operation=echoGuid", 
    "Destination=GenericDestination", 
    "DSEndpoint=my-amf", 
    "Source=Weborb.Examples.InvocationTests.PrimitiveTest", 
    "Argument=<arguments><string>12345678-9ABC-DEF1-1234-567890101234</"
    "string></arguments>", 
    INVOCATION, 
    "Target=/10", 
    "Operation=echoDate", 
    "Destination=GenericDestination", 
    "DSEndpoint=my-amf", 
    "Source=Weborb.Examples.InvocationTests.PrimitiveTest", 
    "Argument=<arguments><date>1075590061001</date></arguments>", 
    INVOCATION, 
    "Target=/11", 
    "Operation=echoNullableDate", 
    "Destination=GenericDestination", 
    "DSEndpoint=my-amf", 
    "Source=Weborb.Examples.InvocationTests.PrimitiveTest", 
    "Argument=<arguments><date>1075590061001</date></arguments>", 
    INVOCATION, 
    "Target=/12", 
    "Operation=echoNull", 
    "Destination=GenericDestination", 
    "DSEndpoint=my-amf", 
    "Source=Weborb.Examples.InvocationTests.PrimitiveTest", 
    "Argument=<arguments><null/></arguments>", 
    INVOCATION, 
    "Target=/13", 
    "Operation=unknownMethod", 
    "Destination=GenericDestination", 
    "DSEndpoint=my-amf", 
    "Source=Weborb.Examples.InvocationTests.PrimitiveTest", 
    "Argument=<arguments/>", 
    LAST );