http adapter

Formally known as "Mercator Inside Integrator 6.7", DataStage TX enables high-volume, complex transactions without the need for additional coding.

Moderators: chulett, rschirm

Post Reply
dstxeai
Participant
Posts: 2
Joined: Mon Mar 10, 2008 1:23 am

http adapter

Post by dstxeai »

Hi,

I have a requirement where in I want to pass an URL(http request) as input to a map through command line. I am using a shell script to execute my map and to pass the required input parameters. I am not able to achieve this.

Source Adapter: HTTP.
Target Adapter: File

Command that I am trying to execute from sunsolaris box:

mercator HTTPGet.mmc \
-IAHTTP1 "'-t -URL http://www.google.co.in'" \
-OF1 test.html

I am getting the below error. Please suggest me how to pass the http request through command line.

Mercator(TM) Solaris(TM) Execution Engine - version 2.1.1(551)
Copyright (C) 1994-1999 TSI International Software Ltd.

Map file: httptest.mmc -IAHTTP1 '-t -URL http://www.google.co.in' -OF1 test.html
In # 1: 0 Out # 0: 0 Time: 0:00
Map could not complete (12): Source not available (0.000 seconds)


Error detected in running map, exiting.


Any help would be highly appreciated.

Regards
DSTXEAI
janhess
Participant
Posts: 201
Joined: Thu Sep 18, 2003 2:18 am
Location: UK

Post by janhess »

I don't think you need the single quotes for the input override.
Post Reply