Hello,
We need to use a WebService from the Repository Framework in a Windows Forms Application. Everything works fine if I use the Web Services in the Test Section of the WSNavigator.
But if I try to do the same in .NET it doesn't work. I always get an exception telling me that the connection has been broken unexpectedly.
What I did exactly was:
1. Added a WebService to my Solution (tried either the GUI version and WSDL.exe itself)
2. Added using clause to form
3. Added this code on button click
RepositoryFrameworkWS rf = new RepositoryFrameworkWS(); NetworkCredential cred = new NetworkCredential(user, pass); rf.Credentials = cred; Content con; rf.Timeout = -1; con = rf.getContent(@"/documents/test.doc"); FileStream fs = new FileStream(@"d:\temp\test.doc", FileMode.Append); fs.Write(con.content, 0, con.content.Length); fs.Close();
If I run it and click the button I get the above mentioned exception regardless of which rf function I use.
Does anybody have got a clue what I have to change? Anybody experience in using these Web Services in .NET?
Thanks for your help 😊
Greetings,
Florian Fanderl
Edited by: Florian Fanderl on Jul 18, 2008 8:51 AM