cancel
Showing results for 
Search instead for 
Did you mean: 

Adaptive Web Service Model and KM web services(RepositoryFrameworkWS)

Former Member
0 Kudos

Hi all,

I would like to create webdynpro application that would access the EP KM throught web services by using of adaptive webservice model.

KM web services are available from NW04s SP12 with name RepositoryFrameworkWS.

I did a testing webdynpro application, that tries to create empty file in KM. If i use just old web service model, everything works fine, but using of adaptive webservice model doesn't work. When i run the created application and click on the button to call controller method CreateDocument the following error appears:

Exception on execution of web service with WSDL URL 'http://erpides05.kctdata.cz:50100/RepositoryFrameworkWS/Config1?style=document' with operation 'createDocument' in interface 'RepositoryFrameworkWSVi_Document'

The wdDoInit of controller in case of adaptive model is following:

model = new Test();

Request_CreateDocument requestMO = new Request_CreateDocument(model);

CreateDocument documentMO = new CreateDocument(model);

requestMO.setCreateDocument(documentMO);

wdContext.nodeRequest_CreateDocument().bind(requestMO);

and the method CreateDocument:

IWDMessageManager manager = wdComponentAPI.getMessageManager();

Request_CreateDocument requestMO = wdContext.currentRequest_CreateDocumentElement().modelObject();

try {

wdContext.currentRequest_CreateDocumentElement().modelObject().execute();

wdContext.nodeResponse1().nodeCreateDocumentResponse().nodeResponse2().invalidate();}

catch(Exception e) {

manager.reportException(e.getMessage(), false);

}

Could you help me, please?

Has somebody tried already to call KM web services by using of adaptive webservice model?

Thank you very much and Kind Regards,

Daniel

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

First, change the catch{} as follows:

catch(Exception e) {
e.printStackTrace();   // <--- add this line
manager.reportException(e.getMessage(), false);
}

Then check your logs (defaultTrace) - there'll be more information there.

My guess it that a required node (cardinality 1..1) is not being bound.

snehal_kendre
Active Contributor
0 Kudos

Hi Daniel,

Can u show a complete trace. it just says Exception on execution of web service with WSDL URL....

If you know how to point web service to other server. try to point web service to other server or change the target address mentioned in wdmodelclass i.e. erpides05.kctdata.cz:50100 by ip:50100