Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Synchronous WebService 2 HTTP (Post) Scenario

Hi,

I am setting up a synchronous WebService to HTTP Scenario.

The WebService-Part works fine, but I still have some trouble with the HTTP Receiver Adapter (sync.)

I wrote my own Server to receive my request from XI to check, looks like that:

**********************************************************

?POST /cgi-bin-mp/aspa/cgidb/aspa/pam/asp.hto HTTP/1.0

content-type: text/plain

content-length: 15

connection: close

accept: /

user-agent: SAP Web Application Server (1.0;640)

host: 164.26.39.30:6799

accept-encoding: gzip

kdnr=19XXXXXXXX

**********************************************************

What I get back from the server then in XI is the following (looks for me like the website, where my given parameter should be used):

<HTML>

<HEAD>

<TITLE>Intranet-Vertriebsunterst&uuml;tzung - Routingtest</TITLE>

</HEAD>

<BODY>

<FORM ACTION="asp.hto" METHOD="GET">

<TABLE>

<TR>

<TD>KdNr</TD>

<TD><INPUT TYPE="TEXT" NAME="kdnr"

VALUE="1920081138">

</TD>

</TR>

<TR>

<TD></TD>

<TD><INPUT TYPE="SUBMIT" VALUE="Routing"></TD>

</TR>

</TABLE>

</FORM>

</BODY>

*********************************************************

If I try to test the same with a HTTP client Tool where the sent message looks pretty much the same (like from XI):

?POST HTTP/1.1

Host: localhost

Accept: /

Content-Length:15

kdnr=192XXXXXXXXX

I get a correct answer in XML format like this...

*********************************************************

HTTP/1.1 200 OK\r\n

Date: Wed, 22 Mar 2006 17:18:06 GMT\r\n

Server: Apache/2.0.53 (Unix) mod_ssl/2.0.53 OpenSSL/0.9.7d mod_perl/1.999.21 Perl/v5.8.6\r\n

Connection: close\r\n

Content-Type: text/html\r\n

\r\n

<?xml version="1.0" encoding="UTF-8" ?>\n

<env>\n

<kdnr>19XXXXXXXX</kdnr>\n

<ozt>4489</ozt>\n

<amsteam>55</amsteam>\n

<amsstandort>DET Entenhausen</amsstandort>\n

<amsbearbeiter>Micky, Maus</amsbearbeiter>\n

<rufnr>+49 9999 10097201</rufnr>\n

<faxrufnr>+49 9999 92591132</faxrufnr>\n

<email>Micky.Mausle@disney.com</email>\n

<fehler>\n

<id>10</id>\n

<beschreibung>gesicherte Daten gefunden</beschreibung>\n

</fehler>\n

</env>

*********************************************************

Did I miss something using the HTTP-Adapter synchronous?

Is the HTTP adapter good for a sync. POST?

I got the feeling, I get the requested WebSite (with the field and button back), instead the data, but the Client Tool gets an correct answer ?!

Thanks in advance.. (Answers will be rewarded : ))

Daniel

Former Member
Not what you were looking for? View more on this topic or Ask a question