Advertisement

04.29.2008 at 04:46PM PDT, ID: 23364010
[x]
Attachment Details

number as a parameter

Asked by perdoname_ in Java Programming Language

Hello Experts,

I need your assistance how the code should be modified as to get the number as a parameter than to be predefined in the code

If someone can elaborate i'd be grateful !

Thanks in advance !!Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
import java.util.Vector;
 
import javax.xml.namespace.QName;
 
import org.apache.axis.types.UnsignedLong;
 
public class SoapCommTestClient 
{
	public static void main(String[] args) throws Exception 
	{      
		String endpoint = "http://www.dataaccess.com/webservicesserver/numberconversion.wso";
		try {
			org.apache.axis.client.Service  service = new org.apache.axis.client.Service();
			org.apache.axis.client.Call     call    = (org.apache.axis.client.Call) service.createCall();
			call.setTargetEndpointAddress( new java.net.URL(endpoint) );	
			call.setOperationName(new QName("http://www.dataaccess.com/webservicesserver/", "NumberToWords "));
			call.addParameter("ubiNum", org.apache.axis.Constants.XSD_LONG, javax.xml.rpc.ParameterMode.IN);
			call.setReturnClass( String.class );
			System.out.println("Calling invoke");
			Object ret = call.invoke( new Object[] { new UnsignedLong(14) } );
			System.out.println("Called 'NumberToWords', got '" + ret + "'");	
			call.clearOperation();
			call.removeAllParameters();
			} 
			catch (Exception e) 
			{
				e.printStackTrace();
				System.out.println(e.toString());
			}
	}   
}
[+][-]04.29.2008 at 05:00PM PDT, ID: 21467223

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Java Programming Language
Sign Up Now!
Solution Provided By: objects
Participating Experts: 2
Solution Grade: B
 
 
[+][-]04.29.2008 at 05:06PM PDT, ID: 21467244

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.29.2008 at 05:11PM PDT, ID: 21467259

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.29.2008 at 05:12PM PDT, ID: 21467265

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.29.2008 at 05:17PM PDT, ID: 21467283

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.29.2008 at 05:19PM PDT, ID: 21467288

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.29.2008 at 09:25PM PDT, ID: 21468067

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.29.2008 at 11:54PM PDT, ID: 21468590

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628