Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 27066 invoked from network); 4 Jun 2009 13:19:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 4 Jun 2009 13:19:41 -0000 Received: (qmail 92419 invoked by uid 500); 4 Jun 2009 13:19:49 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 92276 invoked by uid 500); 4 Jun 2009 13:19:49 -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 92258 invoked by uid 99); 4 Jun 2009 13:19:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Jun 2009 13:19:49 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of n-sasagawa@ka2.so-net.ne.jp designates 202.238.83.193 as permitted sender) Received: from [202.238.83.193] (HELO omx12.ms.so-net.ne.jp) (202.238.83.193) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Jun 2009 13:19:39 +0000 Received: from FM-B05870457267.ka2.so-net.ne.jp (pa206ec.tkyoea09.ap.so-net.ne.jp [115.162.6.236]) by omx12.ms.so-net.ne.jp with SMTP id n54DIsTf026465; Thu, 4 Jun 2009 22:19:13 +0900 (JST) Message-Id: <200906041316.AA00077@FM-B05870457267.ka2.so-net.ne.jp> From: Norio Sasagawa Date: Thu, 04 Jun 2009 22:16:35 +0900 To: Kamal Chandana Mettananda , axis-user@ws.apache.org Cc: axis-dev@ws.apache.org, n-sasagawa@ka2.so-net.ne.jp Subject: Re: I want to send and receive my own Java class object. Is it possible on Axis? In-Reply-To: <4f13edc70906032301o74deb437m8cf6ec3f4b762a5c@mail.gmail.com> References: <4f13edc70906032301o74deb437m8cf6ec3f4b762a5c@mail.gmail.com> MIME-Version: 1.0 X-Mailer: AL-Mail32 Version 1.13 Content-Type: text/plain; charset=us-ascii X-Virus-Checked: Checked by ClamAV on apache.org Dear Kamal-san, Thanks for reply. I want to know how to create the WSDL file. If you have any sample code, please send it to me. -----<<<<>>>>----- public class ReturnInfo { String result; String[] returnDetail; } -----<<<<>>>>----- -----<<<<>>>>----- public class Test { public ReturnInfo Test(ReturnInfo returnInfo){ ReturnInfo retReturnInfo = new ReturnInfo(); retReturnInfo.result = new String("success"); retReturnInfo.returnDetail = new String[2]; retReturnInfo.returnDetail[0] = new String("detail-1"); retReturnInfo.returnDetail[1] = new String("detail-2"); return retReturnInfo; } } -----<<<<>>>>----- Thanks in advance. Norio Sasagawa. ----- Original Message ----- Date: Thu, 4 Jun 2009 11:31:46 +0530 From: Kamal Chandana Mettananda To: axis-user@ws.apache.org Cc: axis-dev@ws.apache.org, n-sasagawa@ka2.so-net.ne.jp Subject: [Norton AntiSpam] Re: I want to send and receive my own Java class object. Is it possible on Axis? Hi, Yes, you can send and receive your own class instances. However you need to generate the stubs for those classes. For example; for your myReturnInfo class, the client side also needs to have the stub. However while trying this with JWS way, I also received an error message saying NoClassDef found. So I would suggest you to create the WSDL and stubs using WSDL2Java and Java2WSDL tools and deploy using the generated deploy.wsdd file. HTH, Kamal --------------------------------------- Kamal Mettananda http://lkamal.blogspot.com On Tue, Jun 2, 2009 at 2:27 AM, Norio Sasagawa wrote: > Dear All, > > I'm using Tomcat 6.0 and Axis 1.4. > Is it possible to send and receive my own Java class object? > I tried to make a wsdl file by "http://localhost:8080/axis/Test.jws?wsdl", > but it failed. > What's wrong? > > My own Java class is below. > > public class myReturnInfo { > String result; > String[] resultDetail; > } > > My client code is below. > > myReturnInfo ret = (myReturnInfo) call.invoke( new Object [] { sTring, > localeString }); > > Any help would be appreciated. > Thanks in advance. > > Norio Sasagawa > >