Friday 13 March 2020

There was an error downloading 'https://D365applicationaos.cloudax.dynamics.com/soap/services/SWaifServices?wsdl/$metadata'. The request failed with an empty response. Metadata contains a reference that cannot be resolved: 'https://swelldev102dce1a4c63e35cbbdevaos.cloudax.dynamics.com/soap/services/SWaifServices?wsdl'. The server did not provide a meaningful reply; this might be caused by a contract mismatch, a premature session shutdown or an internal server error.

I was getting the below error while trying to download D365 services in SOAP reference.

There was an error downloading 'https://D365applicationaos.cloudax.dynamics.com/soap/services/SWaifServices?wsdl/$metadata'.

The request failed with an empty response.

Metadata contains a reference that cannot be resolved: 'https://D365applicationaos.cloudax.dynamics.com/soap/services/SWaifServices?wsdl'.

The server did not provide a meaningful reply; this might be caused by a contract mismatch, a premature session shutdown or an internal server error.

Reason:

Usually, we see this error when parameters in the service class is not matching or having duplicates in the parameters.




Solution:

Make sure the parameters should be unique and matching with method parameters.



Please see my previous post as well
https://rahulmsdax.blogspot.com/2019/08/there-is-problem-with-server-sorry.html

Adding a newline into a string in C# and X++

Below is the sample code we can use for  adding a newline after every occurrence of "@" symbol in the string in C#   using System...