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