Groups | Blog | Home
all groups > dotnet web services > july 2007 >

dotnet web services : WSDL, SAOP


John Saunders [MVP]
7/26/2007 1:38:52 PM
[quoted text, click to view]

Is there some reason you didn't create a web reference and call that?
--
John Saunders [MVP]
Hovhannes Asatryan
7/26/2007 3:49:24 PM
Hello guys,
I'm newbie in .NET.

I have agent server works with SOAP protocol.

Added web service which have getFiles and setFiles methods.

SoapServer soapServer = (SoapServer)Activator.GetObject(typeof(SoapServer),
http://localhost:port/Server);
SoapServer is the interface with methodts to be called.

When I called soapServer.getFiles("$FRTL_XMLHOME", "etc", "xml");
it works OK, but when I tried to set the files throws exception

"Unable to write data to the transport connection: An established connection
was aborted by the software in your host machine"

By the way with the same agent perfectly works java code no exceptions no
errors, the difference... client changed from java to .Net,

Language is C#.

Please help me with this awful problem.

Hovhannes Asatryan
7/27/2007 12:00:00 AM
Would you like so pleasure to write an example how I should create this
link?
thanks
[quoted text, click to view]

John Saunders [MVP]
7/27/2007 1:48:19 PM
[quoted text, click to view]

What "link"? Do you mean the Web Reference?

In Visual Studio, right-click the project and choose Add Web Reference.
That's all. If you name put "service" in the text box for the name, you can
use code like this:

using (MyService service = new MyService())
{
service.WebMethod();
}
--
John Saunders [MVP]
AddThis Social Bookmark Button