cancel
Showing results for 
Search instead for 
Did you mean: 

ERROR -ModelClassName clash in webdynpro java during webservice consumption

Former Member
0 Kudos

I am trying to use "import adaptive webservice" in webdynpro java and i do the following steps:

1.create model

2.import adaptive webservice model

3.

model name - "Extendedshopcart"

model package - com.sap.srm.mdm

and select option :- "Local File System or URL "

4. select "use destinations for metedata and execution" and click on next

5. provide :-wsdl ,username and password. and click next

6.its give error :- "ModelClassName Clash : Approvalstatus Approvalstatus"

and do not allow to move further.

i also try to run this wsdl on IE and its working fine means its launching perfectly.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

hi

The error because of model class names generated by adaptive ws model Runtime.

Adaptive WS Model importer uses the Adaptive ws model runtime to create model metadata.

AWS model runtime creates metadata entities like model classes,model class properties,relation between model classes etc..

from wsdl,xml scema types defined..

AWS uses xml names and maps to simple strings,this mapping must be unique that means two different model class names must not be the same...if not you will get model class name clashes...

so,You have to adjust model class names.

After importing wsdl ,in the next step you can find one table,in that you have one column as editable model class name ,there you check Whether model class names are repeated and try to rename one of them.

or

Try to edit xml file(local wsdl) and check wsdl names are repeated..(Approvalstatus) and change one of the wsdl name..

Regards

sowmya.

Former Member
0 Kudos

thanks sowmya