You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by th...@apache.org on 2007/03/22 02:40:04 UTC
svn commit: r521077 -
/webservices/axis2/trunk/java/modules/samples/yahoojsonsearch/src/sample/yahooservices/JSONSearch/JSONSearchModel.java
Author: thilina
Date: Wed Mar 21 18:40:03 2007
New Revision: 521077
URL: http://svn.apache.org/viewvc?view=rev&rev=521077
Log:
removing unwanted sysouts & comments
Modified:
webservices/axis2/trunk/java/modules/samples/yahoojsonsearch/src/sample/yahooservices/JSONSearch/JSONSearchModel.java
Modified: webservices/axis2/trunk/java/modules/samples/yahoojsonsearch/src/sample/yahooservices/JSONSearch/JSONSearchModel.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/samples/yahoojsonsearch/src/sample/yahooservices/JSONSearch/JSONSearchModel.java?view=diff&rev=521077&r1=521076&r2=521077
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/yahoojsonsearch/src/sample/yahooservices/JSONSearch/JSONSearchModel.java (original)
+++ webservices/axis2/trunk/java/modules/samples/yahoojsonsearch/src/sample/yahooservices/JSONSearch/JSONSearchModel.java Wed Mar 21 18:40:03 2007
@@ -50,9 +50,7 @@
public String searchYahoo(String query, String format) {
try {
snippet = beginHTML;
-// String epr = "http://localhost:8060/WebSearchService/V1/webSearch";
String epr = "http://api.search.yahoo.com/WebSearchService/V1/webSearch";
-// File configFile = new File("modules/json/test-resources/axis2.xml");
File configFile = new File("resources/axis2.xml");
ConfigurationContext configurationContext = ConfigurationContextFactory
.createConfigurationContextFromFileSystem(null, configFile
@@ -65,7 +63,6 @@
options.setProperty(Constants.Configuration.MESSAGE_TYPE, "text/javascript");
options.setProperty(Constants.Configuration.HTTP_METHOD, Constants.Configuration.HTTP_METHOD_GET);
OMElement response = client.sendReceive(getPayloadForYahooSearchCall(query, format));
- System.out.println(response);
generateSnippet(response);
return snippet;
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org