Forum Discussion

jt21's avatar
jt21
Occasional Visitor
7 years ago

generate code" for ".NET 2.0"

I tried my webservice in soapUI PRO, it works fine. The results display nicely.

I use "generate code" for ".NET 2.0" to generate a c# class, but the generated c# class was not working. The generated class should get same result as in soapUI PRO, right?  Following is the error message:"

SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

C#

Employee client = new Employee();
client.ClientCertificates.Add(GetCertificate()); // works fine
var f = client.GetEmployees(); // error

 

any help?

  • Nastya_Khovrina's avatar
    Nastya_Khovrina
    SmartBear Alumni (Retired)

    Hi,

     

    Thank you for your post. Can you please clarify how you generated the C# code? What tool did you use?