cancel
Showing results for 
Search instead for 
Did you mean: 

SAP-XI-Webservice scenario

Former Member
0 Kudos
54

Hi,

I have following scenario: SAP triggers a proxy to XI which calls a webservice. Right now proxy from SAP reaches XI, however i get following error when trying to consume the web service on third party server : com.sap.aii.af.ra.ms.api.DeliveryException: Connection closed by remote host.

This is a secure webservice for which we have done neccessary configuration on XI side. Not sure if this error is because of something missing in the configuration or something else.

The target url in SOAP adapter which points to the wsdl is viewable in browser.

Please advise.

Thanks

Anand

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

I checked the "Do Not Use SOAP Envelope" option in the comm. channel and now i get follwoing error:

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

- <!-- Inbound Message

-->

- <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

- <soapenv:Body>

- <soapenv:Fault>

<faultcode>soapenv:Server.userException</faultcode>

<faultstring>org.xml.sax.SAXException: Bad envelope tag: </faultstring>

- <detail>

<ns1:hostname xmlns:ns1="http://xml.apache.org/axis/">xxxx.xx.temp.com</ns1:hostname>

</detail>

</soapenv:Fault>

</soapenv:Body>

</soapenv:Envelope>

Former Member
0 Kudos

Hi Anand,

I am getting the same problem , " the webservice has sent empty response " can you please tell me procedure how you solved the problem ?? waiting for your response

thanks

Sangeet

Former Member
0 Kudos

Hi,

The application_error usually occurs when the request message that is being sent to the webservice is not correct or the url specified is not right.

The error also specifies <ApplicationFaultMessage> as "hostname".

This could mean that you have not specified the right soap url in the adapter.

The url to be specified here is not the wsdl url, but the application url.

Look into the wsdl provided to you for more information, on the right url to use.

Regards,

Smitha.

Former Member
0 Kudos

Hi,

Take a look at this:

/people/siva.maranani/blog/2005/09/03/invoke-webservices-using-sapxi

1.Did you import the right WSDL to externel defenition?

2.Are the logon Data correct in SOAP Adapter?

3.Can you test the Webservice with some other application?

Regards,

Robin

Former Member
0 Kudos

Hi Robin,

Thanks for responding:

1. Yes I have imported the correct WSDL.

2. I can see the WSDL using the login credentials mentioned in SOAP adapter.

3. I tested the WSDL with XMLSPY and it gives following message "The webservice returned empty response". I think that means it is able to reach the webservice, however from XI i guess it is not able to reach the webservice at all

Former Member
0 Kudos

Hi,

for me it looks as well that he didn't reach the webservice and get the timeout.

Maybe there are some more informatin in RWB or XI Trace.

Take a look at communication channel monitoring.

Regards,

Robin

Former Member
0 Kudos

Hi,

Could please furnish further details. Trace (from SXMB_MONI) or Message AUDIT from Message Display tool...

Thanks

Satish

Former Member
0 Kudos

Hi,

Following is the error message in sxmb_moni

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

- <!-- Call Adapter

-->

- <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: Connection closed by remote host.</SAP:AdditionalText>

<SAP:ApplicationFaultMessage namespace="" />

<SAP:Stack />

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

</SAP:Error>

Shabarish_Nair
Active Contributor
0 Kudos

Check if your network has a proxy. In case you have one, provide that detail in your adapter and also if any user authentication is required for the proxy inculde that too...

Former Member
0 Kudos

Hi,

It seems as network issue

Please check with your network team that this webservice is accessible.

If you are using internet please provide proxy details and user id password in receiver soap adapter.

Thanks,

Tuhin

Former Member
0 Kudos

HI All,

I think the error that i was getting till now is resolved.. however I get a different error now, following is the error:

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

- <!-- Request Message Mapping

-->

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

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

<SAP:Code area="UNKNOWN">APPLICATION_ERROR</SAP:Code>

<SAP:P1 />

<SAP:P2 />

<SAP:P3 />

<SAP:P4 />

<SAP:AdditionalText>application fault</SAP:AdditionalText>

<SAP:ApplicationFaultMessage namespace="http://xml.apache.org/axis/">hostname</SAP:ApplicationFaultMessage>

<SAP:Stack />

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

</SAP:Error>

Former Member
0 Kudos

HI Anand,

Please copy your XML payload paste it in repository->message mapping and click on Test tab .

Are you getting any error while testing message mapping?

Thanks,

Tuhin

Former Member
0 Kudos

Hi,

Probably there is an issue when your webservice executes on the application server.

Is it running on an abap stack ? If yes, can you check st22 for dumps ?

rgds

Dirk