I am using the Axis source codes -> samples\stock codes from Axis setup as a base to start my coding.
 
There are the following codes in the GetQuote.java program:
call.setTargetEndpointAddress( url );
call.setOperationName( new QName("urn:xmltoday-delayed-quotes", "getQuote") );
call.addParameter( "symbol", XMLType.XSD_STRING, ParameterMode.IN );
call.setReturnType( XMLType.XSD_FLOAT );
 

In this case, <symbol>XXX</symbol> will be sent to the remote web service.
 
I have 2 questions here.
1) How do i add params such that the symbols have children/sequence?
    i.e. I want to sent symbol as
  <symbol>
     <id>12</id>
     <name>xxx</name>
     <value>999</value>
  </symbol>
2) How do i set the return values to more than 1 value? i might need to get a couple of response values from the remote side rather than 1 float value. 

Are there any examples on the net that i can refer to?

 
thanks in advance.

 

best regards,

Jeffrey.

 

Reply via email to