// 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();