You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Jfk <jf...@yahoo.com> on 2006/05/26 03:54:11 UTC

Setting xsd:sequence in code

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.
 
thanks in advance.
--
View this message in context: http://www.nabble.com/Setting+xsd%3Asequence+in+code-t1684600.html#a4569470
Sent from the Axis - User forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org