I try to create new Batch over web service but I have problem with insufficiently clear error message:
SOAP Server Application Faulted;
nested exception is javax.xml.ws.soap.SOAPFalutException: SOAP Server Application Faulted
Here is part of code:
//open session
sessionId = service.openSession(1, 1);
//open project
projectId = service.openProject(sessionId, "MyProjectName");
Batch newBatch = new Batch();
newBatch.setBatchTypeId(0);
int newBatchId = service.addNewBatch(sessionId, projectId, newBatch, 0);
boolean openBatch = service.openBatch(sessionId,newBatchId);
when I call service.addNewBatch error is dispatched. Also I need to indicate that ownerID field in project table is NULL, but addNewBatch function require integer and I have problem only when I try to create new Batch, but if I use Batch ID of already created Batch that I create inside Project Setup Station than I have no problems.
SOAP Server Application Faulted;
nested exception is javax.xml.ws.soap.SOAPFalutException: SOAP Server Application Faulted
Here is part of code:
//open session
sessionId = service.openSession(1, 1);
//open project
projectId = service.openProject(sessionId, "MyProjectName");
Batch newBatch = new Batch();
newBatch.setBatchTypeId(0);
int newBatchId = service.addNewBatch(sessionId, projectId, newBatch, 0);
boolean openBatch = service.openBatch(sessionId,newBatchId);
when I call service.addNewBatch error is dispatched. Also I need to indicate that ownerID field in project table is NULL, but addNewBatch function require integer and I have problem only when I try to create new Batch, but if I use Batch ID of already created Batch that I create inside Project Setup Station than I have no problems.