[ http://jira.codehaus.org/browse/XFIRE-725?page=comments#action_78853 ] Tomasz Sztelak commented on XFIRE-725: --------------------------------------
Can you try to use the latest svn snapshot ? I'm trying to reproduce this bug with source from svn,but i can't. > Problem with generated namespaces > --------------------------------- > > Key: XFIRE-725 > URL: http://jira.codehaus.org/browse/XFIRE-725 > Project: XFire > Issue Type: Test > Affects Versions: 1.2.1 > Environment: os: linux redhat 3.3.1 - 3.14 (kde) > webserver: apache tomcat > java: jdk 1.5.06 > developing: eclipse 3.2 > Reporter: Nicolas Kukolja > Assigned To: Dan Diephouse > > > -----Ursprüngliche Nachricht----- > > Von: Tomek Sztelak [mailto:[EMAIL PROTECTED] > > Gesendet: Dienstag, 24. Oktober 2006 11:22 > > An: [email protected] > > Betreff: Re: [xfire-user] Problems developing a SOAP-Client > > > > There is some problem with generated namespaces :/ Can you create jira > > issue and attach these information ? > > > > On 10/24/06, Nicolas Kukolja <[EMAIL PROTECTED]> wrote: > > > Ok, here the generated message: > > > > > > > > ********************************************************************** > > ****** > > > POST /book/services/BookService HTTP/1.1 > > > SOAPAction: "" > > > Content-Type: text/xml; charset=UTF-8 > > > User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; XFire > > Client > > > +http://xfire.codehaus.org) > > > Host: localhost:3500 > > > Expect: 100-continue > > > Content-Length: 354 > > > > > > <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" > > > xmlns:xsd="http://www.w3.org/2001/XMLSchema" > > > > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soap:Header><ve > > rsion > > > > > xmlns="http://xfire.codehaus.org/Book">1.0</version></soap:Header><soa > > p:Body > > > ><getBooks xmlns="http://xfire.codehaus.org/BookService" > > > /></soap:Body></soap:Envelope>POST /book/services/BookService > > > HTTP/1.1 > > > SOAPAction: "" > > > Content-Type: text/xml; charset=UTF-8 > > > User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; XFire > > Client > > > +http://xfire.codehaus.org) > > > Host: localhost:3500 > > > Expect: 100-continue > > > Content-Length: 357 > > > > > > <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" > > > xmlns:xsd="http://www.w3.org/2001/XMLSchema" > > > > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soap:Header><ve > > rsion > > > > > xmlns="http://xfire.codehaus.org/Book">1.0</version></soap:Header><soa > > p:Body > > > ><getBooksMap xmlns="http://xfire.codehaus.org/BookService" > > > /></soap:Body></soap:Envelope> > > > > > ********************************************************************** > > ****** > > > > > > And the return: > > > > > > > > ********************************************************************** > > ****** > > > HTTP/1.1 100 Continue > > > > > > HTTP/1.1 200 OK > > > Server: Apache-Coyote/1.1 > > > Content-Type: text/xml;charset=UTF-8 > > > Transfer-Encoding: chunked > > > Date: Tue, 24 Oct 2006 09:01:30 GMT > > > > > > 232 > > > <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" > > > xmlns:xsd="http://www.w3.org/2001/XMLSchema" > > > > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soap:Body><getB > > ooksRe > > > sponse xmlns="http://xfire.codehaus.org/BookService"><out><ns1:Book > > > xmlns:ns1="http://demo.xfire.codehaus.org"><author > > > xmlns="http://demo.xfire.codehaus.org">Dan Diephouse</author><isbn > > > xmlns="http://demo.xfire.codehaus.org">0123456789</isbn><title > > > xmlns="http://demo.xfire.codehaus.org">Using > > > > > XFire</title></ns1:Book></out></getBooksResponse></soap:Body></soap:En > > velope > > > > > > > 0 > > > > > > HTTP/1.1 100 Continue > > > > > > HTTP/1.1 200 OK > > > Server: Apache-Coyote/1.1 > > > Content-Type: text/xml;charset=UTF-8 > > > Transfer-Encoding: chunked > > > Date: Tue, 24 Oct 2006 09:01:30 GMT > > > > > > 233 > > > <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" > > > xmlns:xsd="http://www.w3.org/2001/XMLSchema" > > > > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soap:Body><getB > > ooksMa > > > pResponse > > > > > xmlns="http://xfire.codehaus.org/BookService"><BookMap><entry><key>012 > > 345678 > > > 9</key><value><author xmlns="http://demo.xfire.codehaus.org">Dan > > > Diephouse</author><isbn > > > xmlns="http://demo.xfire.codehaus.org">0123456789</isbn><title > > > xmlns="http://demo.xfire.codehaus.org">Using > > > > > XFire</title></value></entry></BookMap></getBooksMapResponse></soap:Bo > > dy></s > > > oap:Envelope> > > > 0 > > > > > ********************************************************************** > > ****** > > > > > > The requested information is obviously included. But how do I access > > > to it in the client? > > > > > > Nick > > > > > > > > > -----Ursprüngliche Nachricht----- > > > Von: Tomek Sztelak [mailto:[EMAIL PROTECTED] > > > Gesendet: Dienstag, 24. Oktober 2006 10:25 > > > An: [email protected] > > > Betreff: Re: [xfire-user] Problems developing a SOAP-Client > > > > > > On 10/24/06, Nicolas Kukolja <[EMAIL PROTECTED]> wrote: > > > > No, I do not know of any changes concerning my apache tomcat. > > > > > > > > The handler " client.addOutHandler(new OutHeaderHandler());" Is > > > > from the example, but without that it's the same problem as before. > > > Hehe, i have memory leaks, i wrote this handler myselft :) > > > > > > > Do you have any idea, where to take a look at my server configurations? > > > > Which parameters are critical? > > > > > > Hmm, this is very strange. Can you use tcpmon ( > > > https://tcpmon.dev.java.net/ ) and post generated message and full > > > stacktrace in case of exception ? > > > > > > > > > > > -----Ursprüngliche Nachricht----- > > > > Von: Tomek Sztelak [mailto:[EMAIL PROTECTED] > > > > Gesendet: Dienstag, 24. Oktober 2006 10:15 > > > > An: [email protected] > > > > Betreff: Re: [xfire-user] Problems developing a SOAP-Client > > > > > > > > Did you do any changes in server config ? Can you try to run > > > > client without your custom handler ? > > > > > > > > On 10/24/06, Nicolas Kukolja <[EMAIL PROTECTED]> wrote: > > > > > > > > > > > > > > > > > > > > > > > > > Hello, > > > > > > > > > > > > > > > > > > > > I am trying to develop some webservices using xfire, and most > > > > > works > > very > > > > > well, but my client will not work. > > > > > > > > > > > > > > > > > > > > First, I used the bookservice example with its three methods: > > > getBooks(), > > > > > findBook(isbn), getBooksMap(). > > > > > > > > > > > > > > > > > > > > Using Soap-UI I can call all three methods well and the correct > > > > > values return, but with the client, the array that is returned > > > > > by getBooks() > > is > > > > > empty, and the method getBooksMap() ends in a > > > > > "org.codehaus.xfire.XFireRuntimeException: Could not invoke > > > > > service.. Nested exception is > > > > > org.codehaus.xfire.fault.XFireFault: Fault: > > > > > java.lang.NullPointerException". > > > > > > > > > > > > > > > > > > > > There seems to be something wrong with the more complex data > > > > > types I > > > > think. > > > > > Creating a simple method in the service returning a string works fine. > > > > > > > > > > > > > > > > > > > > Can someone help me or give me a hint of what to do? > > > > > > > > > > > > > > > > > > > > Thanks for reading, > > > > > > > > > > > > > > > > > > > > Nick > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > PS: "My" client-code (its mostly from the example...): > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > package service.test; > > > > > > > > > > > > > > > > > > > > import java.net.MalformedURLException; > > > > > > > > > > import java.util.Map; > > > > > > > > > > > > > > > > > > > > import org.codehaus.xfire.client.Client; > > > > > > > > > > import org.codehaus.xfire.client.XFireProxyFactory; > > > > > > > > > > import catega.test.OutHeaderHandler; > > > > > > > > > > import org.codehaus.xfire.service.Service; > > > > > > > > > > import > > > > > org.codehaus.xfire.service.binding.ObjectServiceFactory; > > > > > > > > > > > > > > > > > > > > /** > > > > > > > > > > * @author <a href="mailto:[EMAIL PROTECTED]">Nathan > > > > > Peles</a> > > > > > > > > > > * @author <a href="mailto:[EMAIL PROTECTED]">Tomasz > > > > > Sztelak</a> > > > > > > > > > > */ > > > > > > > > > > public class BookClient > > > > > > > > > > { > > > > > > > > > > public static void main(String args[]) > > > > > > > > > > { > > > > > > > > > > String serviceURL = > > > > > "http://localhost:8080/book/services/BookService"; > > > > > > > > > > Service serviceModel = new > > > > > > > > > > > > > > ObjectServiceFactory().create(BookService.class,null,"http://xfire.codehaus. > > > > org/BookService",null); > > > > > > > > > > > > > > > > > > > > XFireProxyFactory serviceFactory = new > > > > > XFireProxyFactory(); > > > > > > > > > > > > > > > > > > > > try > > > > > > > > > > { > > > > > > > > > > BookService service = (BookService) > > > > > serviceFactory.create(serviceModel, serviceURL); > > > > > > > > > > Client client = Client.getInstance(service); > > > > > > > > > > client.addOutHandler(new OutHeaderHandler()); > > > > > > > > > > Book[] books = service.getBooks(); > > > > > > > > > > Map booksMap = service.getBooksMap(); > > > > > > > > > > System.out.print("Received map with "+booksMap.size()+" > > > > book(s) > > > > > \n"); > > > > > > > > > > System.out.println("BOOKS:"); > > > > > > > > > > > > > > > > > > > > for (int i = 0; i < books.length; i++) > > > > > > > > > > { > > > > > > > > > > System.out.println(books[i].getTitle()); > > > > > > > > > > } > > > > > > > > > > } > > > > > > > > > > catch (MalformedURLException e) > > > > > > > > > > { > > > > > > > > > > e.printStackTrace(); > > > > > > > > > > } > > > > > > > > > > } > > > > > > > > > > } > > > > > > > > > > > > -- > > > > ----- > > > > When one of our products stops working, we'll blame another vendor > > > > within 24 hours. > > > > > > > > -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email
