Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] MessageElement cannot be resolved to a type

Hello - I am using the tWebServiceInput component to connect to a WCF service.  I am using the "Advanced Settings" within the component - the code for this section is provided below.  The method that I am calling returns a MessageElement, but when I call it I get the message "MessageElement cannot be resolved to a type."

routines.ApiLocator locator = new routines.ApiLocator();
routines.Iapi contract = locator.getBasicHttpBinding_Iapi();
String guid = "123456";
MessageElement[] messageElements = contract.method(guid);

Error message:
[statistics] connecting to socket on port 3986
[statistics] connected
Exception in thread "main" java.lang.Error: Unresolved compilation problem: 
MessageElement cannot be resolved to a type

at ic.callsy_0_1.CallSy.tWebServiceInput_1Process(CallSy.java:891)
at ic.callsy_0_1.CallSy.runJobInTOS(CallSy.java:1304)
at ic.callsy_0_1.CallSy.main(CallSy.java:1138)
Job CallSy ended at 17:27 22/02/2016. [exit code=0]

Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hi
It is a compilation error, [font=Verdana, Helvetica, Arial, sans-serif]I think you need to add the package name before it, such as[/font]


[font=Verdana, Helvetica, Arial, sans-serif][size=2]packageName.className[] [/size][/font]messageElements = contract.method(guid);

View solution in original post

2 Replies
Anonymous
Not applicable
Author

Hi
It is a compilation error, [font=Verdana, Helvetica, Arial, sans-serif]I think you need to add the package name before it, such as[/font]


[font=Verdana, Helvetica, Arial, sans-serif][size=2]packageName.className[] [/size][/font]messageElements = contract.method(guid);
Anonymous
Not applicable
Author

Thanks.  That worked.