cancel
Showing results for 
Search instead for 
Did you mean: 

WSModelRuntimeException: Model class target role... already exists : Error

Former Member
0 Kudos

Hi,

I'm using Adaptive Web Service Model to consume a web service. I have used a java class 'MriAux'.

When i am creating the instance of that model in component controller using,

MRIR_Model model = new MRIR_Model();

I am getting the folowing error as

com.sap.tc.webdynpro.model.webservice.exception.WSModelRuntimeException: Model class target role with name 'MriAux' and QName 'MriAux' already exists. It cannot be replaced by model class target role with different QName 'mriAux' and the same name.

But, there are no 2 classes as MriAux and mriAux. I have only MriAux class.

Please help me out in this.

Thanks & Regards,

Vivek

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

hi

is the web service you are using is being exposed from the RFC, i mean RFC being exposed as web service and then

you can integrated ,if such i case check the structure attributes , may be the attribute name have been changed ,

if so then generate new WSDLl URL and then integrate , your problem should be solved .

Thanks

Former Member
0 Kudos

Hi Murali,

Thanks for Reply.

My web srvc is made by exposing EJB. It works fine when tested in navigator.

I have used latest wsdl also. So there is no issue of old wsdl or changes in structure.

I have previoulsy used Adaptive Web srvc models and executed successfully.

But somehow for this perticular web srvc it's giving me WSModelRuntimeException.

As i said there is no class exist with duplicate name in my EJB Web Srvc.

I have checked on SDN that there is another same error question exist on SDN but that's also unanswered.

Regards,

Vivek

Former Member
0 Kudos

Hi,

I have solved my issue.

I have used same code to create new Web Srvc so that it's Web srvc and VI names get's changed.

After that it works fine.

Regards,

Vivek