private static EndpointInfo findEndpoint(ServiceInfo si, QName name) {
   for (EndpointInfo ei : si.getEndpoints()) {
     if (name.equals(ei.getName())) {
       return ei;
     }
   }
   return null;
 }
Exemplo n.º 2
0
  public void walk() {
    begin(serviceInfo);
    begin(serviceInfo.getInterface());

    for (OperationInfo o : serviceInfo.getInterface().getOperations()) {
      begin(o);

      visitOperation(o);

      end(o);
    }

    end(serviceInfo.getInterface());
    for (EndpointInfo endpointInfo : serviceInfo.getEndpoints()) {
      begin(endpointInfo);
      end(endpointInfo);
    }
    for (BindingInfo bindingInfo : serviceInfo.getBindings()) {
      begin(bindingInfo);
      end(bindingInfo);
    }
    end(serviceInfo);
  }