Problem: Webdynpro Model of a Webservice doesn't expose members of Baseclas
Hello Everyone
I am very new to WebDynpro Programming and I have a Problem. But let me explain the Situation:
I have programmed a Java Class which is called "Base" and it is abstract.
I have derived another Class from "Base" which I call "Derivat".
"Base" is thereby the Superclass of "Derivat".
"Base" has a few members which I generated public getters and setter methods for.
These functions are visible and working fine in "Derivat".
"Derivat" additionally provides a few more public Functions.
One Function in "Derivat",lets call it "GetByKey", returns an instance of the object Type "Derivat".
Now I have made an Stateful Session Bean which uses the Class "Derivat" and exposes these Functions.
I have used this EJB to generate a Webservice ...
Now the Testpages build into the WebAS shows me that the Function returns a proper instance of object type "Derivat" with all the public member functions declared and defined in "Derivat" and all the public member function declared and defined in "Base".
Now I would like to use this WebService in a WebDynpro Project. I have created the Model in WebDynpro by using a WSDL Link. The Webservice actually is being created successfully in the WebdynPro Project but however when I take a Look at the definition of the Complex Type "Derivat" it only shows me the public member function that have been defined and declared in "Derivat". All the member function of "Base" are completely missing.
Now I have made a few analysis which led me to the folling: The WSDL splits up the Definitions into 2 complex Types! Complex Type is "Derivat" and by definition extends "Base" the other Complex Type is "Base". However "Base" can not be used in the WebdynPro Project since its not exposed / generated by the proxy Class Generator of WebdynPro.
Since this problem is driving me crazy and I have tried a lot of different things, can anyone tell me what I am doing wrong ? What am I missing ?
Any help is really appreciated.
Thanks in advance
Regards
Mike
Hello Everyone
I am very new to WebDynpro Programming and I have a Problem. But let me explain the Situation:
I have programmed a Java Class which is called "Base" and it is abstract.
I have derived another Class from "Base" which I call "Derivat".
"Base" is thereby the Superclass of "Derivat".
"Base" has a few members which I generated public getters and setter methods for.
These functions are visible and working fine in "Derivat".
"Derivat" additionally provides a few more public Functions.
One Function in "Derivat",lets call it "GetByKey", returns an instance of the object Type "Derivat".
Now I have made an Stateful Session Bean which uses the Class "Derivat" and exposes these Functions.
I have used this EJB to generate a Webservice ...
Now the Testpages build into the WebAS shows me that the Function returns a proper instance of object type "Derivat" with all the public member functions declared and defined in "Derivat" and all the public member function declared and defined in "Base".
Now I would like to use this WebService in a WebDynpro Project. I have created the Model in WebDynpro by using a WSDL Link. The Webservice actually is being created successfully in the WebdynPro Project but however when I take a Look at the definition of the Complex Type "Derivat" it only shows me the public member function that have been defined and declared in "Derivat". All the member function of "Base" are completely missing.
Now I have made a few analysis which led me to the folling: The WSDL splits up the Definitions into 2 complex Types! Complex Type is "Derivat" and by definition extends "Base" the other Complex Type is "Base". However "Base" can not be used in the WebdynPro Project since its not exposed / generated by the proxy Class Generator of WebdynPro.
Since this problem is driving me crazy and I have tried a lot of different things, can anyone tell me what I am doing wrong ? What am I missing ?
Any help is really appreciated.
Thanks in advance
Regards
Mike
Similar Messages
-
Hello,
I have SAP EH1 for SAP NWCE 7.1 and NWDS with the recent upgrade pack of WD. When I run my WD application the following exception ocurr,
java.lang.NoSuchMethodError: com.sap.tc.webdynpro.model.webservice.gci.WSTypedModel.(Ljava/lang/String;Ljava/lang/String;Ljavax/xml/namespace/QName;Ljava/lang/String;Ljava/util/Map;Ljava/lang/String;Lcom/sap/tc/webdynpro/model/webservice/gci/IWSTypedModelInfo;Ljava/util/Map;Ljava/util/Map;)V
at pe.com.minsur.wd_test_esr.wdtestesr_model.Wdtestesr_Model.<init>(Wdtestesr_Model.java:240)
at pe.com.minsur.wd_test_esr.wdtestesr_app.comp.Wdtestesr_Comp.wdDoInit(Wdtestesr_Comp.java:111)
at pe.com.minsur.wd_test_esr.wdtestesr_app.comp.wdp.InternalWdtestesr_Comp.wdDoInit(InternalWdtestesr_Comp.java:445)
at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.doInit(DelegatingComponent.java:160)
at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:227)
My DoInit Method only have this code,
public void wdDoInit()
Wdtestesr_Model model = new Wdtestesr_Model();
Any ideas?
Regards
MGThe problem is that the logical destinations are not well configured.
-
Hello Team,
We have a scenario where we have a PI web service and we are importing the WSDL into our WD Java application.
While running the test scenario we are getting the below 2 exceptions in the stack trace.
20111222:Exception trace: com.sap.tc.webdynpro.model.webservice.api.WDWSModelExecuteException: Exception on execution of web service on destination 'WS_CUST_**' for operation 'GetCustomer*' in interface 'GetCustomer**'
Caused by: java.rmi.RemoteException: Cannot created typed model object. Factory for typed model class '$002fWsdlDefinitions$002fWsdlTypes$002fXsdSchema$005b1$005d$002fXsdComplexType$005b1$005d$002fXsdSequence$002fXsdElement$005b1$005d$002fXsdComplexType' has not been registered.; nested exception is:
com.sap.tc.webdynpro.model.webservice.exception.WSModelRuntimeException: Cannot created typed model object. Factory for typed model class '$002fWsdlDefinitions$002fWsdlTypes$002fXsdSchema$005b1$005d$002fXsdComplexType$005b1$005d$002fXsdSequence$002fXsdElement$005b1$005d$002fXsdComplexType' has not been registered.
Caused by: com.sap.tc.webdynpro.model.webservice.exception.WSModelRuntimeException: Cannot created typed model object. Factory for typed model class '$002fWsdlDefinitions$002fWsdlTypes$002fXsdSchema$005b1$005d$002fXsdComplexType$005b1$005d$002fXsdSequence$002fXsdElement$005b1$005d$002fXsdComplexType' has not been registered.
By running through few posts on SDN a probable solution for this was proposed as: blank the "designtimeWsdlUrl" properties of the model in NWDS and re-deploy the application
Any help on this would be great.
Regards,
ShaileshDear Shailesh,
Did you try to check the blank the "designtimeWsdlUrl" properties of the model in NWDS and re-deploy the application? please try to check and test.
Also try to import fresh in new DC and check whether it is working or not.
Best Regards
Arun Jaiswal -
Serialisation failed : ABAP webservices as webdynpro model
Hi All,
I have created a webdynpro application consisting of a ABAP webservice model . This webservice takes some input parameters which are optional and give output which we are displaying as webdynpro table.. we have successfully deployed and run it on our development server .
We have transported the EAR to Quality server after changing the target address under model> webservice> logical port corresponding to Quality webservice URL..
But at quality server it is giving "Serialisation failed" for particular input parameter. for rest of the input parameter proper output is coming .
Please tell the possible solution.
regards
PoonamThe input that you are trying to give might not be complaint with the data that you are providing .. go to http://server:port/wsnavigator and give the data there and test .If the data type and the length of the input parameter are not complaint with the data that you are providing u will get that error
-
Hi Expert,
I have created a model for doc/literal webservice. May I know, how to test the model?
Usually, I use the following url to check the webservices. http://<hostname>:50100/wsnavigator/jsps/index.jsp. Could you please tell me how to test webdynpro models?
Regards
SaraHi Sara
Do you have admin rights? Admin will have the right permissions to view RUN option....
If you are already using admin ID.. check your entire application..I mean (Dont just click on your appl'n and see .. see all of them). At leaset one of your componets will have this RUN button enabled...
Dont worry about your Jco connections.. you just try to RUN and test your appl'n ... if it failes then you can look into your jco destinations...
If you have problem in your jco destinations...go to jco maintaince.. identify your jco destination and maintain the same with proper inputs (Give the Backend user id and pwd) to test your connectivity..
Regards
Hari -
CAF WebDynpro Model: ExceptionHandling
Hello!
I access my CAF-Services through a WebDynpro-Model.
Is it possible to access the exceptions risen by the Services through the model?
Or is there another way to get the Exceptions.
And in generell:
What other ways besides a webdynpro-modell are there to use CAF-Services. Can I access them through webservices e.G.?
Thank you, I really need your help.
Best regards,
JörgHello Jorg,
Yes, you can access your CAF Services as Web Services. To do this, you just have to generate the Web Services:
- Select "Remote Enabled" in the "General" tab for the Entity or Application Service
- Right-click on the Service and select "WebService->New"
- Save, Build, and Deploy to the J2EE Engine
You should now be able to test the Web Service using the Web Service Navigator from the J2EE Engine. This can be access from the j2ee homepage.
Regards,
Austin. -
When I start the iTunes program it comes up with this.. pls help!!
"The program can't start because AVFoundationCF.dll is missing from your computer. Try reinstalling the program to fix this problem."
Even after reinstalling iTunes doesn't start!Repair your Apple Application Support.
Control Panel > Programs n Features (Win7) or Add n Remove Programs(XP) > highlight AAS, click CHANGE then REPAIR. -
New Business Method in EJB not available in Webdynpro Model
Hi,
I am using EJBs for Business Logic in my webdynpro java application. I have added a new Business Method in one of the session bean. But I am not able to see the new method in webdynpro model. I am following the below procedure -
1. Select the Session bean.
2. Add New Business Method. It automatically adds the method in Remote and Local Interface.
3. Implement thie new method.
4. Build EJB project
5. Add it to EAR
6. Build EAR Project
7. Deploy EAR Project
After following above steps, when I am trying to create a model in my webdynpro project, it does not reflect the changes (context returned by new business method).
Can any one help me on this ?
Thanks in advance,
GauravThe issue is resolved. This is the case where methods in beans returns collections. For such scenario, relations have to be created manually, it does not come automatically. For details refer the blog at below link --
/people/balaramnaidu.bankuru/blog/2006/04/23/importing-complex-javabean-model-into-webdynpro-by-creating-relationships-for-the-model-classes
Thanks everyone.
Gaurav -
Hi . My problem is that the premiere proo doesn´t installl in y Pc, becaseit says it can be install in a 64 bits program. What can I do?. is a windows xp
Hi There,
I would request you to check the system requirements, as there is a compatibility issue with the software and the OS version you are using.: System requirements | Adobe Premiere Pro
Thanks,
Atul Saini -
How to use Adaptive WebService Model with CAF WebService and Complex Type
Hi All,
I am trying to use the Adaptive Web Service Model and call a WebService generated by the CAF. The return type of the WebService is a Complex Type.. I receive an exception when trying to instantiate the Model Node.
Does anybody know how to use the Adpative Web Service Model with CAF WebServices and Complex Types as return type?
Help is appreciated..
Thanks, JohannesThanks Mukesh.
It is not possible to apply the Service Controller Template on Enterprise Java Bean Models as described in the Document. When I try to aply the template on the EJB Model, NWDS says: Only Webservice Models and RFC Models are supported...???
I did not find any information about how to return complex types in AWS.. in this document???
Is there such information available? Has anybody ever done that? There must be a way to do that.. Is is the standard approach, isn't it...? Please help me out there.. I need to get this running..
Thanks, Johannes -
RFC Destinations for Webdynpro models
Hello Everybody,
I am trying to use RFC Destinations for the Webdynpro model.
I have multiple systems with same RFCs. Based upon the inputs on the screen, I wanted to call respective RFC.
To achieve this, can I use RFC destinations in my webdynpro application?
I know, this could have been solved through XI in between.
That is not a valid path for me right now.
Have anybody used RFC Destinations in Webdynpro models?
I am getting exception: NoClassDefFound when I used DestinationService API for this.
Please help me.
Thanks in Advance,
BhavikHi Bhavik,
RightClick on the project->Goto Properties
try adding library "tcsecdestinations~interface" in the interface references of WebDynpro reference.
"tcsecdestinations~service " in the library references.
Regards, Anilkumar -
'''OS Win2000'''
using '''FireFox 5.01 - portable'''
Problem:
'''Plug-in for Windows-Mediaplayer doesn't work '''
cause: presumably - Win2000 only copes with WMP 9.0
Your FF 5.01-portable works only for WMP 12 (??)
I have no problems with WMP when I use my regular FF 3.6 on this old Win2000. - WMP - Plug-in of FF3.6 works perfectly on my Win2000
'''question:'''
What can I do to get WMP running on my Win2000 using FF5.01-portable ?''''''See the Portable Firefox support forum for help with that. <br />
http://portableapps.com/forums/support/firefox_portable -
Hi, I have a macbook air os x 10.9.5 and I have problems with the app store. It doesn't open anyway. so, how can I install it again or update. I have problems with preview too, the same, doesn't open the application
Reinstalling OS X Without Erasing the Drive
Boot to the Recovery HD: Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
Reinstalling OS X Without Erasing the Drive
Repair the Hard Drive and Permissions: Upon startup select Disk Utility from the main menu. Repair the Hard Drive and Permissions as follows.
When the recovery menu appears select Disk Utility and press the Continue button. After Disk Utility loads select the Macintosh HD entry from the the left side list. Click on the First Aid tab, then click on the Repair Disk button. If Disk Utility reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit Disk Utility and return to the main menu.
Reinstall OS X: Select Reinstall OS X and click on the Continue button.
Note: You will need an active Internet connection. I suggest using Ethernet if possible because it is three times faster than wireless.
Alternatively, see:
Reinstall OS X Without Erasing the Drive
Choose the version you have installed now:
OS X Yosemite- Reinstall OS X
OS X Mavericks- Reinstall OS X
OS X Mountain Lion- Reinstall OS X
OS X Lion- Reinstall Mac OS X
Note: You will need an active Internet connection. I suggest using Ethernet
if possible because it is three times faster than wireless. -
i have an ipod nano 5th generation. the problem with it's that it doesn't show in itunes when connected to the laptop and it switches on on its own and songs start playing the battery gets consumed too fast after full charge. what is the actual problem?
What have you tried so far in terms of troubleshooting this issue? Are you plugging the iPod into a high powered USB 2.0 port on the back of your PC? Have you tried a different USB cable?
What happens if you try to reset the device with it still connected to the PC?
How to reset iPod
Has this iPod ever worked on this PC or is this the first time you have time you have tried connecting it?
Have you carefully worked through each and every single suggestion in this Apple support document?
iPod not recognized in 'My Computer' and in iTunes for Windows
B-rock -
Difference between webservices model and adaptive webservices model
hi
Can any one explain me regarding Difference between webservices model and adaptive webservices model.
ThanksHi,
In old WS Model, ithere was no concept of logical destinations.
There if you are using a WSDL located on a server and if the location of the WSDL
changes, your application won't run. The deployed application using the WS Model will have trouble finding
the WSDL. As a result you'll have to again import the
model. Moreover old WS Model does not have re-import functionality.
But incase of AWS Model, you can desine logical destinations and even if the location of the WSDL changes, all you have to do is change the new url in the Visual Admin and not import the model again.
You can visit the following link for more details:
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b04308ed-62d5-2910-b3a6-c26771b1c78e
Regards,
Nidhi
Maybe you are looking for
-
Getting a driver missing message when trying to load os
Good afternoon lads, I need a little bit of help. Just put together a new unit with a MSI 870A-G54 set to Raid 1. When I go to load the OS 7 pro 64. I get an message that reads "A required CD/DVD drive device driver is missing. If you have a driver
-
I lost my photo stream how do I get it back
MY photo stream is gone how do i get it back
-
Want to use I cloud but can't open primary email address for verification process
Hi there, it's my first time to join the Apple community eventhough I have used Ipad for about two years I guess, n have loved it since then. Well, I have problem, I want to use I cloud, but I can't as I have to give verification first by following
-
How to make the tabs something else
My homepage is Google. exactly what i want it to be but when i go to a tab / open a tab its trovi. How do i change that so its Google or just blank to where it shows other sites I've been on?
-
I have an Android mobile and tablet and a Windows7 computer - desktop. I am still on BTYahoo mail (not yet transferred) If I delete my emails on phone or tablet is it supposed to delete them on all devices. Oops this has happened to an email I want