Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How do I write bind() method

 
Apirak Panatkool
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
String url = "http://localhost:8004/glue/exchange.wsdl";
IExchange exchange = (IExchange) Registry.bind( url, IExchange.class );
float rate = exchange.getRate( "usa", "japan" );
System.out.println( "usa/japan exchange rate = " + rate );
IExchange is just interface
when I call getRate it do somting like this
publish float getRate(){
return (Float) Registry.invoke( url, "getRate", new Object[]{ "usa", "japan" } );
}
but I don't have this method before
bind() method generate this method for me... How to?
thank you
 
That which doesn't kill us makes us stronger. I think a piece of pie wouldn't kill me. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!