Update: I added the following code to the service.cs file, Service
Class and now I'm able to get a contact entry from XML.
public AtomEntry Get(string entryXML, string uriToUse)
{
AtomFeed feed = null;
if (entryXML == null)
{
throw new System.ArgumentNullException("entryXML",
"The argument MUST not be null");
}
if (uriToUse == null)
{
throw new System.ArgumentNullException("uriToUse",
"The argument MUST not be null. Any uri will be fine.");
}
byte[] xmlBytes =
System.Text.Encoding.UTF8.GetBytes(entryXML);
System.IO.MemoryStream responseStream = new
System.IO.MemoryStream(xmlBytes, 0, xmlBytes.Length);
if (responseStream != null)
{
feed = CreateAndParseFeed(responseStream, new
System.Uri(uriToUse));
}
return feed.Entries[0];