Consuming SOAP web service with the Outsystems workaround

Hello,

I have a SOAP WSDL provided by another company. It is one of the Unsupported cases in this document (the List Attribute in a Single List Attribute case) https://success.outsystems.com/Documentation/11/Extensibility_and_Integration/SOAP/Consuming_SOAP_Web_Services/Unsupported_SOAP_Use_Cases

I applied the workarond mentioned in the document by adding a dummy element to the complex type 

and I am able to compile it. However when I consume it i get Server Error. 

Note that when i consume the same request values in SOAP UI (using the wsdl with the dummy element) it works fine. So if it works in SOAP UI it should work in other places.

here is the Error details


Server Error

Server stack trace:
   at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
   at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
   at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
   at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]:
   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   at ssOneERP_EAM_002_SI_PMNotification.ssProxy.SI_PMNotification_Out_Sync.SI_PMNotification_Out_Sync(SI_PMNotification_Out_SyncRequest request)
   at ssOneERP_EAM_002_SI_PMNotification.CcSI_PMNotification_Out_SyncService.ActionSI_PMNotification_Out_Sync(HeContext heContext, ICcSI_PMNotification_Out_SyncServiceCallbacks _callbacks, RLRecordsList inParamRecords, RLRecords2List& outParamRecords2)



How can I solve this issue?

Your prompt support is appreciated.


thanks and regards, 

Hi Maitha,

Some more questions...

Can you share the WSDL without sensitive data?

Did you opened a support ticket?

Is consuming this SOAP with an extension (C#) an option?


Regards,

Leandro.

Leandro Correa wrote:

Hi Maitha,

Some more questions...

Can you share the WSDL without sensitive data?

Did you opened a support ticket?

Is consuming this SOAP with an extension (C#) an option?


Regards,

Leandro.


Hi Leandro,

The wsdl is confidential the other company will not allow us to share it. 

Yes c# extensions work fine but it takes 20 times the effort that takes in Outsystems.

Any idea what the error. I will raise a support ticket but meanwhile anyone knows the solution? 


any ideas? 

Hi Maitha,

Is the "Server Error" really the only error shown?

Kilian Hekhuis wrote:

Hi Maitha,

Is the "Server Error" really the only error shown?


Hi Kiian,

Yes in the screen it is showing "Server Error" only and in the Service center it is showing the stack trace in the post above. 

However, the wsdl is changed from my side only, from the other company where the web service is hosted it is still the original wsdl without the dummy element. 

But in SOAP UI it is working fine with the wsdl that has the dummy element it is returning response and 200 OK.

Hi Maitha,

I found some topics in the Internet, mencioning timeout or data casting exception. 

The message looks like so generic. 

Did you try to consume using SOAP UI in the same OS Server?

Or verify if some returning data has a invalid format, even the dummy element? 


https://forums.asp.net/t/2041628.aspx?Error+while+calling+the+WCF+Web+Service+from+the+client

https://stackoverflow.com/questions/7103311/wcf-invoking-service-fail/23913736

https://stackoverflow.com/questions/17363486/wcf-call-throwing-a-timeoutexception-when-client-is-behind-proxy

Leandro Correa wrote:

Hi Maitha,

I found some topics in the Internet, mencioning timeout or data casting exception. 

The message looks like so generic. 

Did you try to consume using SOAP UI in the same OS Server?

Or verify if some returning data has a invalid format, even the dummy element? 


https://forums.asp.net/t/2041628.aspx?Error+while+calling+the+WCF+Web+Service+from+the+client

https://stackoverflow.com/questions/7103311/wcf-invoking-service-fail/23913736

https://stackoverflow.com/questions/17363486/wcf-call-throwing-a-timeoutexception-when-client-is-behind-proxy

Hi Leandro,


Yes I ran it from SOAP UI from Outsystems server not from my machine. it is working and returning 200 OK.