Skip to Content (Press Enter)
OutSystems.com
Personal Edition
Community
Support
Training
Training
Online Training
Developer Schools
Boot Camps
Certifications
Tech Talks
Documentation
Documentation
Overview
ODC
O11
Forums
Forge
Get Involved
Get Involved
Jobs
Ideas
Members
Mentorship
User Groups
Platform
Platform
ODC
O11
Search in OutSystems
Log in
Get Started
Back to Forums
Martijn Habraken
0
Views
5
Comments
Compiler error with List Output variables of SOAP service
Question
Hi,
When creating a SOAP method with as Output variable type a List of <structure>. I get the following Error log when compiling.
compile:
[mkdir] Created dir: /opt/outsystems/platform/share/ServiceTest/full/bin/app
[mkdir] Created dir: /opt/outsystems/platform/share/ServiceTest/full/copyToApp
[javac] Compiling 57 source files to /opt/outsystems/platform/share/ServiceTest/full/bin/app
[javac] ----------
[javac] 1. ERROR in /opt/outsystems/platform/share/ServiceTest/full/src/osservicetest/webservices/TestServiceImpl.java (at line 127)
[javac] outWSOut1.value = new WORCContactListRecord((tmpoutWSOut1.value).ssRLContact);
[javac] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[javac] The constructor WORCContactListRecord(RLContactList) is undefined
[javac] ----------
[javac] 1 problem (1 error)
Does anybody know to fix this?
João Rosado
Staff
Hi Martjin,
What version of the Platform Server are you using? I could not replicate that problem in my machine.
(was able to cause some compilation errors with outputs of "List of Integer", but not with "List of <structure>").
Also I could not find any submit feedbacks from you.
It's important for us to recieve the submit feedback information when errors occur, in order to improve the product.
Regards,
João Rosado
Martijn Habraken
Hi
João,
I have tried this on two servers:
Server 1: Java stack Version 9.0.0.6
Server 2: Java stack Version 9.0.1.4
I just submitted feedback to you.
Kind regards,
Martijn Habraken
João Rosado
Staff
Hi,
I see..
The problem is actually not the method (MethodWithInputRL) that has the "Contact LIst" output, but the other one (MethodWithInputStructure) that has a Structure with a single attribute of "Contact List" type.
In the past single attribute structures were optimized to be able to simulate "List Types".
Now that the "List Type" exists in the language, tecnically both of your 2 methods should behave the same way.
So you either just use your MethodWithInputRL method, or as workaround if you really want to use the other structure you will need to add some extra attribute to the ContactList structure so it is not a "single attribute structure".
Regards,
João Rosado
1 reply
19 Jun 2015
Show thread
Hide thread
Martijn Habraken
João Rosado
wrote:
Hi,
I see..
The problem is actually not the method (MethodWithInputRL) that has the "Contact LIst" output, but the other one (MethodWithInputStructure) that has a Structure with a single attribute of "Contact List" type.
In the past single attribute structures were optimized to be able to simulate "List Types".
Now that the "List Type" exists in the language, tecnically both of your 2 methods should behave the same way.
So you either just use your MethodWithInputRL method, or as workaround if you really want to use the other structure you will need to add some extra attribute to the ContactList structure so it is not a "single attribute structure".
Regards,
João Rosado
Hi
João,
I continue to have problems with structure lists.
I have submitted the error I now encounter. Again there is a list of a structure, but this time the structure isn't a 1 attribute structure. What is it that OutSystems can't handle?
Kind regards,
Martijn Habraken
Martijn Habraken
ah, Thanks
João.
Without the action it compiles indeed just fine.
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
See the full guidelines
Loading...