Tomek, Thanks. I made that typo in writing the email. But I double-check my code,the url is correct.
can you please tell me what else i may miss so that I see the problem that i am seeing? On 11/19/06, Tomek Sztelak <[EMAIL PROTECTED]> wrote:
You made a typo : String serviceURL = "http://localhost:8080/mytwebap/services/BookService"; [mytebap] should be [mytwebapp] ( i guess :). String serviceURL = "http://localhost:8080/mytwebapp/services/BookService"; On 11/20/06, ying lcs <[EMAIL PROTECTED]> wrote: > Thanks. I did try to copy from the book example and put that in my > webapp, as the first step. > I build the war file of the Book example, Copy the War content to my > webapp war content. > > > I check my BookService did run fine if I hit my browser with this: > > http://localhost:8080/mytwebapp/services/BookService?wsdl > > I see the wsdl file. > > However, when I modify the code of the bookClient with this: > > String serviceURL = "http://localhost:8080/mytwebap/services/BookService"; > > And I get this exception: > > ov 19, 2006 5:15:23 PM org.codehaus.xfire.transport.http.HttpChannel > sendViaClient > SEVERE: Server returned error code = 404 for URI : > http://localhost:8080/gnetweb/services/BookService. Check server logs > for details > Exception in thread "main" org.codehaus.xfire.XFireRuntimeException: > Could not invoke service.. Nested exception is > org.codehaus.xfire.fault.XFireFault: Server returned error code = 404 > for URI : http://localhost:8080/gnetweb/services/BookService. Check > server logs for details > org.codehaus.xfire.fault.XFireFault: Server returned error code = 404 > for URI : http://localhost:8080/gnetweb/services/BookService. Check > server logs for details > at org.codehaus.xfire.fault.XFireFault.createFault(XFireFault.java:89) > at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:79) > at org.codehaus.xfire.client.Client.invoke(Client.java:335) > at org.codehaus.xfire.client.XFireProxy.handleRequest(XFireProxy.java:77) > at org.codehaus.xfire.client.XFireProxy.invoke(XFireProxy.java:57) > at $Proxy0.getBooks(Unknown Source) > at org.codehaus.xfire.demo.BookClient.main(BookClient.java:30) > Caused by: org.codehaus.xfire.XFireRuntimeException: Server returned > error code = 404 for URI : > http://localhost:8080/gnetweb/services/BookService. Check server logs > for details > at org.codehaus.xfire.transport.http.HttpChannel.sendViaClient(HttpChannel.java:130) > at org.codehaus.xfire.transport.http.HttpChannel.send(HttpChannel.java:48) > at org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java:26) > at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131) > at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:75) > ... 5 more > > Can you please tell me how can I trouble shoot my problem? > Again, I did see the wsdl file if I do this: > "http://localhost:8080/mytwebap/services/BookService"; > > > > > On 11/19/06, Tomek Sztelak <[EMAIL PROTECTED]> wrote: > > On 11/19/06, ying lcs <[EMAIL PROTECTED]> wrote: > > > Hi, > > > I am new to web service. Can you please tell me how can I use xfire to > > > an existing webapp? > > > The examples I found are mainly teach you to build a webapp and > > > exposing some POJO java class as webservice. > > > > > > But what if I already have a webapp and yet I want to expose some POJO > > > java class there as webservice? > > > > > > > You do that in the same way as examples show. You must add entry with > > xfire servlet to your web.xml file and create service.xml file, which > > points to classes you want to expose. > > Probably you can just copy these parts from examples apps ( e.g. book > > example ) and just change names of classes you are exposing. > > > > Then copy xfire jar and everything should work fine. > > > > --------------------------------------------------------------------- > > To unsubscribe from this list please visit: > > > > http://xircles.codehaus.org/manage_email > > > > > > --------------------------------------------------------------------- > To unsubscribe from this list please visit: > > http://xircles.codehaus.org/manage_email > > -- ----- When one of our products stops working, we'll blame another vendor within 24 hours. --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email
--------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email
