on 07-02-2009 9:02 PM
Hi,
I get the following exception when I execute my Web Servcie model.
Error: java.rmi.RemoteException: Neither target role nor property '$0023ChoiceField' defined in model class 'TrustOverrideField' for the field name '#ChoiceField'; nested exception is: com.sap.tc.webdynpro.model.webservice.exception.WSModelRuntimeException: Neither target role nor property '$0023ChoiceField' defined in model class 'TrustOverrideField' for the field name '#ChoiceField'
Now here's the thing, I know in Web Dynpro we are not allowed to use model node names with # and $. However, when I do Edit Model Binding, it creates some nodes with these special characters in them. Namely:
Record$0023Choice1
Field$0023Choice1
TrustOverrideField$0023Choice1
Might someone be able to help with light of this why I might be getting the above exception?
Regards
M.
Hi,
Is this "ChoiceField" newly added in the WebService after import?
Regards,
Charan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Marshall,
While using web services usually for attributes that are defined in webservices will be preceded with $ symbol while you create a model in webdynpro. Even in our case also we have attributes which have $ symbol before to it and we are able to execute the webservices. I believe possibly the WSDL strucuture could have been changed after you imported. Check whether the WSDl strucuture is same and check whether it includes the attributes on which you are getting exception into it.
Regards,
Ponraj M
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
Thanks for the replies.
It is possible that someone might have added something to the web service and not communicated it to me.
However, when I try to reimport the web service model, the Reimport Model option is greyed out and I can't select it!
Do I have to delete the entire model and re-import? The web service model was generated with a WSDL URL.
Thanks
M
Hi,
Please test the webservice from any client like WebSercieNavigator or XML Spy..etc..
If it is working fine there..then the only resolution as per my knowledge is:
Restart the J2EE Server.
Becuase the cache maintains at different leves. So for newly created attributes at backend there is allways possibility for issues.
Regards,
Charan
Hi Charan,
Thanks for all the tips.
I tested the web service in SOAP UI 3.0, and it executes fine.
I restarted the J2EE engine, and redeployed.. However, I still get the same rmi.RemoteException. The thing is, the model context is created by 'Edit Model Binding', and I have selected ALL the Request and Response nodes generated by the Web Dynpro wizard for the particular function i'm invoking. The error exception message states:
Neither target role nor property '$0023ChoiceField' defined in model class 'TrustOverrideField' for the field name '#ChoiceField';
Under the model node TrustOverrideField I only have these two nodes created by the WDP generator:
TrustOverrideField (0..n)
TrustOverride (1..1)
TrustOverrideField$0023Choice1 (0..1)
But I think according to the error, its expecting a node called $0023ChoiceField, for a field called #ChoiceField?
Any suggestions please?
M
Hello,
( Using NWDS 7.0.18. )
I really need help with this one.
Does anyone know of any known compatibility issues with any particular types of web services and web dynpro.??
I am stumped as to why this isn't working, I've tried everything!! Deleting the model, reimporting the web service, renaming several fields, bouncing the J2EE, nothing works and still get the same exception!
Anyone out there know anything about this?? Please help!!!!!!
M
Hello All,
Ok, I had the WSDL logger running, and when executing the WSDL from web dynpro, the wsdl logger (non-sap) shows me that the wsdl is being executed successfully. This means only the Web Dynpro runtime is complaining. I spoke with the guy that actually created (generated) the web service, and he is adament that no structure like TrustOverrideField is returned with this particular web service function call.
I am thinking the only option I am left with now is to create a wrapper web service (perhaps a deployable proxy service) that will invoke this web service and parse the data I need?
Any suggestions?
M
Hello,
Yet another twist!
I executed the web serivce from the Enterprise Portal perspective in NWDS. I used the Web Service Checker tool, and the web service works fine. At this point I have completely no idea at all why the Adaptive Web Service model java generator is looking for those fields and why they are being generated?
M
User | Count |
---|---|
84 | |
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.