Click here to Skip to main content
15,917,329 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hallo Everyone,

I have been trying to exchange messages over the SOAP protocol.

Is there a SoapConnection class in .Net environment?

Thank you
Posted
Updated 1-Feb-11 20:43pm
v4

No. This is from Java. I would say: of course not, because .NET is pretty good in separations of concerns. SOAP is one aspect, connection is different one.

This will give you pretty good idea:
http://www.c-sharpcorner.com/UploadFile/puranindia/789/[^].

—SA
 
Share this answer
 
Comments
Espen Harlinn 2-Feb-11 16:18pm    
Nice enough - I kind of like remoting - it usually performs better than WCF, at least when you are using the binary formatter. 5+
Sergey Alexandrovich Kryukov 2-Feb-11 16:34pm    
Thank you Espen. I simply found defects in WCF in terms of flexibility. I manager to make remoting solution much more flexible for more complex cases. WCF is better to please "easy doers" though. In my last project, I denied WCF in favour of remoting, but fundamentally used DataContract.
--SA
Espen Harlinn 2-Feb-11 16:42pm    
Try rolling your own serializing code without using anything that relies on reflection - unless you roll your of optimization around this too, and transfer only byte[] or Stream over WFC. Try using that to transfer a 100.000 records - with a combination of float, blob data, int64, strings, and so on. Then time it and compare the result to remoting or wcf using DataContract - I think you find the result "interesting" :)
Sergey Alexandrovich Kryukov 2-Feb-11 17:00pm    
I understand. You probably right. I don't have to do that. I mostly use DataContract for meta-data, generally I developed a meta-data driven cycle of development. As DataContract is based on Reflection, enough flexibility is achieved. Meta-data can also be a sophisticated configuration, very critical in the business I worked in. Before DataContract, I developed my own Reflection-driven stuff, even more flexible but probably slower (never was critical), and before .NET -- same thing based on C++ RTTI - it can play the role of reflection...
--SA
Yonathan1111 3-Feb-11 2:43am    
Thank yoou all,
You gave me a lot help
If you would like to use SOAP with Windows Communication Foundation (WCF) - here is a simple introduction and example:
http://kjellsj.blogspot.com/2006/12/how-to-expose-wcf-service-also-as-asmx.html[^]

Regards
Espen Harlinn
 
Share this answer
 
Comments
Yonathan1111 3-Feb-11 2:41am    
Hallo Espen,
Thank you very much for your help.
I used Http protocol as a transport protocol and SOAP message as the raw data. It was the thought I used to think made me impossible. I did confuse with the PowerBuilder class called SoapConnection.
Sergey Alexandrovich Kryukov 3-Feb-11 23:46pm    
I did not vote before, but now I see this advice is also workable - a 5.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900