Click here to Skip to main content
15,887,596 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello

I'm new in xml and soap protocole

I try to create a soap message that contain in the body data from object .

I consulted many tuto to di this but the problem was not solved .

I would like to retrieve from object in my asp.net MVC4 application

Help please !
Posted
Comments
Sampath Lokuge 14-Mar-14 10:09am    
Your question is not clear.Can you give more info and also put your code snippet which you tried ?
amiach 14-Mar-14 12:08pm    
that's the problem , I 'm still reading tuto and I can't start writing code without understanding what class and methods that I should code .
I'm reading now this http://msdn.microsoft.com/en-us/library/d5wt2he6%28v=vs.110%29.aspx but I still have confused ideas

1 solution

This method serialize data in an xml file with soap protocole and it works successfully

public static bool SerializeSOAPFile(object objet, string pathFile)
{
if (objet == null)
return false;

FileStream stream = new FileStream(pathFile, FileMode.Create);
SoapFormatter objetSoap = new SoapFormatter();

objetSoap.Serialize(stream, objet);

stream.Close();
return true;
}
 
Share this answer
 

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