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 gd...@apache.org on 2001/04/29 02:39:37 UTC
cvs commit: xml-axis/java/samples/stock GetQuote.java
gdaniels 01/04/28 17:39:37
Modified: java/samples/stock GetQuote.java
Log:
Use a ServiceDescription to tell the engine that the "return" parameter is a string.
Revision Changes Path
1.14 +7 -0 xml-axis/java/samples/stock/GetQuote.java
Index: GetQuote.java
===================================================================
RCS file: /home/cvs/xml-axis/java/samples/stock/GetQuote.java,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- GetQuote.java 2001/04/28 17:15:05 1.13
+++ GetQuote.java 2001/04/29 00:39:37 1.14
@@ -59,10 +59,13 @@
import java.io.*;
import java.util.*;
+import org.apache.axis.Constants;
import org.apache.axis.AxisFault ;
import org.apache.axis.client.HTTPCall ;
import org.apache.axis.utils.Debug ;
import org.apache.axis.utils.Options ;
+import org.apache.axis.utils.QName ;
+import org.apache.axis.encoding.ServiceDescription;
/**
*
@@ -87,6 +90,10 @@
String symbol = args[0] ;
HTTPCall call = new HTTPCall( opts.getURL(),
"urn:xmltoday-delayed-quotes" );
+ ServiceDescription sd = new ServiceDescription("stockQuotes", true);
+ sd.addOutputParam("return", new QName(Constants.URI_SCHEMA_XSD, "string"));
+ call.setServiceDescription(sd);
+
if ( opts.isFlagSet('t') > 0 ) call.doLocal = true ;
call.setUserID( opts.getUser() );
call.setPassword( opts.getPassword() );