Buonasera,
provando ad eseguire il ws GetCardHistory, passando classname e id dell'oggetto, ottengo un'eccezione Axis2 (org.apache.axis2.AxisFault: Fault occurred while processing).
Il codice utilizzato è:
--START block code--
ConfigurationContext configurationContext = ConfigurationContextFactory.createConfigurationContextFromFileSystem(null, null);
$Proxy119ServiceStub stub = new $Proxy119ServiceStub(configurationContext);
stub._getServiceClient().engageModule("rampart");
StAXOMBuilder builder = new StAXOMBuilder(Configuration.getApplicationDir() + System.getProperty("apache.rampart.conf.file"));
Options options = stub._getServiceClient().getOptions();
options.setUserName(System.getProperty("cmdbuild.ws.user"));
options.setPassword(System.getProperty("cmdbuild.ws.password"));
options.setProperty(RampartMessageData.KEY_RAMPART_POLICY, PolicyEngine.getPolicy(builder.getDocumentElement()));
options.setProperty(org.apache.axis2.Constants.Configuration.DISABLE_SOAP_ACTION, true);
$Proxy119ServiceStub stub = createStubForCMDBuildCall();
GetCardHistory getCardHistory = new GetCardHistory();
getCardHistory.setClassName("ProvaME");
getCardHistory.setCardId(45);
GetCardHistoryE getCardHistoryE = new GetCardHistoryE();
getCardHistoryE.setGetCardHistory(getCardHistory);
GetCardHistoryResponseE getCardHistoryResponseE = stub.getCardHistory(getCardHistoryE);
--END block code--
Avete qualche idea?
Grazie.
Cordiali saluti e buona serata