We have the same problem in platform 5.1.0.14. Unfortunately we are being delivered a .NET webservice which we cannot alter yet want to consume within Outsystem platform.... I attach a test OML that has imported the WSDL as given by https://...../xxx.asmx@WSDL - it is very rough but if you press OK (no need to enter anything) then you'll see the problem with one of the exports... <s:complexType name="TestWebSvrExport"> <s:sequence> <s:element minOccurs="0" maxOccurs="1" default="false" name="TrustClients" type="s:boolean" /> <s:element minOccurs="0" maxOccurs="1" default="" name="Command" type="s:string" /> <s:element minOccurs="0" maxOccurs="1" default="Unknown" name="ExitStateType" type="tns:ExitStateTypeEnum" /> <s:element minOccurs="0" maxOccurs="1" default="0" name="ExitState" type="s:int" /> <s:element minOccurs="0" maxOccurs="1" default="" name="ExitStateMessage" type="s:string" /> <s:element minOccurs="0" maxOccurs="1" name="OutTestEntityType" type="tns:OutTestEntityType" /> </s:sequence> </s:complexType> <s:simpleType name="ExitStateTypeEnum"> <s:restriction base="s:string"> <s:enumeration value="Informational" /> <s:enumeration value="Warning" /> <s:enumeration value="Error" /> <s:enumeration value="Unknown" /> </s:restriction> </s:simpleType> ..... The error in Service studio after digging down is: [5] Enum underlying type and the object must be same type or object. Type passed in was 'System.String'; the enum underlying type was 'System.Int32'. Stack: (Inner Exception of 82bf9313-a623-4703-8286-4cd04c0de930) at System.Enum.Format(Type enumType, Object value, String format) at System.Xml.Serialization.XmlReflectionImporter.GetDefaultValue(TypeDesc fieldTypeDesc, Type t, XmlAttributes a)
The Webservice is delivered with their own test harness that has some code in it to translate this which looks like it is required within the Outsystems platform webservice consumption wrapper: ... switch (exportView.ExitStateType) { case TestWebSvrExport.ExitStateTypeEnum.Informational: writer.WriteAttributeString( "exitStateType", "Informational" ); break; case TestWebSvrExport.ExitStateTypeEnum.Warning: writer.WriteAttributeString( "exitStateType", "Warning" ); break; case TestWebSvrExport.ExitStateTypeEnum.Error: writer.WriteAttributeString( "exitStateType", "Error" ); break; case TestWebSvrExport.ExitStateTypeEnum.Unknown: default: writer.WriteAttributeString( "exitStateType", "OK" ); break; } Is there any way to either (a) Ask the platform to pass through the enum value directly instead or (b) Have the translation done so we can call these webservices! or ?? Rgds, Paul.