Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 62633 invoked from network); 6 Feb 2006 06:01:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 6 Feb 2006 06:01:48 -0000 Received: (qmail 18680 invoked by uid 500); 6 Feb 2006 06:01:40 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 18652 invoked by uid 500); 6 Feb 2006 06:01:40 -0000 Mailing-List: contact user-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@geronimo.apache.org List-Id: Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 18624 invoked by uid 99); 6 Feb 2006 06:01:39 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 05 Feb 2006 22:01:39 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of ammulder@gmail.com designates 66.249.92.207 as permitted sender) Received: from [66.249.92.207] (HELO uproxy.gmail.com) (66.249.92.207) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 05 Feb 2006 22:01:39 -0800 Received: by uproxy.gmail.com with SMTP id m3so547212ugc for ; Sun, 05 Feb 2006 22:01:17 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=WhIkXp3MFzWpmRRgSIPte7lQbpbCst2dlON04RKdJUhNzLHbNm0B7KJ1ZTG3Xz7dkK+45u4Ir8dVz2zW/842tUtSZWkRoUiY51H/QXuigSIQwTcnSM0uuQNHhkaFPaADMGS2zznDNmahVxNI8xySE/La0vge2SF6dTD9RiqarSs= Received: by 10.66.221.11 with SMTP id t11mr1998245ugg; Sun, 05 Feb 2006 22:01:17 -0800 (PST) Received: by 10.66.219.2 with HTTP; Sun, 5 Feb 2006 22:01:17 -0800 (PST) Message-ID: <74e15baa0602052201x12554787qd108a9b36a0e1f7d@mail.gmail.com> Date: Mon, 6 Feb 2006 01:01:17 -0500 From: Aaron Mulder Sender: ammulder@gmail.com To: user@geronimo.apache.org Subject: Re: WEBSERVICES problem In-Reply-To: <83e2fc4d0602052050n1540f7ecqcb518aa87c0527c5@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <83e2fc4d0602052050n1540f7ecqcb518aa87c0527c5@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I was able to get a web services reference (service-ref) from a web app to connect to an EJB exposed as a web service in Geronimo 1.0 when working through some tests for my web services chapter at: http://chariotsolutions.com/geronimo/web-services.html However, I did not try a dynamic proxy client. I did notice that a servlet web service got an extra slash in the URL it generated in the WSDL, though in my case it was after the port not at the end of the name. Perhaps this is related? If you look at the WSDL file at the URL http://localhost:8080/TestEJB/Hello?wsdl (NOTE: not your original copy of the WSDL, but specifically look at the copy at that URL), does the service URL have the extra slash in it? If so, that's likely the problem, and possibly related to the slash problem I had, which I recorded at: http://issues.apache.org/jira/browse/GERONIMO-1584 In any case, to work around this, you might try adding a web-service-address element to your EJB configuration in openejb-jar.xml and see if you can provide an explicit value there that might override the auto-generated one with the extra slash.=20 (Also, of course, make sure you don't have a web-service-address there already that has a slash on the end.) Thanks, Aaron On 2/5/06, Phani Madgula wrote: > Hi > > I have deployed a WEBSERVICE implemented using an EJB, and facing a probl= em > while accessing through Dynamic Proxy client. > The client is as follows. > > > > String urlstr =3D > "http://localhost:8080/TestEJB/Hello?wsdl"; > > String argument =3D "phani"; > > System.out.println("Contacting webservice at " + urlstr); > > URL url =3D new URL(urlstr); > > QName qname =3D new QName("http://hello.phani.org/", "HelloServic= e"); > > ServiceFactory factory =3D ServiceFactory.newInstance(); > Service service =3D factory.createService(url, qname); > > Hello hello =3D (Hello) service.getPort(Hello.class); > > System.out.println("hello.hello(" + argument + ")"); > System.out.println("output:" + hello.hello(argument)); > > > > The error is > > Contacting webservice at > http://localhost:8080/TestEJB/Hello?wsdl > Exception in thread "main" javax.xml.rpc.ServiceException: Error processi= ng > WSDL document: > java.io.IOException: Server returned HTTP response code: 500 for URL: > http://localhost:8080/TestEJB/Hello/?wsdl > at org.apache.axis.client.Service.initService > (Service.java:250) > at org.apache.axis.client.Service.(Service.java:165) > at > org.apache.axis.client.ServiceFactory.createService(ServiceFactory.java:1= 98) > at HelloClient.main(HelloClient.java :27) > > If we can observe the error trace, a '/' is getting appended for the URL > "http://localhost:8080/TestEJB/Hello" and making it " > http://localhost:8080/TestEJB/Hello/?wsdl". It is not > happening for WEBSERVICE implemented using a servlet. > > > > The WSDL is as follows. > > > > xmlns:tns=3D"http://hello.phani.org/" xmlns=3D" > http://schemas.xmlsoap.org/wsdl/" > xmlns:xsd=3D"http://www.w3.org/2001/XMLSchema" xmlns:soap=3D" > http://schemas.xmlsoap.org/wsdl/soap/"> > > > > > > > > > message=3D"tns:Hello_helloResponse"/> > > transport=3D"http://schemas.xmlsoap.org/soap/http" > style=3D"rpc"/> > > > > namespace=3D"http://hello.phani.org/"/> > > namespace=3D"http://hello.phani.org/"/> > > > > http://localhost:8080/TestEJB/Hello"/> > > > Why is an extra '/' is getting added ? > > Any issues? > > Thanks > > phani > > > > > > > > > > >