cancel
Showing results for 
Search instead for 
Did you mean: 

PI 7.31 sender http adapter GET method ?

former_member229036
Participant
0 Kudos

Dear All

my PI  version is 7.31 only java single stack,  without abap stack

my senario :  http -- pi - abap proxy.

i have to receve data from legacy system by HTTP GET URL Method.  so i am testing  sender HTTP_AAE adapter.

adapter type  : HTTP_AAE

message protocol : GET

Adapter Engine     :  Central Adapter Engine

in general tab,  Main Payload Parameter Name : main-payload

this is all my configruation for sender http

the following URL is correct?

In JAVA Source

String

  url = "http://pidev:50600/HttpAdapter/HttpMesageServlet?InterfaceNamespace=http://xx.com/aa&interface=aaa_s...&qos=BE&main-payload=<MATNR=11><MAKTX=TEST>";

I GOT error

Testing 1 - Send Http GET request

Sending 'GET' request to URL :

http://pidev:50600/HttpAdapter/HttpMesageServlet?interfaceNamespace=http://xx.com/aa&interface=aaa_s...&qos=BE&main-payload=<MATNR=11><MAKTX=TEST>";

>
Response Code : 404
Exception in thread "main" java.io.FileNotFoundException:

http://pidev:50600/HttpAdapter/HttpMesageServlet?InterfaceNamespace=http://xx.com/aa&interface=aaa_s...&qos=BE&main-payload=<MATNR=11><MAKTX=TEST>";

>
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection$6.run(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection$6.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.net.www.protocol.http.HttpURLConnection.getChainedException(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at httptest.sendGet(httptest.java:54)
at httptest.main(httptest.java:23)
Caused by: java.io.FileNotFoundException:

http://pidev:50600/HttpAdapter/HttpMesageServlet?InterfaceNamespace=http://xx.com/aa&interface=aaa_s...&qos=BE&main-payload=<MATNR=11><MAKTX=TEST>";

>
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at java.net.HttpURLConnection.getResponseCode(Unknown Source)
at httptest.sendGet(httptest.java:49)
... 1 more

Accepted Solutions (0)

Answers (1)

Answers (1)

markangelo_dihiansan
Active Contributor
0 Kudos

Hello David,

I think the URL should point to the system where you are retrieving information. See Michal's example of using SOAP Axis to retrieve information from a website using HTTP GET

http://scn.sap.com/community/pi-and-soa-middleware/blog/2012/01/05/michals-pi-tips-exchange-rates-fr...

I do not have PI 7.31, so I'm not sure if the HTTP Sender adapter supports polling.

Hope this helps,

Mark