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”.

 

Reply via email to