Dear Chinmoy-san,

Thanks for reply.
Sorry for my poor java knowledge.
I want to know how to add the setters and getters in ReturnInfo.java.
I created java files according your wsdl file.
ReturnInfo.java was created in %AXIS_HOME%\DefaultNamespace.
Test*.java files were created in 
%AXIS_HOME%\localhost\webservices\Default\routines\Test_jws.
I tried javac Test*.java, but errors still exist saying 
"DefaultNamespace.ReturnInfo is not defined".
ReturnInfo.java is as follows.

-----<<<<<ReturnInfo.java Start>>>>>-----
public class ReturnInfo {
    String result;
    String[] returnDetail;
}
-----<<<<<ReturnInfo.java End>>>>>-----

Any help will be appreciate.
Thanks in advance.

Norio Sasagawa.

----- Original Message -----
Date: Thu, 4 Jun 2009 11:29:41 +0530
Subject: Re: I want to send and receive my own Java class object. Is it 
        possible on Axis?
From: Chinmoy Chakraborty <cch...@gmail.com>
To: n-sasag...@ka2.so-net.ne.jp

Norio,

Add the setters and getters in ReturnInfo class and follow the steps..it
should work. I tried this and it worked...find the attached wsdl.

Chinmoy

2009/6/3 Norio Sasagawa <n-sasag...@ka2.so-net.ne.jp>

> Dear Martin-san,
>
> Thank you for quick reply.
>
> Test.java is as follows.
> -----<<<<<Test.java start>>>>>-----
> 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;
>    }
> }
> -----<<<<<Test.java end>>>>>-----
>
> Thanks in advance.
>
> Norio.Sasagawa
>
>
> ----- Original Message -----
> From: Martin Gainty <mgai...@hotmail.com>
> To: <axis-dev@ws.apache.org>, <n-sasag...@ka2.so-net.ne.jp>
> Subject: RE: I want to send and receive my own Java class object. Is it
>        possible on Axis?
> Date: Wed, 3 Jun 2009 08:56:20 -0400
>
>
> can you display code for
> D:\Program Files\Apache Software\Foundation\Tomcat
> 6.0\webapps\axis\WEB-INF\jwsClasses\test.java>        {}Errors:Error
> compiling D:\Program Files\Apache Software
> > Foundation\Tomcat 6.0\webapps\axis\WEB-INF\jwsClasses
> > \Test.java:
> > Line 5, column -1:  シンボルを見つけられません。
> > Line 6, column -1:  シンボルを見つけられません。
> > Line 7, column -1:  シンボルを見つけられません。
> > Line 8, column -1:  シンボルを見つけられません。
> > Line 0, column 0:
> > エラー 4 個also
> can you verify java classes (ReturnInfo.java) with package name
> DefaultNamespace
> actually declare package DefaultNamespace; at top of source
>
> ?
> Martin Gainty
> ______________________________________________
> Verzicht und Vertraulichkeitanmerkung/Note de deni et de confidentialite
>
> Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene
> Empfaenger sein, so bitten wir hoeflich um eine
> Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist
> unzulaessig. Diese Nachricht dient lediglich dem
> Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung.
> Aufgrund der leichten Manipulierbarkeit von
> E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
> Ce message est confidentiel et peut etre privilegie. Si vous n'etes pas le
> destinataire prevu, nous te demandons avec
> bonte que pour satisfaire informez l'expediteur. N'importe quelle diffusion
> non autorisee ou la copie de ceci est
> interdite. Ce message sert a l'information seulement et n'aura pas
> n'importe quel effet legalement obligatoire. Etant
> donne que les email peuvent facilement etre sujets a la manipulation, nous
> ne pouvons accepter aucune responsabilite pour
>  le contenu fourni.
>
>
>
>
> > From: n-sasag...@ka2.so-net.ne.jp
> > Date: Wed, 3 Jun 2009 21:06:33 +0900
> > To: cch...@gmail.com; axis-dev@ws.apache.org
> > CC: n-sasag...@ka2.so-net.ne.jp
> > Subject: Re: I want to send and receive my own Java class object. Is it
>     possible on Axis?
> >
> > Dear Chinmoy-san,
> >
> > I've tried this at my office, but it's failed.
> > Reproduce process is as follows.
> > (1)make ReturnInfo.java and Test.java on %AXIS_HOME%\.
> > (2)%AXIS_HOME%\javac Test.java.
> > (3)verify that the class files are made.
> > (4)Copy the ReturnInfo.java and Test.java to %TOMCAT_HOME%\webapps\axis\.
> > (5)%TOMCAT_HOME%\webapps\axis\javac Test.java.
> > (6)verify that the class files are made.
> > (7)rename Test.java to Test.jws.
> > (8)copy the ReturnInfo.java to
> %TOMCAT_HOME%\\webapps\axis\WEB-INF\classes.
> > (9)compile it.
> > (10)verify that the class file is made.
> > (11)launch the TomCat.
> > (12)access to http://localhost:8080/axis/Test.jws?wsdl
> > (13)verify that the wsdl is displayed.
> > (14)go back to %AXIS_HOME%.
> > (15)%AXIS_HOME%\java org.apache.axis.wsdl.WSDL2Java
> http://localhost:8080/axis/Test.jws?wsdl
> > (16)verify that the java files are made into
> %AXIS_HOME%\localhost\axis\Test_jws
> > (17)compile them by javac -encoding utf-8 *.java
> > (18)compile errors are occurred, saying "DefaultNamespace.ReturnInfo" not
> defined.
> > (19)verify that the ReturnInfo.java is made on
> %AXIS_HOME%\DefaultNamespace
> > (20)compile it.
> > (21)go back to %AXIS_HOME%\localhost\axis\Test_jws
> > (22)compile them by javac -encoding utf-8 *.java
> > (23)errors are still remained.
> > That's all.
> >
> > If you have the sample code for returning the own class to client, please
> show it to me.
> >
> > Any help will be appreciate.
> > Thanks in advance.
> >
> > Norio Sasagawa
> >
> > ----- Original Message -----
> > Date: Wed, 03 Jun 2009 06:44:37 +0900
> > To: Chinmoy Chakraborty <cch...@gmail.com>, axis-dev@ws.apache.org
> > Cc: n-sasag...@ka2.so-net.ne.jp
> > Subject: Re: I want to send and receive my own Java class object. Is it
> >       possible on Axis?
> > From: Norio Sasagawa <n-sasag...@ka2.so-net.ne.jp>
> >
> > Dear Chinmoy-san,
> >
> > Thanks a lot.
> > I'll try this at my office.
> >
> > Norio Sasagawa
> >
> > ----- Original Message -----
> > Date: Tue, 2 Jun 2009 21:05:54 +0530
> > Subject: Re: I want to send and receive my own Java class object. Is it
> >       possible on Axis?
> > From: Chinmoy Chakraborty <cch...@gmail.com>
> > To: Norio Sasagawa <n-sasag...@ka2.so-net.ne.jp>
> >
> > Norio,
> >
> > From your response I realised that you are using ReturnInfo class as
> complex
> > type inside your Test.jws. I guess you need to put ReturnInfo.class
> inside
> > your classpath (//WEB-INF/classess/..). Then you should use both the
> wsdls
> > (to generate ReturnInfo wsdl, you need to try ReturnInfo.jws) in the
> client
> > to call the service. It would be better if you have different service
> method
> > other than the constructor.
> >
> > Chinmoy
> >
> > 2009/6/2 Norio Sasagawa <n-sasag...@ka2.so-net.ne.jp>
> >
> > > Dear Chinmoy-san,
> > >
> > > Thank you for quick reply.
> > >
> > > I've got a compiling errors.
> > > Reproduce process is as follows.
> > > (1)make ReturnInfo.jws.
> > > (2)put it on %TOMCAT_HOME%\webapps\axis\.
> > > (3)access to http://localhost:8080/axis/ReturnInfo.jws?wsdl
> > > (4)verify ReturnInfo.class is made on
> > > %TOMCAT_HOME%\webapps\axis\WEB-INF\jwsClasses.
> > > (5)make Test.jws.
> > > (6)put it on %TOMECAT_HOME%\webapps\axix\.
> > > (7)access to http://localhost:8080/axis/Test.jws?wsdl
> > > (8)compiling errors occurs.
> > >
> > > Any help will be appreciate.
> > > Thanks in advance.
> > >
> > > Norio Sasagawa
> > >
> > > Errors is as follows.
> > > -----<<<Errors>>>-----
> > > AXISエラー / [en]-(AXIS error)
> > > 申し訳ありません, 何らかの誤りがあるようです... 詳細はこちら: / [en]-(Sorry, something seems to
> have
> > > gone wrong... here
> > > are the details:)
> > >
> > > Fault - コンパイル中のエラー:  D:\Program Files\Apache Software Foundation\Tomcat
> > > 6.0\webapps\axis\WEB-INF\jwsClasses
> > > \Test.java / [en]-(Error while compiling:  D:\Program Files\Apache
> Software
> > > Foundation\Tomcat 6.0\webapps\axis\WEB-INF
> > > \jwsClasses\Test.java)
> > > AxisFault
> > >  faultCode: 
> > > {http://xml.apache.org/axis/}Server.compileError<http://xml.apache.org/axis/%7DServer.compileError>
> <http://xml.apache.org/axis/%7DServer.compileError>
> > >  faultSubcode:
> > >  faultString: コンパイル中のエラー:  D:\Program Files\Apache Software
> > > Foundation\Tomcat 6.0\webapps\axis\WEB-INF
> > > \jwsClasses\Test.java / [en]-(Error while compiling:  D:\Program
> > > Files\Apache Software Foundation\Tomcat 6.0\webapps\axis
> > > \WEB-INF\jwsClasses\Test.java)
> > >  faultActor:
> > >  faultNode:
> > >  faultDetail:
> > >        {}Errors:Error compiling D:\Program Files\Apache Software
> > > Foundation\Tomcat 6.0\webapps\axis\WEB-INF\jwsClasses
> > > \Test.java:
> > > Line 5, column -1:  シンボルを見つけられません。
> > > Line 6, column -1:  シンボルを見つけられません。
> > > Line 7, column -1:  シンボルを見つけられません。
> > > Line 8, column -1:  シンボルを見つけられません。
> > > Line 0, column 0:
> > > エラー 4 個
> > >
> > > ReturnInfo.jws is as follows.
> > > -----<<<ReturnInfo.jws>>>-----
> > > public class ReturnInfo {
> > >    String result;
> > >    String[] returnDetail;
> > > }
> > >
> > > Test.jws is as follows.
> > > -----<<<Test.jws>>>-----
> > > 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;
> > >     }
> > > }
> > >
> > >
> > > ----- Original Message -----
> > > Date: Tue, 2 Jun 2009 12:20:26 +0530
> > > From: Chinmoy Chakraborty <cch...@gmail.com>
> > > To: axis-dev@ws.apache.org
> > > Subject: [Norton AntiSpam] Re: I want to send and receive my own Java
> class
> > > object. Is it  possible on Axis?
> > >
> > > I tried with tomcat 5.0 and it worked. what error you getting when you
> try
> > > to get wsdl? could you please post the error log?
> > >
> > > Chinmoy
> > >
> > > On Tue, Jun 2, 2009 at 2:27 AM, Norio Sasagawa
> > > <n-sasag...@ka2.so-net.ne.jp>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
> > > >
> > > >
> > >
> > >
> >
> >
> >
>
> _________________________________________________________________
> Lauren found her dream laptop. Find the PC that’s right for you.
> http://www.microsoft.com/windows/choosepc/?ocid=ftp_val_wl_290
>
>

  ―――――― このメールにはファイルが添付されています ――――――

Reply via email to