Consuming MII WebService in Java WebDynpro

Posted on 16th Feb 2014 by admin

Hello,

We are facing a strange situation...

We define a transaction in MII to be consumed as WebService in Java WebDynpro. This transaction is a simple query on a DB returning 4 fields :

Shift code : SHIFT
Shift description : DESCRIPTION
Start time : START_TIME
End time : END_TIME

It works fine, we use the import adaptative web service wizzard in netweaver developper studio to use this WS...

But if we to an update on the webservice, changing a field name for example (SHIFT -> SHIFTCODE), we start to have trouble...

We got then the very helpful error message :

Exception on execution of web service with WSDL URL '/WebServices/GetShift' with operation 'Xacute' in interface '{http://www.sap.com/xMII}XacuteWSSoap'

If I display the model info using wdContext.currentRequest_XacuteElement().modelObject().associatedModelClassInfo().getModelInfo().toString()

I got the following (extract) :



As you can see, the model definition is NOT updated and we still have SHIFT as name instead of SHIFTCODE...

If someboby has an idea, it will save us our life ;o)

Thanks

Other forums