Wsgen created the service.xml which only has the Impl classes of the webservice classes(like SessionsImpl, MembersImpl in my example). It doesn't have any entry for ArrayOfmemberClass.
Btw, I m running the wsgen using ant. -----Original Message----- From: Tomek Sztelak [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 22, 2007 1:04 PM To: [email protected] Subject: Re: [xfire-user] XFireFault: Could not unmarshall type....help required urgently These files should be created by wsgen ( i guess :), i'm no jax expert at all). On 5/22/07, Konjengbam Singh <[EMAIL PROTECTED]> wrote: > Thanks Tomek. > > But, I m a newbie. > Do I need to create a jaxb config file? How do I create one? Can I see a > sample config file? > > Thanking you in advance.. > > Regards > Surjit > > > -----Original Message----- > From: Tomek Sztelak [mailto:[EMAIL PROTECTED] > Sent: Tuesday, May 22, 2007 12:53 PM > To: [email protected] > Subject: Re: [xfire-user] XFireFault: Could not unmarshall type....help > required urgently > > Maybe you don't have jaxb config file ( jaxb index or so ) on client > side. > > On 5/22/07, Konjengbam Singh <[EMAIL PROTECTED]> wrote: > > > > > > > > > > > > > > > > > > ________________________________ > > > > > > From: Konjengbam Singh [mailto:[EMAIL PROTECTED] > > Sent: Monday, May 21, 2007 6:13 PM > > To: [email protected] > > Subject: [xfire-user] XFireRuntimeException > > > > > > > > Any idea why I m getting the below exception... > > > > > > > > public class Test { > > > > > > > > public static void main(String[] args) { > > > > SessionsClient service = new SessionsClient(); > > > > SessionsSoap sessionsClient = > > service.getSessionsSoap("http://localhost/my-server/Sessions.asmx"); > > > > SessionInfo sessInfo = sessionsClient.createSession("admin", > > "password", ""); > > > > System.out.println("Session Id:" + sessInfo.getSessionID()); > > > > /* > > > > MemberLocator memLocator = new MemberLocator(); > > > > memLocator.setSessionID(sessInfo.getSessionID()); > > > > memLocator.setLibraryID(1); > > > > memLocator.setApplicationID(1); > > > > memLocator.setDimensionID(2); > > > > memLocator.setMemberID(-1); > > > > memLocator.setParentID(-1); > > > > */ > > > > MembersClient service1 = new MembersClient(); > > > > MembersSoap membersService = > > service1.getMembersSoap("http://localhost/my-server/Members.asmx"); > > > > // ArrayOfMember retval = membersService.enumChildMembers( > memLocator > > ); > > > > ArrayOfMemberClass retValCl = > > membersService.enumMemberClasses( sessInfo.getSessionID() > > ); > > > > > > > > sessionsClient.closeSession(sessInfo.getSessionID()); > > > > } > > > > > > > > } > > > > > > > > > > > > This is my service.xml > > > > > > > > <?xml version="1.0" encoding="UTF-8"?> > > > > <beans xmlns="http://xfire.codehaus.org/config/1.0"> > > > > <service> > > > > <serviceClass>com.hyperion.bpma.MembersImpl</serviceClass> > > > > > > > <wsdlURL>http://localhost/hyperion-bpma-server/Members.asmx?WSDL</wsdlUR > L> > > > > > > > > > > > <serviceFactory>org.codehaus.xfire.jaxb2.JaxbServiceFactory</serviceFact > ory> > > > > </service> > > > > > > > > <service> > > > > <serviceClass>com.hyperion.bpma.SessionsImpl</serviceClass> > > > > > > > <wsdlURL>http://localhost/hyperion-bpma-server/Sessions.asmx?WSDL</wsdlU > RL> > > > > > > > <serviceFactory>org.codehaus.xfire.jaxb2.JaxbServiceFactory</serviceFact > ory> > > > > </service> > > > > </beans> > > > > > > > > > > > > Exception is: > > > > > > > > Session Id:02e5041d-7b42-40bf-a7ca-9b5caa07f78a > > > > Exception in thread "main" > > org.codehaus.xfire.XFireRuntimeException: Could not invoke > > service.. Nested exception is > > org.codehaus.xfire.fault.XFireFault: Could not unmarshall > > type. > > > > org.codehaus.xfire.fault.XFireFault: Could not unmarshall > > type. > > > > at > > org.codehaus.xfire.jaxb2.JaxbType.readObject(JaxbType.java:211) > > > > at > > > org.codehaus.xfire.aegis.AegisBindingProvider.readParameter(AegisBinding > Provider.java:162) > > > > at > > > org.codehaus.xfire.service.binding.AbstractBinding.read(AbstractBinding. > java:206) > > > > at > > > org.codehaus.xfire.service.binding.WrappedBinding.readMessage(WrappedBin > ding.java:50) > > > > at > > > org.codehaus.xfire.soap.handler.SoapBodyHandler.invoke(SoapBodyHandler.j > ava:42) > > > > at > > > org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:1 > 31) > > > > at > > org.codehaus.xfire.client.Client.onReceive(Client.java:382) > > > > at > > > org.codehaus.xfire.transport.http.HttpChannel.sendViaClient(HttpChannel. > java:139) > > > > 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:1 > 31) > > > > at > > org.codehaus.xfire.client.Invocation.invoke(Invocation.java:75) > > > > 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 $Proxy20.enumMemberClasses(Unknown Source) > > > > at TestBpma.main(TestBpma.java:30) > > > > Caused by: javax.xml.bind.JAXBException: > > com.hyperion.bpma.ArrayOfMemberClass is not known to this > > context > > > > at > > > com.sun.xml.bind.v2.runtime.JAXBContextImpl.getBeanInfo(JAXBContextImpl. > java:510) > > > > at > > > com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.getBeanInfo(Un > marshallerImpl.java:502) > > > > at > > > com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(Unma > rshallerImpl.java:316) > > > > at > > org.codehaus.xfire.jaxb2.JaxbType.readObject(JaxbType.java:194) > > > > ... 16 more > > > > ________________________________ > > > > > > "This email and any files transmitted with it contain confidential, > > proprietary, privileged information of Symphony Services Corp (India) > Pvt. > > Ltd. and are intended solely for the use of the recipient/s to whom it > is > > addressed. Any unauthorized notifying, copying or distributing of this > > e-mail, directly or indirectly, and the contents therein in full or > part is > > prohibited by any entity who is not a recipient. Any email received > > inadvertently or by mistake should be deleted by the entity who is not > a > > recipient thereof. You may be pleased to notify the sender immediately > by > > email and the email should be deleted from your system". > > > > > > > > > > ________________________________ > > "This email and any files transmitted with it contain confidential, > > proprietary, privileged information of Symphony Services Corp (India) > Pvt. > > Ltd. and are intended solely for the use of the recipient/s to whom it > is > > addressed. Any unauthorized notifying, copying or distributing of this > > e-mail, directly or indirectly, and the contents therein in full or > part is > > prohibited by any entity who is not a recipient. Any email received > > inadvertently or by mistake should be deleted by the entity who is not > a > > recipient thereof. You may be pleased to notify the sender immediately > by > > email and the email should be deleted from your system". > > > > > > > > > > > > > -- > ----- > 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 > > > "This email and any files transmitted with it contain confidential, proprietary, privileged information of Symphony Services Corp (India) Pvt. Ltd. and are intended solely for the use of the recipient/s to whom it is addressed. Any unauthorized notifying, copying or distributing of this e-mail, directly or indirectly, and the contents therein in full or part is prohibited by any entity who is not a recipient. Any email received inadvertently or by mistake should be deleted by the entity who is not a recipient thereof. You may be pleased to notify the sender immediately by email and the email should be deleted from your system". > > > > > --------------------------------------------------------------------- > 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 “This email and any files transmitted with it contain confidential, proprietary, privileged information of Symphony Services Corp (India) Pvt. Ltd. and are intended solely for the use of the recipient/s to whom it is addressed. Any unauthorized notifying, copying or distributing of this e-mail, directly or indirectly, and the contents therein in full or part is prohibited by any entity who is not a recipient. Any email received inadvertently or by mistake should be deleted by the entity who is not a recipient thereof. You may be pleased to notify the sender immediately by email and the email should be deleted from your system”. --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email
