CmapWebService

Having problems with IHMC CmapServer? Think you have found a bug? Let us know!
Forum rules
Before you post a problem or bug, please be sure you have included the version number of IHMC CmapServer, the operating system and version, the amount of RAM, and any other information that allows us to be able to replicate the problem you are having. (i.e. what were you doing when the problem occur? were you running another program (application) by the time you have the problem?)
Post Reply
crpolido
Posts: 2
Joined: Mon Jun 14, 2010 12:41 pm

CmapWebService

Post by crpolido »

Dear All,

I'm trying to build a CmapWebService Client in java using AXIS and AXIOM. I'm far to be an expert. could you help me out with this issue?

I'm getting the following error:

"org.apache.axis2.AxisFault: us.ihmc.xml.XMLSimpleElement cannot be cast to us.ihmc.xml.namespaces.AccountList"

using the following code:

RPCServiceClient serviceClient = new RPCServiceClient(null, new URL("http://cmap.ihmc.us/xml/CmapWebService.wsdl"),null,null);


Options options = serviceClient.getOptions();

EndpointReference targetEPR = new EndpointReference("http://127.0.0.1/services/CmapWebService/");

options.setTo(targetEPR);

QName methodName = new QName("account","getRootResourceMetaList");

Object[] args = new Object[] {"user","password"};

OMElement omElement = BeanUtil.getOMElement(methodName, args, null, false, null);

OMElement response = serviceClient.sendReceive(methodName,omElement);

String result = response.getFirstElement().getText();


Thank You,

Polido.
crpolido
Posts: 2
Joined: Mon Jun 14, 2010 12:41 pm

Re: CmapWebService

Post by crpolido »

Hello All,

Problem Solved. Tks. ;)
cmapadmin
Site Admin
Posts: 797
Joined: Sat Dec 13, 2008 2:22 pm

Re: CmapWebService

Post by cmapadmin »

@ crpolido:

How did you solve it?

CmapSupport
Post Reply