on 10-23-2013 11:41 AM
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
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
I do not have PI 7.31, so I'm not sure if the HTTP Sender adapter supports polling.
Hope this helps,
Mark
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.