Friday, May 6, 2011

javaFX as a webservice client?

I need to make calls to a webservice from a javaFX client. is there some sort of wsimport type tool that I can use to generate javaFX client stubs from a deployed WSDL.

From stackoverflow
  • You could make Java class stubs and call them from javaFX.

  • thank you for your response, i'm not familiar with javafx, i'm just trying to help a javaFX team integrate with my web service. javaFX can instantiate/call java classes?

    Yishai : Absolutely. The other way around is a little hard (have Java call javaFX code) but still doable. For the simple case of calling Java from JavaFX, start here: http://jfx.wikia.com/wiki/FAQ#How_do_I_refer_to_a_fully-qualified_java_class.3F
  • Yes,

    Suppose you have a "MyJavaClass.java"

    import somePackadge.MyJavaClass
    ...
    
    var myObject:MyJavaClass = new MyJavaClass();
    
    myObject.setSomething("this is something");
    
    println("{myObject.getSomething()}");
    
    ...
    

    Refer to "http://java.sun.com/developer/technicalArticles/scripting/javafx/javafx_and_java/" for more information

  • JavaFX Supports only RESTfull webservices out of the box. You can however use existing Java tools for generating WSDL stubs and use the generated classes from your JavaFX Script classes.

  • Working JavaFX examples for JSON, RSS, Google API, Yahoo API - http://jfxstudio.wordpress.com/2009/07/24/javafx-web-services/

0 comments:

Post a Comment