Package org.apache.ws.scout.registry

Examples of org.apache.ws.scout.registry.RegistryException


      try {
        Message msg = call.getResponseMessage();
        response = msg.getSOAPEnvelope().getFirstBody().getAsDOM();
      }
      catch (Exception ex) {
        throw new RegistryException(ex);
      }
    }
    catch (Exception ex) {
      throw new RegistryException(ex);
    }

    if (log.isDebugEnabled()) {
        log.debug("\nResponse message:\n" + XMLUtils.ElementToString(response));
    }
View Full Code Here


      try {
        Message msg = call.getResponseMessage();
        response = msg.getSOAPEnvelope().getFirstBody().getAsString();
      }
      catch (Exception ex) {
        throw new RegistryException(ex);
      }
    }
    catch (Exception ex) {
      throw new RegistryException(ex);
    }

    log.debug("\nResponse message:\n" + response);

    return response;
View Full Code Here

      Method method = c.getMethod(methodName, Element.class);
      Node node = (Node) method.invoke(requestHandler, request);
      response = (Element) node.getFirstChild();
    }
    catch (Exception ex) {
      throw new RegistryException(ex);
    }
    if (log.isDebugEnabled()) {
      log.debug("\nResponse message:\n" + XMLUtils.convertNodeToXMLString(response));
    }
    return response;
View Full Code Here

        Document document = parser.parse(request);
        Element element = document.getDocumentElement();
        response= XMLUtils.convertNodeToXMLString(send(element, endpointURI));
    } catch (Exception ex) {
      ex.printStackTrace();
      throw new RegistryException(ex);
    }
    log.debug("\nResponse message:\n" + response);
    return response;
  }
View Full Code Here

      Node node = (Node) method.invoke(requestHandler, request);
      //The result is in the first element
      response = (Element) node.getFirstChild();
    }
    catch (Exception ex) {
      throw new RegistryException(ex);
    }
    if (log.isDebugEnabled()) {
      log.debug("\nResponse message:\n" + XMLUtils.convertNodeToXMLString(response));
    }
    return response;
View Full Code Here

        Document document = parser.parse(request);
        Element element = document.getDocumentElement();
        response= XMLUtils.convertNodeToXMLString(send(element, endpointURI));
    } catch (Exception ex) {
      ex.printStackTrace();
      throw new RegistryException(ex);
    }
    log.debug("\nResponse message:\n" + response);
    return response;
  }
View Full Code Here

            SOAPBody soapBody = soapResponse.getSOAPBody();
            boolean hasFault = soapBody.hasFault();
            if (hasFault) {
                SOAPFault soapFault = soapBody.getFault();
                String faultStr = soapFault.getFaultCode() + "::" + soapFault.getFaultString();
                throw new RegistryException(faultStr);
            }
            response = getFirstChildElement(soapBody);
        } catch (Exception ex) {
            log.error("Exception::" + ex.getMessage(), ex);
            throw new TransportException(ex);
View Full Code Here

           boolean hasFault = soapBody.hasFault();
           if(hasFault)
           {
              SOAPFault soapFault = soapBody.getFault();
              String faultStr = soapFault.getFaultCode() + "::" + soapFault.getFaultString();
              throw new RegistryException(faultStr);
           }
           response = getFirstChildElement(soapBody);
        } catch (Exception ex)
        {
            log.error("Exception::",ex);
            throw new RegistryException(ex);
        }

        log.debug("Response message:" + DOMWriter.printNode(response, true));
        return response;
    }
View Full Code Here

            SOAPBody soapBody = soapResponse.getSOAPBody();
            boolean hasFault = soapBody.hasFault();
            if (hasFault) {
                SOAPFault soapFault = soapBody.getFault();
                String faultStr = soapFault.getFaultCode() + "::" + soapFault.getFaultString();
                throw new RegistryException(faultStr);
            }
            response = getFirstChildElement(soapBody);
        } catch (Exception ex) {
            log.errorf(ex, "Exception::");
            throw new RegistryException(ex);
        }

        log.debugf("Response message: %s", DOMWriter.printNode(response, true));
        return response;
    }
View Full Code Here

      try {
        Message msg = call.getResponseMessage();
        response = msg.getSOAPEnvelope().getFirstBody().getAsDOM();
      }
      catch (Exception ex) {
        throw new RegistryException(ex);
      }
    }
    catch (Exception ex) {
      throw new RegistryException(ex);
    }

    if (log.isDebugEnabled()) {
        log.debug("\nResponse message:\n" + XMLUtils.ElementToString(response));
    }
View Full Code Here

TOP

Related Classes of org.apache.ws.scout.registry.RegistryException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.