On Friday, August 22, 2003, at 1:16 PM, Dimuthu Leelarathne wrote:
As I understand your question I think you want to dynamically find out the
information like name, port info of the web service from wsdl. If you want
to find these information dynamically using a client you can find some very
useful code in sample/client package.


If you want to do it from the scratch using a wsdl file, you can use the
Parser( ) in wsdl2java and then parse wsdl informatino into a class called
org.apache.axis.wsdl.symbolTable.SymbolTable (The above mentioned dynamic
client also does the same) . SymbolTable has methods like
public BindingEntry getBindingEntry(QName qname)
public ServiceEntry getServiceEntry(QName qname)
I am afraid this wouldnt do me any good, since there isnt a wsdl file which
could tell me all information I need. The wsdl file is generated from a template
and discarded after deploy. I found a different solution though to obtain the
information I need using a quite convoluted type of Registrar pattern.


Thank you very much for the quick answer, though, Dimuthu.

J.L.Simon

Reply via email to