Forum Discussion

WilliamX's avatar
WilliamX
Occasional Contributor
17 years ago

soapUI with Adobe Flex

The concept of this tool is awesome!!!

The only thing I am disapointed is that the conection between soapUI ( MockServices ) and a Flex Client ( WebService Component ) doesnt work... 

It seems every is ok, the port is open, flex load the wsdl, but the first try to call a function ( operation ) it faults with a exception saying that there is a problem with the endpoint.

I wonder if this can be solved in the future releases of soapUI, I would be the first client to buy a licence for it!! 

And if you have any solution for this problem I would be very thankfull!!!!

Roberto

35 Replies

  • Hi,

    here is one update : to registerAlias you only need these two lines in script

    import flex.messaging.io.amf.client.AMFConnection;

    AMFConnection.registerAlias( "mypackage.model.serialize.Numericint", "mypackage.model.serialize.Numericint" );



    and you don't need to run script separately  because it will be triggered automatically when running test step

    regards
    nebojsa
    eviware.com
  • NHU's avatar
    NHU
    Occasional Contributor
    Still the same result.

    My Java and actionscript classes have the same names and are in the same packages.

    I noticed the tag at the beginning of the response.

    The Envelope class doesn't have a superclass, but the Numericint one does, and this superclass is an abstract class.

    I tried to register this class also but it didn't change anything.
    In the flex client I have a concrete (obviously) class matching this abstract class, and having the same name.

    Regards,
    Nicolas.
  • I had same connection issue between SoapUI mock service and Flex.

    Thanks you Ole.
    I installed SoapUI 3.5 and I have changed settings for communication between those and working fine.
    SoapUI is great tool and I have tested AMF Test, it’s great and thanks for this tool.

    Roberto,
    Please follow this settings, it will work.
    1. Open the MockService Options dialog window and change the host into your box IP address instead of machine name.
            Old Host: mehjk0006789
          New Host: 10.3.179.80 (Set your IP address).

    2. Create directory and point that directory in Docroot option
    3. Click Ok.
    4. Open Flex Application and edit web service tag like the following format.

    wsdl="http://10.3.101.80:8088/mockService_v1_0_SOAP11Binding?WSDL"
                            result="CallSuccess(event);" fault="CallFault(event);">

    resultFormat="object"  fault="CallFault(event);">


    5. Run Flex app, it will call the Mock Service and successfully returns your mocked response.
    6. Enjoy 

    Thanks
    Ragu Samuel
  • WilliamX's avatar
    WilliamX
    Occasional Contributor
    Hey Ragu!, thanks a lot, I will try this right away.
    Regards from Germany

    roberto
  • WilliamX's avatar
    WilliamX
    Occasional Contributor
    Wow!, you were right!
    This brings obviously new ideas to improve some workflows!, thankx Ragu.

    Best Regards!