cancel
Showing results for 
Search instead for 
Did you mean: 

error of type mismatch for java proxy code

Former Member
0 Kudos

Hi All

I am writing code for server java proxies .I am trying to get the input parameters ,my code is as follows:

package testScenario;

public class MDMtoXIMI_PortTypeImpl extends com.sap.aii.proxy.xiruntime.core.AbstractProxy implements MDMtoXIMI_PortType {

public void mDMtoXIMI(testScenario.JavaproxyINDT_Type javaproxyINMT) throws com.sap.aii.proxy.xiruntime.core.SystemFaultException, com.sap.aii.proxy.xiruntime.core.ApplicationFaultException{

JavaproxyINDT_Type obj=new JavaproxyINDT_Type();

return obj.getName();

// throw new RuntimeException();

}

}

I am getting typemismatch for this piece of code:JavaproxyINDT_Type obj=new JavaproxyINDT_Type();

Can anybody help?

Accepted Solutions (0)

Answers (1)

Answers (1)

stefan_grube
Active Contributor
0 Kudos

I think the Typemismatch is in the line with "return"

The method declaration is "void", so you cannot use return here.

You should modify the interface to "synchronous"

Regards

Stefan