on 04-19-2008 10:41 AM
Hi All,
I Have a problem with creating the instance of a Model Node which needs an urgent solution, This is the Scenario:
I Have created a WebDynpro Project using NetWeaver CE Environment and Java EE 5.0 where i am using an Adaptive WebService Model. I have successfully created the model using the WSDL files and have also added to the Controller,
But when I try to create an Instance of the Request Node in my controller ie after writing this line:
Request_MI_Nwce007_AS_SOAPReq objReq = null;
objReq = new Request_MI_Nwce007_AS_SOAPReq();
This is the Request Structure from the WSDL - Request_MI_Nwce007_AS_SOAPReq
it gives me an Error saying The constructor Request_MI_Nwce007_AS_SOAPReq() is undefined.
Please let me know the exact problem and also the way to overcome this problem.
Its Quite URGENT!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Points Rewarded for helpful answers.
Regards,
Poojith MV
Request_MI_Nwce007_AS_SOAPReq objReq = null;
objReq = new Request_MI_Nwce007_AS_SOAPReq();
As you said there may not be an empty contructor. you can open the model class and find out the constructor parameter. It may need the Model Class instance.
obj = new Request_MI_Nwce007_AS_SOAPReq(new Model())
nikhiL
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Poojitha,
If your imported Webservice has any structure like this Request_MI_Nwce007_AS_SOAPReq_Input then instantiate the input structure.
else
Try instantiating along with the package name, for example if your package name is: com.sdn then try this:
"com.sdn.*Request_MI_Nwce007_AS_SOAPReq objReq = null;
objReq = new com.sdn.Request_MI_Nwce007_AS_SOAPReq();
Hope this solves your problem.
Thanks n Regards,
Jhansi Miryala
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
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.