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