Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 76472 invoked from network); 31 May 2006 05:43:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 31 May 2006 05:43:49 -0000 Received: (qmail 20779 invoked by uid 500); 31 May 2006 05:43:41 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 20761 invoked by uid 500); 31 May 2006 05:43:40 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 20750 invoked by uid 99); 31 May 2006 05:43:40 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 May 2006 22:43:40 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [210.193.55.58] (HELO mary.netroworkz.com) (210.193.55.58) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 May 2006 22:43:38 -0700 Received: from Garfield ([202.136.21.50]) by home with MailEnable ESMTP; Wed, 31 May 2006 13:43:12 +0800 From: "Jeffrey Ng" To: Subject: RE: setting 'holders' or 'sequence' Date: Wed, 31 May 2006 13:43:13 +0800 Message-ID: <003901c68475$1bc9fc20$7107a8c0@Garfield> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_003A_01C684B8.29ED3C20" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 In-Reply-To: Importance: Normal X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_NextPart_000_003A_01C684B8.29ED3C20 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Hi Anne, Thanks for the reply. But I am quite a newbie in axis programming. Can u point out to me what are the advanced samples? I look thru quite a bit but did not see anything that I can re-use. Thanks, Jeffk. -----Original Message----- From: Anne Thomas Manes [mailto:atmanes@gmail.com] Sent: Monday, May 29, 2006 9:46 PM To: axis-user@ws.apache.org Subject: Re: setting 'holders' or 'sequence' In Java you must define "symbol" as a bean, and in XML schema, you must define "symbol" as a complex type. Likewise, you can define the return value to by a bean or an array. Take a look at a few of the more advanced samples. Anne On 5/29/06, Jeffrey Ng wrote: 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, XXX 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 12 xxx 999 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. ------=_NextPart_000_003A_01C684B8.29ED3C20 Content-Type: text/html; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable

Hi Anne,

 

Thanks for the reply. But I am quite a newbie in = axis programming. Can u point out to me what are the advanced samples? I look = thru quite a bit but did not see anything that I can = re-use.

 

Thanks,

Jeffk.

 

-----Original = Message-----
From: Anne Thomas Manes [mailto:atmanes@gmail.com]
Sent: Monday, May 29, = 2006 9:46 PM
To: = axis-user@ws.apache.org
Subject: Re: setting = 'holders' or 'sequence'

 

In Java you must define "symbol" as = a bean, and in XML schema, you must define "symbol" as a complex type. Likewise, you can define the return value to by a bean or an array.

Take a look at a few of the more advanced samples.

Anne

On = 5/29/06, Jeffrey Ng <jeffrey.ng@d-strategy.net&g= t; wrote:

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.<= /font>

 

 

------=_NextPart_000_003A_01C684B8.29ED3C20--