cancel
Showing results for 
Search instead for 
Did you mean: 

Use Sender SOAP Channel to call http resource

AntonioSanz
Active Participant
0 Kudos

Hi all,

I'm trying to call a http web page to retrieve the html content and parse it in sap xi. I have use a SOAP Sender Channel configured with the url and the check "Do not use SAP envelope" checked.

And I get the next error:

<?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>XIAdapter</SAP:Category>

<SAP:Code area="HTTP">ADAPTER.HTTP_EXCEPTION</SAP:Code>

<SAP:P1 />

<SAP:P2 />

<SAP:P3 />

<SAP:P4 />

<SAP:AdditionalText>HTTP 405 Method Not Allowed</SAP:AdditionalText>

<SAP:ApplicationFaultMessage namespace="" />

<SAP:Stack />

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

</SAP:Error>

Any Idea?

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

bhavesh_kantilal
Active Contributor
0 Kudos

Shouldn't you be using the Receiver SOAP adapter?

Regards

Bhavesh

AntonioSanz
Active Participant
0 Kudos

I'm not sure if what I'm trying to do is possible with SAP XI. I have previously tryied with HTTP Receiver Adapter but y get a http error "method not allowed". I supposed that the HTTP Receiver Adapter (and SOAP Receiver Adapter) makes a HTTP POST call, and what I actually want to do is a HTTP GET call.

It is possible with the standar adapters o SAP XI?

Thanks.

bhavesh_kantilal
Active Contributor
0 Kudos

Hi,

You are correct when you say both HTTP and SOAP adapters use HTTP POST.

To fire a HTTP Get from XI, this blog by Amol Joshi has the exact answer,

<a href="/people/amol.joshi2/blog/2006/06/28/must-fire-a-http-get-from-xi---try-this">Must Fire a HTTP Get From XI - Try This.</a>

Regards

Bhavesh

AntonioSanz
Active Participant
0 Kudos

Thanks to all.

Finally I think there is no way of making a HTTP GET call from SAP XI to a external url without programming.

Cheers.

Antonio.

Answers (1)

Answers (1)

agasthuri_doss
Active Contributor
0 Kudos

Hi,

1)Check whether the url is correct

2)Check with SICF, if the service corresponding to the URL is active.

Regards

Agasthuri Doss