Package org.systinet.uddi.client.base

Examples of org.systinet.uddi.client.base.UDDIObject


       
        // Change the jUDDI UDDI req to a Systinet one
        Class clazz = (Class)util.getInquiryQueries().get(operation.toLowerCase());
        Object obj = clazz.newInstance();
        Method fromXML = clazz.getMethod(FROM_XML, org.w3c.dom.Element.class);
        UDDIObject uddiobj = (UDDIObject)fromXML.invoke(obj, uddiReq);
       
        CallDemarcation.beginCall(user, password);
        UDDIObject object = (UDDIObject) m.invoke(inquiry, uddiobj);
        CallDemarcation.endCall();
       
          DocumentBuilder docBuilder = getDocumentBuilder();
          Document document = docBuilder.newDocument();
         
        Class responseClass = (Class) util.getInquiryReturnTypes().get(operation.toLowerCase());
        Method toXML = responseClass.getMethod(TO_XML, org.w3c.dom.Document.class);
       
        Element elem = (Element) toXML.invoke(object, document);
        document.appendChild(elem);
        setResponse(document);
      } else if (util.PUBLISH_API.equals(api)) {
        Class c = publish.getClass();
        Method m = c.getMethod(operation,
            (Class)util.getPublishQueries().get(operation.toLowerCase()));
       
        // Change the jUDDI UDDI req to a Systinet one
        Class clazz = (Class)util.getPublishQueries().get(operation.toLowerCase());
        Object obj = clazz.newInstance();
        Method fromXML = clazz.getMethod(FROM_XML, org.w3c.dom.Element.class);
        UDDIObject uddiobj = (UDDIObject)fromXML.invoke(obj, uddiReq);

        CallDemarcation.beginCall(user, password);
        UDDIObject object = (UDDIObject) m.invoke(publish, uddiobj);
        CallDemarcation.endCall();

          DocumentBuilder docBuilder = getDocumentBuilder();
          Document document = docBuilder.newDocument();
View Full Code Here


       
        // Change the jUDDI UDDI req to a Systinet one
        Class clazz = (Class)util.getInquiryQueries().get(operation.toLowerCase());
        Object obj = clazz.newInstance();
        Method fromXML = clazz.getMethod(FROM_XML, org.w3c.dom.Element.class);
        UDDIObject uddiobj = (UDDIObject)fromXML.invoke(obj, uddiReq);
       
        CallDemarcation.beginCall(user, password);
        UDDIObject object = (UDDIObject) m.invoke(inquiry, uddiobj);
        CallDemarcation.endCall();
       
          DocumentBuilder docBuilder = getDocumentBuilder();
          Document document = docBuilder.newDocument();
         
        Class responseClass = (Class) util.getInquiryReturnTypes().get(operation.toLowerCase());
        Method toXML = responseClass.getMethod(TO_XML, org.w3c.dom.Document.class);
       
        Element elem = (Element) toXML.invoke(object, document);
        document.appendChild(elem);
        setResponse(document);
      } else if (util.PUBLISH_API.equals(api)) {
        Class c = publish.getClass();
        Method m = c.getMethod(operation,
            (Class)util.getPublishQueries().get(operation.toLowerCase()));
       
        // Change the jUDDI UDDI req to a Systinet one
        Class clazz = (Class)util.getPublishQueries().get(operation.toLowerCase());
        Object obj = clazz.newInstance();
        Method fromXML = clazz.getMethod(FROM_XML, org.w3c.dom.Element.class);
        UDDIObject uddiobj = (UDDIObject)fromXML.invoke(obj, uddiReq);

        CallDemarcation.beginCall(user, password);
        UDDIObject object = (UDDIObject) m.invoke(publish, uddiobj);
        CallDemarcation.endCall();

          DocumentBuilder docBuilder = getDocumentBuilder();
          Document document = docBuilder.newDocument();
View Full Code Here

TOP

Related Classes of org.systinet.uddi.client.base.UDDIObject

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.