Uploaded image for project: 'Qpid'
  1. Qpid
  2. QPID-4400

WCF HelloWorld example throws an XMLException

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 0.18
    • 0.19
    • None
    • Windows 7 Professional x64
      Visual Studio 2010
      .Net FrameWork 4.0

    Description

      There is an exception on byte[] binaryContent = reader.ReadContentAsBase64();

      The reason is no writer.WriteEndElement(); in
      protected override void OnWriteBodyContents(XmlDictionaryWriter writer)

      { byte[] binaryContent = Encoding.UTF8.GetBytes("Hello world!"); writer.WriteStartElement("Binary"); writer.WriteBase64(binaryContent, 0, binaryContent.Length); // Insert here writer.WriteEndElement(); }

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            cliffjansen Clifford Jansen
            seunch Maxim Smityukhov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment