+ if (!srv_set.contains(srv))
+ {
+ continue;
+ }
+ JABAService service = null;
+ try
+ {
+ service = Jws2Client.connect(jwsservers, srv);
+ } catch (Exception e)
+ {
+ System.err.println("Jws2 Discoverer: Problem on "
+ + jwsservers + " with service " + srv + ":\n"
+ + e.getMessage());
+ if (!(e instanceof javax.xml.ws.WebServiceException))
+ {
+ e.printStackTrace();
+ }
+ // For moment, report service as a problem.
+ jws2Discoverer.addInvalidServiceUrl(jwsservers);
+ }
+ ;
+ if (service != null)
+ {
+ noservices = false;
+ Jws2Instance svc = null;
+ if (registry != null)
+ {
+
+ String description = registry.getServiceDescription(srv);
+
+ svc = Jws2InstanceFactory.newJws2Instance(jwsservers, srv.toString(),
+ cat.name, description, service);
+ }
+ if (svc == null)
+ {
+ svc = Jws2InstanceFactory.newJws2Instance(jwsservers, srv.toString(),
+ cat.name, "JABAWS 1 Alignment Service", service);
+ }
+ jws2Discoverer.addService(jwsservers, svc);
+ }
+