Do I need to do any aegis configuration on the client side? I am able to test the service from the myeclipse "web services explorer", but when I implement the client, I have "Could not invoke service.. Could not unmarshall type " Could you please give me an example how to unmarshall in the client?
Thanks, MattJax wrote: > > If you look at BookService.aegis.xml in the example (in the examples/book > directory that ships with the distribution) you can see: > > <mappings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://xfire.codehaus.org/schemas/1.0/mapping.xsd"> > <mapping> > <method name="findBook"> > <parameter index="0" mappedName="isbn"/> > <return-type mappedName="book" /> > </method> > <method name="getBooksMap"> > <return-type mappedName="BookMap" keyType="java.lang.String" > componentType="org.codehaus.xfire.demo.Book" /> > </method> > </mapping> > </mappings> > > You need to make sure your aegis file relates to the name of your service > class "BookService.aegis.xml" not "getEventsResponse.aegis.xml" as you > have. You also need to use Aegis to map the method as above, with the > <method> and <return-type> elements. > > I'm not sure exactly what you're doing but it looks like you need > something like: > > <mappings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://xfire.codehaus.org/schemas/1.0/mapping.xsd"> > <mapping> > <method name="getEvents"> > <return-type componentType="org.codehaus.xfire.demo.Book" /> > </method> > </mapping> > </mappings> > > Hope that helps. Or at least points you in the right direction. > > > > geek.shrek wrote: >> >> Hi Matt, >> >> Thanks for the info. You are absolutely correct, there's no documentation >> on this. >> >> I'm a newbie with this aegis. >> I'm trying to get a Vector<Book> from the service, but the client doesn't >> want to unmarshall the response. >> >> I have my getEventsResponse.aegis.xml look like this >> <?xml version="1.0" encoding="UTF-8"?> >> <mappings> >> <mapping name="getEventsResponse"> >> <property name="Book" componentType="org.codehaus.xfire.example.Book" >> /> >> </mapping> >> </mappings> >> >> Is there anything that I missed? >> >> Do I need to put any configuration in the applicationContext.xml to >> unmarshall? >> >> >> Cheers, >> > > -- View this message in context: http://www.nabble.com/Unmarshalling-with-Aegis-tf3945884.html#a11550157 Sent from the XFire - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email
