Archived Forum PostQuestion:
Hi,
I've a program that checks a VAT number on a webservice. If the number is OK, then i receive some information about the number. Most of the times, it works, but sometimes, I can't download the answer from the webservice. When the download failed, I discovered that the answer contains special characters like 'ü,é,à,@,....'
I think chilkat struggles with this special characters.
Are there any settings for this characters, or things I can do to make it work?
Component is Unlocked.
VerboseLogging is ON
Version: 9.4.1.42
Set Username:
Do not use the proxy-server. Reset all proxysettings.
Webservice: http://ec.europa.eu/taxation_customs/vies/services/checkVatService
***** ERROR: Download NOT successful.
Error: ChilkatLog:
PostXml:
DllDate: Aug 15 2013
ChilkatVersion: 9.4.1.42
UnlockPrefix: STREAMHttp
Username: BOECHOUT:raveel
Architecture: Little Endian; 32-bit
Language: ActiveX
VerboseLogging: 1
url: http://ec.europa.eu/taxation_customs/vies/services/checkVatService
charset: utf-8
xmlSizeInChars: 913
RequestData:
HttpVersion: 1.1
Verb: POST
Path: /taxation_customs/vies/services/checkVatService
Charset: windows-1252
SendCharset: 0
MimeHeader: Content-Type: text/xml; charset=utf-8
User-Agent: Chilkat/1.0.0 (+http://www.chilkatsoft.com/ChilkatHttpUA.asp)
Host: ec.europa.eu
Accept: */*
Accept-Charset: ISO-8859-1,utf-8;q="0.7,*"; q="0.7"
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip
--RequestData
HttpOptions:
Accept: */*
AcceptCharset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
AcceptLanguage: en-us,en;q=0.5
AddHostHeader: 1
AllowCookieResponseCaching: 0
AllowGzip: 1
ConnectionHeader: Keep-Alive
ConnectTimeoutMs: 10000
CookieDir:
DigestAuth: 0
FollowRedirects: 1
HttpMethod:
Login:
LoginDomain:
MaxResponseSize: 0
MaxUrlLen: 2000
MimicFirefox: 0
MimicIE: 0
NegotiateAuth: 0
NTLMAuth: 0
PasswordLen: 0
ProxyHostname:
ProxyLogin:
ProxyLogin:
ProxyAuthDomain:
ProxyPasswordLen: 0
ProxyPort: 0
ReadTimeoutMs: 20000
Referer:
RequiredContentType:
ResumePoint: 0
SaveCookies: 1
SendBufferSize: 65535
SendCookies: 1
SslProtocol: 0
UnavailableRetryCount: 0
UnavailableRetryWaitMs: 2000
UserAgent: Chilkat/1.0.0 (+http://www.chilkatsoft.com/ChilkatHttpUA.asp)
--HttpOptions
httpConnect:
hostname: ec.europa.eu
port: 80
ssl: 0
Need to establish connection to the HTTP server...
ConnectTimeoutMs_1: 10000
calling ConnectSocket2
IPV6 enabled connect with NO heartbeat.
connectingTo: ec.europa.eu
resolveHostname1:
Resolving domain name (IPV4) via gethostbyname
--resolveHostname1
GetHostByNameHB_ipv4: Elapsed time: 0 millisec
myIP_1: 192.168.163.7
myPort_1: 51165
connect successful (1)
Turning on TCP_NODELAY.
socketOptions:
SO_SNDBUF: 64512
SO_RCVBUF: 8192
TCP_NODELAY: 1
--socketOptions
Connected
--httpConnect
connectTime1: Elapsed time: 0 millisec
sendRequestGetResponse_1:
sendRequest:
Not auto-adding cookies.
generateRequest1:
contentType: text/xml; charset=utf-8
hasMimeBody: 1
contentLengthFromMemData: 913
--generateRequest1
---- HTTP Request Header ----
RequestHeader: POST /taxation_customs/vies/services/checkVatService HTTP/1.1
Content-Type: text/xml; charset=utf-8
User-Agent: Chilkat/1.0.0 (+http://www.chilkatsoft.com/ChilkatHttpUA.asp)
Host: ec.europa.eu
Accept: */*
Accept-Charset: ISO-8859-1,utf-8;q="0.7,*"; q="0.7"
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip
Content-Length: 913
---- End of HTTP Request Header ----
--sendRequest
sendRequestTime: Elapsed time: 0 millisec
---- Reading HTTP Response ----
readResponse2_4:
Begin reading HTTP response header...
ResponseHeader: HTTP/1.1 500 Internal Server Error
Via: 1.1 TMG
Connection: Keep-Alive
Proxy-Connection: Keep-Alive
Transfer-Encoding: chunked
Date: Fri, 10 Oct 2014 10:36:27 GMT
Content-Type: text/xml; charset=UTF-8
Server: Europa
ConnectionRespHdr: Keep-Alive
fetchNonSslResponseData2_4:
Reading chunked response
--fetchNonSslResponseData2_4
readResponseTime: Elapsed time: 141 millisec
--readResponse2_4
processResponse_3:
responseStatus: 500
response: <soap:envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:body><soap:fault><faultcode>soap:Server</faultcode><faultstring>Invalid_input</faultstring></soap:fault></soap:body></soap:envelope>
--processResponse_3
--sendRequestGetResponse_1
Success.
--PostXml
--ChilkatLog
Please provide more information, such as a code snippet, the contents of the LastErrorText, and if you set the http.SessionLogFilename property, you can get the exact HTTP request/response. Please provide that information also..
Problem solved. Error with conversion Ansi -> unicode