Skip to Content.
Sympa Menu

perfsonar-dev - perfsonar: r2343 - trunk/perfsonar/src/org/perfsonar/client/axis

Subject: perfsonar development work

List archive

perfsonar: r2343 - trunk/perfsonar/src/org/perfsonar/client/axis


Chronological Thread 
  • From:
  • To:
  • Subject: perfsonar: r2343 - trunk/perfsonar/src/org/perfsonar/client/axis
  • Date: Mon, 23 Apr 2007 09:43:16 -0400

Author: mac
Date: 2007-04-23 09:43:15 -0400 (Mon, 23 Apr 2007)
New Revision: 2343

Modified:
trunk/perfsonar/src/org/perfsonar/client/axis/AxisClient.java
Log:
New method with Message argument and result

Modified: trunk/perfsonar/src/org/perfsonar/client/axis/AxisClient.java
===================================================================
--- trunk/perfsonar/src/org/perfsonar/client/axis/AxisClient.java
2007-04-23 13:41:34 UTC (rev 2342)
+++ trunk/perfsonar/src/org/perfsonar/client/axis/AxisClient.java
2007-04-23 13:43:15 UTC (rev 2343)
@@ -4,10 +4,17 @@
import java.util.Vector;

import javax.xml.namespace.QName;
+import javax.xml.parsers.DocumentBuilder;
+import javax.xml.parsers.DocumentBuilderFactory;
+import javax.xml.parsers.FactoryConfigurationError;
+import javax.xml.parsers.ParserConfigurationException;

import org.apache.axis.client.Call;
import org.apache.axis.client.Service;
import org.apache.axis.message.SOAPBodyElement;
+import org.ggf.ns.nmwg.base.v2_0.Message;
+import org.perfsonar.commons.util.XMLUtils;
+import org.perfsonar.service.commons.exceptions.SystemException;
import org.w3c.dom.Document;

/**
@@ -70,5 +77,31 @@
// }

}
+
+
+ public Message sendRequest(String endPoint, Message message, String
parserFile) throws Exception {

-}
+ // create document
+ DocumentBuilder builder = DocumentBuilderFactory.
+ newInstance().newDocumentBuilder();
+
+ Document requestDocument = builder.newDocument();
+ requestDocument = message.getDOM(requestDocument);
+
+ //send request Document to url
+ AxisClient client = new AxisClient();
+
+ Document responseDocument =
+ client.sendRequest(endPoint, requestDocument);
+
+ //return response as Message
+ Message msg = XMLUtils.convertToMessage(
+ responseDocument,
+ parserFile);
+
+ return msg;
+
+ } //sendRequest
+
+
+} //AxisClient



  • perfsonar: r2343 - trunk/perfsonar/src/org/perfsonar/client/axis, svnlog, 04/23/2007

Archive powered by MHonArc 2.6.16.

Top of Page