cancel
Showing results for 
Search instead for 
Did you mean: 

https client error

Former Member
0 Kudos

Hi everyone,

We are having a problem with consuming a Web Service from an https url.

We are using the class if_http_client to send a XML file as a request and we are supose to receive a stream which contains a XML,Word, PDF or JPEG file.

To create de http_client object we use the method create_by_destination and we have created a RFC destination in which we define de SSL certificate and the https url.

When we send a request for a XML file response everything is fine, but when we are asking for another kind of file the http_client->receive is returning a 110 error code. SMICM log shows this:

[Thr 1780] <<- SapSSLReadPending(sssl_hdl=0000000012926560)==SAP_O_K

[Thr 1780] out: pendlen = 0

[Thr 1780] NiIPeek: peek successful for hdl 25 (r)

[Thr 1780] ->> SapSSLRead(sssl_hdl=0000000012926560, buf=0000000003B18415, maxlen=61546,# timeout=500, &readlen=000000000D18FDA0

[Thr 1780] peer has closed connection

[Thr 1780] <<- SapSSLRead(sssl_hdl=0000000012926560)==SSSLERR_CONN_CLOSED

[Thr 1780] IcmReadFromConn(id=0/3046): connection broken (len=0,3917)

[Thr 1780] IcmReadFromConn(id=0/3046): read 3917 bytes(timeout 500)

[Thr 1780] BINDUMP of content denied

[Thr 1780] PlugInHandleNetData(rqid=0/3046/1): role: 2, status: 2

#content-length: 3443/15360, buf_len: 3917, buf_offset: 3917, buf_status: 6, conn reused

[Thr 1780] PlugInHandleNetData: read response body (len=3443/15360)

[Thr 1780] *** ERROR => HttpClntHdlResponse: client: premature EOS (3443/15360) - wrong content length in response header? [http

If anybody as any idea weu2019ll apreciate it, thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Have you checked the below SAP help page ?

http://help.sap.com/saphelp_nwce711/helpdata/en/82/970f76ee2548a090101a921b205d78/content.htm

Cheers...,

Raghu

Answers (3)

Answers (3)

Former Member
0 Kudos

Raghu N.R: we are developing the https client on Solution Manager Netweaver 7.

Mark Dihiansan: this is de info you asked for:

URL: https://achotels.cvtools.com/servicios/export/CvtoolsExportService.php

Target Host: www.cvtools.com

Path Prefix: /servicios/export/CvtoolsExportService.php

Service No: 443

And finally, Jorge Lopez, as far as I know, we both are using UTF-8 character set, but Iu2019ll ask them again.

Thank you people for your answers!

markangelo_dihiansan
Active Contributor
0 Kudos

Hi Amanda,

Please correct your RFC settings to:

Target Host: achotels.cvtools.com

Path Prefix: /servicios/export/CvtoolsExportService.php

Service No: 443

Then try your connection again.

Hope this helps,

Former Member
0 Kudos

Hi Amanda,

--> "wrong content length in response header"

That line makes me think that it's quite probable that your web service is not working as expected, or both PI and the web service don't agree on the character set.

I faced a similar problem related with content length. An R3 system was sending a message via SOAP adapter, and PI was rejecting it when it had special characters like ú or ü. These characters have 2 bytes length in UTF-8, instead of one byte for ascii characters. The SOAP message that the R3 system was sending had the content length calculated erroneously (it was counting those special characters as just one byte instead of two).

You should make sure that the web service is calculating correctly the content-length according to the character set it uses to send the response to PI, and that both systems are using the same character encoding

Edited by: Jorge Lopez on Nov 11, 2009 6:11 PM

markangelo_dihiansan
Active Contributor
0 Kudos

Hi,

Could you please share your configuration for the following parameters:

URL:

Target Host:

Path Prefix:

Service No:

Maybe the code 110 error you are getting is because of your config.