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.
CmapWebService
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?)
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?)
-
- Posts: 2
- Joined: Mon Jun 14, 2010 12:41 pm
Re: CmapWebService
Hello All,
Problem Solved. Tks.
Problem Solved. Tks.
-
- Site Admin
- Posts: 801
- Joined: Sat Dec 13, 2008 2:22 pm
Re: CmapWebService
@ crpolido:
How did you solve it?
CmapSupport
How did you solve it?
CmapSupport