That doesn't look like the correct atom format.
It should be something like
<atom:entry xmlns:atom="http://www.w3.org/2005/Atom">
<atom:category term="http://schemas.google.com/finance/2007#portfolio"
scheme="http://schemas.google.com/g/2005#kind"/>
<atom:title type="text">test</atom:title>
<gf:portfolioData xmlns:gf="http://schemas.google.com/finance/2007"
currencyCode="USD"/>
</atom:entry>
On Sat, Nov 8, 2008 at 4:01 AM, SB <sala...@gmail.com> wrote:
The XML I am sending to the URL is
<entry>
<title type='text'>A New Portfolio</title>
<gf:portfolioData currencyCode='USD'/>
</entry>
String strATOMRequestBody = HttpUtility.UrlEncode("<entry xmlns:gf=
\"http://schemas.google.com/finance/2007\" >" +
"<title type=\"text\">A New Portfolio</title>" +
"<gf:portfolioData currencyCode=\"USD\"/ >" +
"</entry>", Encoding.UTF8);
On Nov 7, 9:48 pm, "Doug Chimento" <dchi...@gmail.com> wrote:
Can you provide the XML you are sending to the google servers?
On Fri, Nov 7, 2008 at 8:42 AM, VPN <vino...@gmail.com> wrote:
The Create Portfolio is resulting in a :-
"{"The remote server returned an error: (400) Bad Request."}"
exception - For the .NET client library.
Other like retrieval operations works perfectly fine.
What am I doing wrong?. Please guide.
Thanks in Advance.- Hide quoted text -
- Show quoted text -