 |
An example Java client
WSDL2Java generated a factory, the ServiceLocator, that returns a client
object bound to the service endpoint, a 'binding.' The endpoint address is
nicely removed from us having to worry about it, in fact, there is no SOAP
code here.
public static void main(String[] args) throws Exception {
ApparelItemBiz binding =
new com.arachna.fogkids.service.ApparelItemBizServiceLocator().
getApparelItem();
List list = binding.getCatalogList();
Map map = binding.getCatalogMap();
DebugUtils.debugListContents("Dumping out getCatalogList()",
"Done with catalogList", list);
DebugUtils.debugMapContents("Dumping out getCatalogMap()",
"Done with catalogMap", map);
}
|