Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 84230 invoked from network); 17 Nov 2004 11:02:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 17 Nov 2004 11:02:13 -0000 Received: (qmail 61982 invoked by uid 500); 17 Nov 2004 11:02:00 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 61970 invoked by uid 500); 17 Nov 2004 11:02:00 -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: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 61960 invoked by uid 99); 17 Nov 2004 11:02:00 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [193.49.148.13] (HELO harley.eseo.fr) (193.49.148.13) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 17 Nov 2004 03:01:57 -0800 Received: from firewall (firewall.eseo.fr [192.168.11.49]) by harley.eseo.fr (Postfix) with SMTP id 89B8AE5F for ; Wed, 17 Nov 2004 11:42:03 +0100 (CET) Reply-To: From: "Daniela CLARO" To: Subject: RE: Class as WS return parameter Date: Wed, 17 Nov 2004 11:42:00 +0100 Organization: ESEO MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook, Build 11.0.6353 In-Reply-To: <1738a85804111702146353b1bb@mail.gmail.com> Thread-Index: AcTMjlZjx4r0nzs0SI6Xf/JxafoY2gAAsU/Q X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Message-Id: <20041117104203.89B8AE5F@harley.eseo.fr> X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Thank you Salvador,=20 But there are somethings that I continue not understanding...I am a littl= e lost. I've read the user manual, however thanks again. The error message that I receive right now says that did not find my serv= ice Flight. I've created a java class Flight and this use ReturnFlight class = as a result.=20 I put this two *.class files into WEB-INF/classes. I created a context fo= r my application called http://localhost:8080/travelws/ So, I've tried to reference to my service like http://localhost:8080/travelws/Flight but it doesn't work. Where I actually put my Flight.class. At the first time I h= ave transformed into Flight.jws, but I read that as I using a class return or= a bean to return, I can not use Flight.jws. Moreover, what I put in my endpoint in my Client application?=20 String endpoint =3D "http://localhost:8088/travelws/Flight"; Thank you so much, but actually I am very lost!!!! Daniela -----Message d'origine----- De : Salvador Morant [mailto:salvador.morant@gmail.com]=20 Envoy=E9 : mercredi 17 novembre 2004 11:15 =C0 : axis-user@ws.apache.org; daniela.claro@eseo.fr Objet : Re: Class as WS return parameter Hi, you are using instant deployment and you need deployment descriptors. In the deployment descriptor it is possible to define the services and t= o define also the classes of the response using tag. Example: For deployment you need execute org.apache.axis.client.AdminClient. It's a simple orientation, click this link for more information and searc= h WSDD/BeanMapping : http://ws.apache.org/axis/java/user-guide.html I hope to have been for you useful! =20 On Wed, 17 Nov 2004 09:22:57 +0100, Daniela CLARO wrote: > =20 >=20 > Hi all, > =20 > I am having a problem with my web service. I've created a web service=20 > that it has a signature as below: >=20 > public ReturnFlight findFlight(String fromCity, String toCity, String=20 > dtDeparture, String dtArrival){ >=20 > Where ReturnFlight is a class that I defined earlier with two attibutes= =2E=20 >=20 > I am using AXIS 1.2 and I put this class (ReturnedFlight) into=20 > WEB-INF/classes. My web service is published on=20 > http://localhost:8080/Flight.jws. And the problem is that when I run=20 > my simple Axis example to execute my web service, at first time it=20 > gave me a message that I did not have serialized my class bean(ReturnedFlight). >=20 > I've tried to solve this problem putting the server-config.wsdd in my=20 > WEB-INF directory, but when I do that I receive an error execution on=20 > my http://localhost:8080/Flight.jws. The problem is actually occuring=20 > when I try this code in AXIS: >=20 > call.setReturnType( XMLType.XSD_ANYTYPE ); ReturnFlight ret =3D new=20 > ReturnFlight(); > ret =3D (ReturnFlight) call.invoke( new Object [] { fromCity,=20 > toCity,dtDeparture,dtArrival }); >=20 > I did not get any answer because I think it did not know how to work=20 > with my ReturnFlight class. >=20 > One more thing, if I am monitoring on the server side(Tomcat), I can=20 > saw that my service has got actually the result that I want, but it=20 > did not arrive to the client side. >=20 > What do I must do to manage a class on returning parameters?=20 >=20 > Here below, I put my server-config.wsdd, I do not know if it is=20 > correctly or not... >=20 > Help me, please!!!=20 >=20 > xmlns=3D"http://xml.apache.org/axis/wsdd/" > xmlns:java=3D"http://xml.apache..org/axis/wsdd/providers/java"> >=20 > "encoded"> >=20 > "http://localhost:8080/travelws/Flight.jws"/> > name=3D "wsdlServicePort" value=3D "Flight"/> value=3D "ReturnFlight"/> "Flight"/> >=20 > xmlns:operNS=3D "http://localhost:8080/travelws/Flight.jws"=20 > returnQName=3D "findFlightReturn" returnType=3D "rtns:ReturnFli= ght"=20 > xmlns:rtns=3D "http://DefaultNamespace"> =20 > >=20 > xmlns:ns=3D "http://DefaultNamespace"=20 > qname=3D "ns:ReturnFlight"=20 > type=3D "ReturnFlight"=20 > serializer=3D "org.apache.axis.encoding.ser.BeanSerializerFactory "=20 > deserializer=3D "org.apache.axis.encoding.ser.BeanDeserializerFactory "= =20 > encodingStyle=3D " http://schemas.xmlsoap.org/soap/encoding/" />=20 > > =20 >=20 > Increasing my explanation, when I run without server-config.wsdd I=20 > receive this error: >=20 > java.io.IOException: No serializer found for class ReturnFlight in=20 > registry > org.apache.axis.encoding.DefaultSOAPEncodingTypeMappingImpl@15780d9=20 > org.apache.axis.AxisFault.makeFault(AxisFault.java:137)=20 > org.apache.axis.SOAPPart.writeTo(SOAPPart.java:306)=20 > org.apache.axis.SOAPPart.getAsString(SOAPPart.java:524)=20 > org.apache.axis.SOAPPart.getAsBytes(SOAPPart.java:422)=20 > org.apache.axis.Message.getContentType(Message.java:483) > =20 > org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:682)= =20 > javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > =20 > org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.ja= va: > 339) > =20 > =20 >=20 > Thank you so much, > Daniela