on 11-23-2007 5:24 AM
hi,
i hv created an application using web service model.
in my custom controller i hv a method execute().
nw when im calling this method in my view , it doestnt get executed.
i hv written the following code in the doModifyView () method of my view:
wdThis.wdGetTable_Cust_CntrlController().ExecuteRequest();
and the following code in my ExecuteRequest() method:
public void ExecuteRequest( )
{
//@@begin ExecuteRequest()
try {
wdContext.currentRequest_ZMANAGE_MAKT_ZMANAGE_ZMAKTElement().modelObject().execute();
wdComponentAPI.getMessageManager().reportSuccess("Executed from controller----
");
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
//@@end
}
please help..
thank u ..
Regards,
Ankita
Hi Ankita,
wdContext.currentRequest_ZMANAGE_MAKT_ZMANAGE_ZMAKTElement().modelObject().execute();
before this line create the object of the Node.
Request_ZMANAGE_MAKT_ZMANAGE_ZMAKT objReq =
new Request_ZMANAGE_MAKT_ZMANAGE_ZMAKT();
wdContext.currentRequest_ZMANAGE_MAKT_ZMANAGE_ZMAKT().bind(objReq);
Try this Code. Hope this helps u.
Regards,
Poojith MV
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
This statement raises NullPointer Exception if object of
Request_ZMANAGE_MAKT_ZMANAGE is not created in init() method..
Print Exception message in catch block.
Create a variable for Request_ZMANAGE_MAKT_ZMANAGE and you
can execute it , Use this
Request_ZMANAGE_MAKT_ZMANAGE obj=new Request_ZMANAGE_MAKT_ZMANAGE();
wdContext.nodeRequest_ZMANAGE_MAKT_ZMANAGE().bind(obj);
Regards
LakshmiNarayana
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi
I tried executing my application with adaptive web service model. still i m nt able to fetch data..
i wrote to statements before after the call to execute() method..
in the output i see a blank table,,
the msg before the call to method and
the following exception:
Exception on execution of web service with WSDL URL 'http://172.25.8.75:8001/sap/bc/srt/rfc/sap/ZMANAGE_MAKT?sap-client=800&wsdl=1.1&sap-user=EI6DEV&sap-password=DEVELOPER' with operation 'ZMANAGE_ZMAKT' in interface 'ZMANAGE_MAKT'
plz help..
Thank..
regards,
Ankita
hi,
Try to execute this from the controller Init.
Check wdContext.currentRequest_ZMANAGE_MAKT_ZMANAGE_ZMAKTElement().
This element is created.
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.