writing an xml document to output stream (soap)

Discussion in 'ASP .Net Web Services' started by Tom, Mar 14, 2005.

  1. Tom

    Tom Guest

    I am getting an error on writing an xml document out to the output
    stream (soapOutputStream). The xml doc is perfectly formed, but when I
    use the code below I get an error on the client side saying 'error at
    position 4097' and my xml document appears truncated at that position
    to the consumer of my soap web method. Any ideas?

    Here is the code that bombs

    Code:
    
    xmlDoc3.WriteTo(New
    XmlTextWriter(HttpContext.Current.Items("SoapOutputStream"),
    System.Text.Encoding.UTF8))
    
    
    
     
    Tom, Mar 14, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. null7
    Replies:
    3
    Views:
    4,871
    Raymond DeCampo
    Jan 29, 2006
  2. Tony Prichard
    Replies:
    0
    Views:
    746
    Tony Prichard
    Dec 12, 2003
  3. Manish Hatwalne
    Replies:
    1
    Views:
    401
    Martin Honnen
    Jul 13, 2004
  4. Kashif Ur Rehman
    Replies:
    2
    Views:
    871
    Tom Hawtin
    May 17, 2007
  5. Replies:
    0
    Views:
    1,349
Loading...

Share This Page