Page 1 of 1

CmapWebService

Posted: Mon Jun 14, 2010 12:56 pm
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.

Re: CmapWebService

Posted: Thu Jun 24, 2010 11:10 am
by crpolido
Hello All,

Problem Solved. Tks. ;)

Re: CmapWebService

Posted: Sat Jul 17, 2010 10:44 am
by cmapadmin
@ crpolido:

How did you solve it?

CmapSupport