Hi Dave,

It seems like the issue is with CDATA syntax.
It should be
<![CDATA[ RFC 822 message ]]>

About the rest of the questions:

1) To test the RFC 822 message construct the easier approach would be
to use the example RFC message given in the Developer guide. You can
also use your own email messages.

2,4) Regarding "kinds" the difference you noticed is because Email
Migration API uses the mailItem kind. We do not have the Contacts API
at this time but you can visit the following link to rate it's
usefulness.

http://code.google.com/p/gdata-issues/issues/list?q=label:API-GoogleData

3)  Only email insert function is available as a part of this API.

5)  It seems like you have already gone through the documentation
below:

http://code.google.com/apis/apps/email_migration/developers_guide_pro...

So, you can help us to make it better by letting us know your feedback
on things you would like to see added to it.

Thanks,
Megha

On Dec 10, 3:19 pm, Dave C <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am trying to Migrate email messages using the Google Apps Email
> Migration API. C++ and curl is being used. I am able to Authenticate
> and submit a batch job. The batch submission works fine and I'm
> getting valid responses that tell me that processing the submission
> fails. Some of these I've fixed but I'll present the ones below that
> are failing.
>
> I'm simply using the batch two-item feed example that is provided in
> the Google Apps Email Migration API Developer's Guide. I removed the
> ", < and < entries and surrounded the RFC 822 message in
> <CDATA>RFC 822 message</CDATA>. The problem is that the following
> items
>
> Message-ID:
> <[EMAIL PROTECTED]>
> From: 'Elizabeth Bennet' <[EMAIL PROTECTED]>
> To: 'Fitzwilliam Darcy' <[EMAIL PROTECTED]>
>
> fail because
>
> <batch:interrupted reason='org.xml.sax. SAXParseException: Element
> type "c
> 8acb6980707161012i5d395392p5a6d8d14a858
> " must be followed by either attribute specifications,
> ">"('>') or "/>"('/>').' parsed='0'
> success='0' error='0' unprocessed='0'/>
>
> I've tried both > and /> and the same error message is still returned.
>
> I also have the following questions regarding the Google Apps Email
> Migration.
>
> 1) The JavaMail library is recommended to construct the RFC 822
> messages. However, I'm using C++. Is there a library for C++? Is there
> a program that will generate the constructs that I can then copy and
> paste from for testing purposes?
>
> 2) How are contacts handled? The contact information and examples in
> the Common Elements: "Kinds" directory seems quite different from the
> examples in the API Developer's Guide and the Reference Guide. How do
> I use the Common Elements: "Kinds" contacts information to get
> contacts to migrate?
>
> 3) Does the Email Migration only provide for inserts? Can updates,
> deletes, and other operations be done?
>
> 4) What can currently be done (updates, deletes, etc.)  with contacts
> using the Common Elements information-using any of the available APIs?
>
> 5) What documentation needs to be read to provide me with a background
> to write and troubleshoot the Email Migration API code?
>
> Thank you,
>
> Dave Chugg
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Apps APIs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-apps-apis?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to