Thursday, March 19, 2009

Castor - Open Source data binding framework for Java

You can use Castor java library to process WSDL files.
First you neet to download Castor library from http://www.castor.org/.

WSDLFactory wsdlFactory = WSDLFactory.newInstance();
WSDLReader wsdlReader = wsdlFactory.newWSDLReader();

Definition definition = wsdlReader.readWSDL("C:/Temp/order.wsdl");
if (definition == null)
{
System.err.println("definition element is null");
System.exit(1);
}
Map servicesMap = definition.getServices();
....
..

Search