cancel
Showing results for 
Search instead for 
Did you mean: 

unable to create a socket

Former Member
0 Kudos

I have to synchronous scenario Soap <-> PI <-> Soap where I'm sending the data from SAP CRm to Third party server.

I'm getting the follwoing error when executing through SOAP UI :

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>  - <!--

 Inbound Message 

-->

- <SAP:Error SOAP:mustUnderstand="1" xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">

<SAP:Category>XIAdapterFramework</SAP:Category>

<SAP:Code area="MESSAGE">GENERAL</SAP:Code>

<SAP:P1 />

<SAP:P2 />

<SAP:P3 />

<SAP:P4 />

<SAP:AdditionalText>com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.io.IOException: unable to create a socket</SAP:AdditionalText>

<SAP:Stack />

<SAP:Retry>M</SAP:Retry>

</SAP:Error>

There is no URL or port issue.

Please suggest ASAP.

Message was edited by: Agasthuri Doss

Accepted Solutions (1)

Accepted Solutions (1)

aashish_sinha
Active Contributor
0 Kudos

Hi Ashmita,

In target URL of receiver SOAP Adapter, Can you please try with IP:Port/service?

Thanks

Aashish Sinha

Former Member
0 Kudos

Hi,

This error has been resolved after entering the hostname in the dns server.

But now getting the following error :

com.sap.engine.interfaces.messaging.api.exception.MessagingException: SOAP: response message contains an error XIAdapter/PARSING/ADAPTER.SOAP_EXCEPTION - soap fault: The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter http://tempuri.org/:LDetails. The InnerException message was 'There was an error deserializing the object of type System.Collections.Generic.List`1[[LFADetails, App_Code.cnzgrors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]]. The value '?' cannot be parsed as the type 'Int32'.'. Please see InnerException for more details.

Please suggest ASAP.

iaki_vila
Active Contributor
0 Kudos

Hi,

That error is generated for the endpoint application inside the soap:fault tag. The xml structure that you are sending is not correct, have you tried to call directly with SOAPui and to compare the XML generated with the PI one?

It seems that you are skipping some mandatory field, because the endpoint system  can not to desiarilze one object.

Regards,

Answers (2)

Answers (2)

iaki_vila
Active Contributor
0 Kudos

HI Ashmita,

There is no URL or port issue.

Are you sure?, how have you checked it?, have you done a telnet?, have you tried to call directly with SOAPui? have the webservice an operation or specific action?

Regards.

Former Member
0 Kudos

Hi,

This error has been resolved after entering the hostname in the dns server.

But now getting the following error :

com.sap.engine.interfaces.messaging.api.exception.MessagingException: SOAP: response message contains an error XIAdapter/PARSING/ADAPTER.SOAP_EXCEPTION - soap fault: The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter http://tempuri.org/:LDetails. The InnerException message was 'There was an error deserializing the object of type System.Collections.Generic.List`1[[LFADetails, App_Code.cnzgrors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]]. The value '?' cannot be parsed as the type 'Int32'.'. Please see InnerException for more details.

Please suggest ASAP.

Former Member
0 Kudos

Hi Agasthuri,

Have you checked the SOAP connection to the third party also using SOAPUI or another tool? Usually the 'unable to create a socket' message has something to do with the connection.

Is the port open, do you use the correct port?

Is the url correct?

Is the username / password correct?

Regards,

Victor