Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Posting and XML doc encoded using ISO-8859-1 and VB 6.0 [Thread Next] Re: Posting and XML doc encoded using ISO-8859-1 and VB 6.0To: NULL Date: 6/1/2005 4:36:00 PM Try
> xmlhttp.send (xmldoc)
instead of,
> xmlhttp.send (xmldoc.xml)
Now in server part, it should receive the xml as stream. e.g.,
xmldoc.load(request) or xmldoc.load(request.inputStream).
Generally sending xml as string(i.e., xmldoc.xml) is not recommanded.
--
Pohwan Han. Seoul. Have a nice day.
"David Heffler" <DavidHeffler@d...> wrote in message
news:9815E39E-69BF-499F-87D1-9AA6224A9259@m......
>I am trying to post and XML doc using ISO-8859-1 encoding. My program is
>as
> follows:
> Dim request As String
> Dim xmldoc As New MSXML2.DOMDocument40
> Dim response As New MSXML2.DOMDocument40
> xmldoc.Load ("c:\uss\uss4.0\ups\licrequest.xml")
> Dim xmlhttp As New MSXML2.XMLHTTP40
> xmlhttp.open "POST", "https://www.ups.com/ups.app/xml/License", False
> xmlhttp.setRequestHeader "Content-type", "text/xml;charset=ISO-8859-1;"
> xmlhttp.send (xmldoc.xml)
> request = xmlhttp.responseText
>
> In the xml document I have coded entries for the acute accent (é). I am
> using é The server is responding with an error and their tech support is
> stating that my document is sending <c3><a9> instead of <e9>. They have
> tested my document at their offices and stated it is properly formatted,
> but
> the visual basic method I am using is filtering the doc improperly.
>
> Any help would be greatly appreciated!
>
> Dave
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
