Hi, I am facing issue consuming SOAP web service on OS 11 which is recently upgraded from OS 10.
All previous WS consuming are working fine in OS 10.
Please see below warning message in image 1.
After that, if proceed, WS appear with wrong structure. Please see in image 2.
When compile, got below error.
Internal ErrorInvalid compiler output.The WCF proxy code contains errors.Exception Details:[1] System.Exception: The WCF proxy code contains errors. ---> System.Exception: C:\Windows\system32> "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\csc.exe" /t:library /utf8output /R:"System.Runtime.Serialization.dll" /R:"System.ServiceModel.dll" /R:"System.dll" /R:"System.Xml.dll" /R:"mscorlib.dll" /out:"C:\Windows\TEMP1frrbki1frrbki.dll" /debug- /optimize+ "C:\Windows\TEMP1frrbki1frrbki.0.cs"Microsoft (R) Visual C# Compiler version 4.7.3062.0for C# 5Copyright (C) Microsoft Corporation. All rights reserved.This compiler is provided as part of the Microsoft (R) .NET Framework, but only supports language versions up to C# 5, which is no longer the latest version. For compilers that support newer versions of the C# programming language, see http://go.microsoft.com/fwlink/?LinkID=533240c:\Windows\Temp1frrbki1frrbki.0.cs(30,26): error CS0101: The namespace 'ssProxy' already contains a definition for 'ZHRPA_EREAP_IN_0006'c:\Windows\Temp1frrbki1frrbki.0.cs(16,22): (Location of symbol related to previous error) --- End of inner exception stack trace --- at OutSystems.Plugin.SOAP.SOAPUtilsCompiler.GenerateProxy(CodeCompileUnit ccu, TextWriter writer, String filename) at OutSystems.Plugin.SOAP.SOAPClientDescriptor.DumpCustomClass(TextWriter writer, ICustomClient obj) at OutSystems.HubEdition.Compiler.CustomClient.Dump() at OutSystems.HubEdition.Compiler.ESpace.DumpCustomClients() at OutSystems.HubEdition.Compiler.ESpace.Dump() at OutSystems.HubEdition.Compiler.Compiler.DumpEspaceCode(ESpace eSpace, CompilationContext context) at OutSystems.HubEdition.Compiler.Compiler.InnerCompileEspace(ESpace eSpace, CompilationContext context) at OutSystems.HubEdition.Compiler.Utils.CompilerUtils.TrapExceptionsInContext(Action action, CompilationContext context)[2] System.Exception: C:\Windows\system32> "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\csc.exe" /t:library /utf8output /R:"System.Runtime.Serialization.dll" /R:"System.ServiceModel.dll" /R:"System.dll" /R:"System.Xml.dll" /R:"mscorlib.dll" /out:"C:\Windows\TEMP1frrbki1frrbki.dll" /debug- /optimize+ "C:\Windows\TEMP1frrbki1frrbki.0.cs"Microsoft (R) Visual C# Compiler version 4.7.3062.0for C# 5Copyright (C) Microsoft Corporation. All rights reserved.This compiler is provided as part of the Microsoft (R) .NET Framework, but only supports language versions up to C# 5, which is no longer the latest version. For compilers that support newer versions of the C# programming language, see http://go.microsoft.com/fwlink/?LinkID=533240c:\Windows\Temp1frrbki1frrbki.0.cs(30,26): error CS0101: The namespace 'ssProxy' already contains a definition for 'ZHRPA_EREAP_IN_0006'c:\Windows\Temp1frrbki1frrbki.0.cs(16,22): (Location of symbol related to previous error)
I have tried to consume old WS, which are able to consume previously in OS 10, now not able to consume anymore with same wrong structure and error come out.
Please help. Thanks in advance.
Hello,
In service center the consumers have the right path in the Effective URL and the authentication have the right user and password?
Ana Loureiro wrote:
End Point URL and Authentication are correct. The issue is OS 11 read the WSDL structure wrongly.
Dave Kyaw wrote:
did you resolve the error ? I am having the same issue.
Hi Maitha Khanji,
The below is the OS support provided workaround.
<?xml version="1.0" encoding="utf-16"?> <Features> <EnableConsumeSOAPLegacy>true</EnableConsumeSOAPLegacy> <EnableConsumeSOAPPlugin>true</EnableConsumeSOAPPlugin> </Features>
Hope it help you.
Hello. Thanks for your response and for the steps. But unfortunately it didn't work.
Just one clarification, should I change the content of "Features.xml" or "FeaturesOverride.xml" ? I tried both though. But just to double check.
Also note that we just procured Outsystems 11 we didn't have OS 10 before.
I had this issue twice consuming SOAP exposed by SAP. And I have solved this with support help too, but the support fixed my WSDL file.
I'll save your tip using the SS.
Thank you Dave!
Leandro Correa wrote:
Hi leonardo
what changes exactly have they done to the WSDL we are facing the same issue with SAP WSDL. the WSDL file does not contain any unsupported scenario but we are facing the complie error
Only need to change in FeaturesOverride.xml
Leave the Features.xml as it is.
Have you see the third menu with (Deprecated) after close and reopen the Service Studio again?
Noted that you only have ver11. But that one is not compatible to consume SAP SOAP service.
OS support acknowledged and told us they will fix in next release.
That's why try to use the method from ver10.
It works for me.
I believe you can open an official support ticket to OS Customer Success Team.
Hi Mohanad,
I can't access the ticket anymore, but I found this other topic, please verify if this help you:https://www.outsystems.com/forums/discussion/59125/errors-when-i-consume-soap-web-service/
Regards,
Leandro.