• Post Reply Bookmark Topic Watch Topic
  • New Topic

How do I write bind() method  RSS feed

 
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!