on 09-03-2014 2:42 PM
Hi,
I try to get data via HTTP-XML connection on Agentry.
1) I defined HTTPXML Sytem Connection then added Validate User Request for GET method with URL: http://www.thomas-bayer.com/sqlrest/PRODUCT/
I did not defined Request Argumanets because there is no need authentication when I ty this url on browser.
2) Then I added HTTP-XML step to steps and defined this step for Object-MainObject. Because I want to fill a collection under MainObject.
I also did not defined Request Argumanets for this step.
3) Here is Agentry.ini
[HTTPXML-2]
name=HTTP-XML Back End
authenticationCertificateStore=
authenticationCertificateStorePassword=
authenticationCertificateStorePasswordEncoded=false
autoDequote=true
;baseURL=http://vkt-sap-erp01.vektora.com:8010/
;baseURL=http://vkt-sap-erp01.vektora.com:8010/sap/opu/odata/sap/z_catsdb_demo_srv/
baseURL=http://www.thomas-bayer.com/sqlrest
basicAuthenticationPassword=
basicAuthenticationPasswordEncoded=false
basicAuthenticationUserID=
constantsFile=httpxml_sd.ini
enableAuthentication=false
enablePreviousUserAuthentication=false
httpConnectTimeout=60
httpReceiveTimeout=300
httpResolveTimeout=60
httpSendTimeout=300
listenOn=8282
timeout=300
timeZoneName=
useSSL=false
xmlAllowXSLTScript=true
xmlNamespaces=http://www.w3.org/1999/xlink
xmlResolveExternals=true
xmlValidateOnParse=true
The problem is that during transmit, Fetch (Server Exchange Step : HTTPXML Step) gives error.
On log files it says ; Exception during fetch server exchange step for fetch 'ProFetch': HTTPXMLBackEndError: Error sending the Object Step HTTP request 'NewHTTPXMLStep1': HTTP/1.1 400 Bad Request in HTTPXMLBackEndUserConnection::doObjectRequest at backEndUserFetchConnection.cpp:96
Best Regards,
Serkan DEMIR
The URL is build by:
<BaseURL><STEPURL>
So you don't need to add the part of the URL that will be in the Agentry.ini to the step, ie: http://www.thomas-bayer.com/sqlrest
And it should just be: /PRODUCT
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.