BizTalk Server General - Re: SubmitDirect from web service gets Exception from HRESULT: 0xC

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server General > March 2006 > Re: SubmitDirect from web service gets Exception from HRESULT: 0xC





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: SubmitDirect from web service gets Exception from HRESULT: 0xC
Sudhir Darbha

2006-03-25, 11:37 am

Well, here's an interesting twist to the story :-)
I changed the parameter to the webservice from XmlDocument to "string". And
instead of doing --> XmlDocObj.Save(streamObj),
I'm using -->
MemoryStream fileStream = new
MemoryStream(System.Text.Encoding.UTF8.GetBytes(strDocContent));

And that solved it and its now working! I checked for a UTF-16 encoding and
I didn't find any property for UTF-16 in Encoding class.
My guess is the webservice serialization and deserialization is muddying up
the data.
But still would love to use XmlDocument instead of a string as a parameter
to the web service. Let me know your thoughts on this.

Thanks for all your inputs,
Sudhir.
"Tomas Restrepo (MVP)" wrote:

> Sudhir,
>
> It might very well be an encoding problem still. I think you'll get an UTF-8
> encoded message here. You could try using a StreamWriter to write to the
> stream here and experiment with UTF-16 encoding and see if that makes a
> difference.
>
>
> --
> Tomas Restrepo
> tomasr@mvps.org
> http://www.winterdom.com/
>
>
>

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com