Folks, I have been following the coding samples for sending a notice.
My code looks like this:

        final Entry newNotice = new Entry();

        newNotice.setTitle(new PlainTextConstruct( "My Title" ) );
        newNotice.setContent(new PlainTextConstruct( "This notice is a
CCR document" ) );

        final XmlBlob ccrElement = new XmlBlob();
        ccrElement.setBlob( sCcr );
        newNotice.setXmlBlob( ccrElement);

        try
        {
            final Entry createdNotice = h9Service.insert(new
URL( s_sScope + "register/default" ), newNotice );

        ...

The CCR String looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<ContinuityOfCareRecord xmlns="urn:astm-org:CCR">
    <CCRDocumentObjectID>C4B54192-EA77-78A8-92BF-380985EC5D32</
CCRDocumentObjectID>
    ...

The notice insertion step above results in the following exception:
com.google.gdata.util.InvalidEntryException: Bad Request
The processing instruction target matching &quot;[xX][mM][lL]&quot; is
not allowed.

Should I omit the XML declaration from the CCR string? Any other
thoughts?

Thanks for any insights.

-Raj

-- 
You received this message because you are subscribed to the Google Groups 
"Google Health Developers" 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/googlehealthdevelopers?hl=en.

Reply via email to