cancel
Showing results for 
Search instead for 
Did you mean: 

Code generated from imported web service model does not compile

Former Member
0 Kudos

I have created a model in Web Dynpro by importing a web service model using a valid WSDL, but the generated code won't compile because of type mismatches.

The problem is that methods sometimes try to pass plain objects to methods whose parameter is an array of that object, and a List to methods whose parameter is a plain object.

[Examples from SAP Netweaver tasks below]

Thanks,

Alastair

snip

The method setSessionData(EntInstType) in the type AssessRequestData is not applicable for the arguments (EntInstType[])

ComplexType_AssessRequestData.java

Type mismatch: cannot convert from EntInstType to EntInstType[]

ComplexType_AssessRequestData.java

The method setResult(List) in the type Response_JrbrsRefGeneric_listGoals is not applicable for the arguments (EntType)

Request_JrbrsRefGeneric_listGoals.java

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

did you solve this problem? I am in similar situation and I need to find some solution...

thx,

JJ

Former Member
0 Kudos

I'm getting the same error.

Type mismatch: cannot convert from short[][] to short[]
ComplexType_Carton.java

and...

The method setNumeroscarton(short[][]) in the type Carton is 
not applicable for the arguments (short[])
ComplexType_Carton.java	

Steps to recreate the problem:

1. Create and Expose webservice method with a parameter whose type has a short[][] (or bidimensional array of anything) field (property).

2. Try to import the web service in web dynpro... <b>kaputt</b> it won't compile.

<b>Seems like a bug to me. Someone please advice.</b>