login about faq

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

asked Oct 10 '14 at 08:05

philippeKetelaars's gravatar image

philippeKetelaars
112

edited Oct 14 '14 at 09:14

jpbro's gravatar image

jpbro ♦
1.1k2618

1) Format the LastErrorText using "pre" tags so that it's readable.

2) What about the session log?

3) What about the code snippet?

4) If you are under support, feel free to take this to private email (support@chilkatsoft.com)

(Oct 14 '14 at 09:04) chilkat ♦♦

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..

link

answered Oct 10 '14 at 11:48

chilkat's gravatar image

chilkat ♦♦
11.8k316358420

chillkat log provided.

(Oct 14 '14 at 02:39) philippeKetelaars

Problem solved. Error with conversion Ansi -> unicode

link

answered Oct 14 '14 at 10:10

philippeKetelaars's gravatar image

philippeKetelaars
112

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×186
×7
×2

Asked: Oct 10 '14 at 08:05

Seen: 1,455 times

Last updated: Oct 14 '14 at 10:10

powered by OSQA