Skip to Content
avatar image
Former Member

Cannot execute modelObject in Webdynpro for java

Hi Experts,

I Have created a model type (Adaptive webserivce Model) which is the WSDL file of the PI interface. The model import was successful and I can find the classes inside the model object.

I have mapped the same From MODEL to COMP CONTROLLER and from COMP CONTROLLER to VIEW. The problem is when am trying to execute the model, am not getting the method execute(). Also the initialization of the model class throws error saying "The constructor is undefined". Can anyone help me in this? How can I resolve this issue?

Thanks,

Mahendran B.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Best Answer
    Mar 07, 2012 at 10:08 AM

    Dear Mahendran,

    Can you please paste the code for model execution here:

    You need to first create the object for model name (for (Adaptive webserivce Model) ) created.

    <Model Name> XYZ = new <Model Name>();

    Then create object of web service node with model object.

    Request_<Webservice Context node> ABC = new Request_<Webservice Context node>(XYZ );
    ---  --- ---
    ---  --- ---
    ---  --- ---
    wdContext.nodeRequest_<Webservice Context node>().bind(ABC);		
    wdContext.nodeRequest_<Webservice Context node>.currentnodeRequest_<Webservice Context node>Element().modelObject().execute();	
    

    Hope it will helps

    Best Regards

    Arun Jaiswal

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Arun Jaiswal

      Hi,

      I am closing this thread since the model execution has been solved. And for the connectivity issue I am going to open a new thread

      Thanks,

      Mahendran B.