cancel
Showing results for 
Search instead for 
Did you mean: 

Unknown Host Exception using SOAP Axis Receiver Adapter

0 Kudos

Hi Experts,

Mine is an RFC to SOAP Axis synchronous scenario in SAP PI 7.0.

We are trying to connect to a third system using webservices and getting below error: We are using certificates which are alredy installed on the PI server.

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

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

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

<SAP:Code area="MESSAGE">GENERAL</SAP:Code>
<SAP:P1 />
<SAP:P2 />
<SAP:P3 />
<SAP:P4 />
<SAP:AdditionalText>com.sap.aii.af.ra.ms.api.DeliveryException: ; nested exception is: java.net.UnknownHostException: abc.xyz.corpintra.net</SAP:AdditionalText>
<SAP:ApplicationFaultMessage namespace="" />
<SAP:Stack />
<SAP:Retry>M</SAP:Retry>

</SAP:Error>

We checked with N/w team as per them, PI server IP and the third system's IP are in the same n/w and there is no firewall between them.

So need of opening the port etc.

If we install the certificates in browser and try to reach the URL, it works. That means the webservice is fine.

I tried to import the wsdl in SOAP UI, but was not able to, it was giving below error:

I have raised a request to the n/w team to check if the DNS server is able to resolve the IP address from the URL.

Please provide your inputs on what I might be missing or what might be wrong.

This is very critical.

Regards,

Pooja

Accepted Solutions (0)

Answers (4)

Answers (4)

0 Kudos

Hi Experts,

Need your guidance for the issue.

We checked with the target system, they have not received any message.

Please help.

Regards,

Pooja

Harish
Active Contributor
0 Kudos

Hi Pooja,

it seems the problem is with web service. you are able to send the request to webservice but not getting any response (or blank response) from webservice.

Please test the target webservice with SOAP UI (or different tool).

regards,

Harish

praveen_sutra
Active Contributor
0 Kudos

hi Pooja,

Request you to post screenshot for module parameters.

thanks and regards,

Praveen T

0 Kudos

Hi Praveen,

Below is the MTB screen shot.

Please let me know If I am missing anything.

This is really urgent

Regards,

Pooja


Former Member
0 Kudos

Posting a response to this old post as I was also facing similar issue and was able to resolve it following - SAP Note 1039369.

We configured proxy host and port details for the Axis handler(com.sap.aii.adapter.axis.ra.transport.http.HTTPSender).

Please refer to the query "How can I call some service over an HTTP proxy
server?
" in the FAQ for SOAP Axis Adapter It has detailed information with screenshots.

Hope this helps others who are facing similar issue.

Regards

Charan

iaki_vila
Active Contributor
0 Kudos

Hi Pooja,

I think any tag could be missed. First of all try to validate your wsdl, you can find some online tools like www.xmethods.net or validWSDL.com

You said:

If we install the certificates in browser and try to reach the URL, it works. That means the webservice is fine.

Have you test this in PI machine?, the error seems that the PI system hasn't the trust done with the endpoint or this is not reachable from PI. Verify the certificate installation.

Regards.

0 Kudos

Hi Inaki,

In the above wsdl validators, we do not need to give certificates?? Only the URL will do, is it?

Both of then are giving me error (might because I have not given any certificates)

methods

  • WSDLException: faultCode=WSDL Retrieval error: Could not obtain data from connection

validWSDL.com

Please read my reply to Rishi.

Do you think this error might be because of  missing endpoints or improper certificate installation?

Regards,

Pooja

0 Kudos

Also

1) How should I very certificate Installtion? I am able to see and use it in SOAP receiver adapter.

2) How should I verify id the end points are missing in wsdl? I so then how come I was able to impor it into PI.

3) Why are we getting an empty response from target system (as stated in Reply to Rishi)

Regards,

Pooja

praveen_sutra
Active Contributor
0 Kudos

hi Pooja,

Answering to your first question for SOAP UI / WSDL VAlidators you don't need to install certificates explicitly.

AFAIK If you are getting the error this might be because of firewall issue from your network. Please check with networks team.

Answering your second question we had similar scenario where we had to connect to Successfactor (third party system) through a SOAP(Axis adapter). Ours was SAP PI 7.3 system.

for installation of AXIS adapter and channel below mentioned blog would be helpful.

Also please check if your Axis adapter is correctly installed.

hope this helps.

thanks and regards,

Praveen T

0 Kudos

Hi Praveen,

I have already beenthrough that blog.

We have imported the wsdl provided by target system.

Further I am not able to access SOAMANAGER due to rsetricted authorization.

I searched in the wsdl, there is no bindng/port parameter present.

So I should assume that the end points are missing in the wsdl.

Further, In SOAP Adapter URL, I replaced the target system with IP Address and tested.

Now I am no more getting unknown host name exception.

This is a synchronous scenario.

Now we are getting below error during response mapping:

    

SOAP:mustUnderstand="1"> 

<SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>

I assume this is because there is no response from the target system.

The channel shows messgae was set to DLVD.

We have raised a query to target system(if they have received the above message) and waiting for their response.

Do you think this has something to do with the improper wsdl?

Regards,

Pooja

0 Kudos

The entire error:

<SAP:Category>Application</SAP:Category>  

<SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>

<SAP:P1>com/sap/xi/tf/_BookingAPI_Buapnzea_Response_</SAP:P1>

<SAP:P2>com.sap.aii.utilxi.misc.api.BaseRuntimeException</SAP:P2>

<SAP:P3>Parsing an empty source. Root element expected!</SAP:P3>

<SAP:P4 />

<SAP:AdditionalText />

<SAP:ApplicationFaultMessage namespace="" />

<SAP:Stack>com.sap.aii.utilxi.misc.api.BaseRuntimeException thrown during application mapping com/sap/xi/tf/_BookingAPI_Buapnzea_Response_: Parsing an empty source. Root element expected!</SAP:Stack>

<SAP:Retry>N</SAP:Retry>

</SAP:Error>

Former Member
0 Kudos

Hi Pooja

Take the URL and try to open the WSDL in SAOP UI see if works or not.

Make sure that the certificates are properly installed in PI system.

Former Member
0 Kudos

Hi Pooja

In your PI configuration , I assume that you are using the host name .

Have you maintained the complete host name in there ?

Also from your PI system , are you able to ping / telnet the hostname and see if it is getting resolved to IP address . 

If DNS is working , then it should get automatically picked up .

Thanks

Rishi

0 Kudos

Hi Rishi,

I did a ping from PI system to the GO IP address. The ping was successful.

In SOAP Adapter URL, I replaced the target system with IP Address and tested.

Now I am no more getting unknown host name exception.

This is a synchronous scenario.

Now we are getting below error during response mapping:

    

SOAP:mustUnderstand="1"> 

     <SAP:Category>Application</SAP:Category> 

<SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>
<SAP:P1>com/sap/xi/tf/_BookingAPI_Buapnzea_Response_</SAP:P1>
<SAP:P2>com.sap.aii.utilxi.misc.api.BaseRuntimeException</SAP:P2>
<SAP:P3>Parsing an empty source. Root element expected!</SAP:P3>
<SAP:P4 />
<SAP:AdditionalText />
<SAP:ApplicationFaultMessage namespace="" />
<SAP:Stack>com.sap.aii.utilxi.misc.api.BaseRuntimeException thrown during application mapping com/sap/xi/tf/_BookingAPI_Buapnzea_Response_: Parsing an empty source. Root element expected!</SAP:Stack>
<SAP:Retry>N</SAP:Retry>

</SAP:Error>

This is because there is no response from the target system.

The channel shows messgae was set to DLVD.

We have raised a query to target system and waiting for response.

Regards,

Pooja