private PortType getWebServiceInfo()
throws WrapperFault {
//get the service
//there seem to be a neater way to get the service,
// use this instead of follows
ServiceEntry sentry = getServiceEntry();
//ServiceEntry sentry = symbolTable.getServiceEntry(new QName(serviceuri, servicelocalpart));
Iterator ports = sentry.getService().getPorts().values().iterator();
//if the targetEndPointURI not specifed we continue having it null
//The WrapperInfo will set a default value for the targetEndPointURI
if (ports.hasNext()) {
Port port = (Port) ports.next();
List adresslist = port.getExtensibilityElements();
if (adresslist != null
&& adresslist.size() != 0
&& (adresslist.get(0)
instanceof com.ibm.wsdl.extensions.soap.SOAPAddressImpl))
this.targetEndpointURI =
((com.ibm.wsdl.extensions.soap.SOAPAddressImpl) adresslist.get(0))
.getLocationURI();
}
//get the binding
Iterator portmap = sentry.getService().getPorts().values().iterator();
//TODO resolve this
/*
this code support only the service with onebindings it will not care about the
second binding if exists.. if the NO binding specified it will failed
*/