Webservices calling methods

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

Moderators: chulett, rschirm

kbalaji123
Participant
Posts: 17
Joined: Tue Oct 24, 2006 4:20 am
Location: Bangalore

Webservices calling methods

Post by kbalaji123 »

Hi all

I am new to DSTX, our requirement is to connect to webservices(webpage) and retrieve data.

as per pdf's i understand that through event server and event agent using http adapters we can connect to webservices .

our client is saying that without using event server you can develop static maps and run is it posible to do this.

can any one suggest best method to connect to webservices.

Thanks
Balaji
jvmerc
Participant
Posts: 94
Joined: Tue Dec 02, 2003 12:57 pm

Post by jvmerc »

If you are initiating the transaction you shouldn't require the event server.

You do need the ES (or equivelant service) if someone/something else is initiating the transaction and you want to listen for it.

If once you've initiated the transaction you need to wait for a response, use runmaps. Map1 builds the transaction and executes the transmission when it runs map2. Map2 should be able to capture responses. Used to be an example with the install.

Also, I'm not sure why you'd need the EA if you are initiating the transaction. The EA simple holds up a document flag that the ES watches for. If the flag is recognized by the ES it will, with proper instruction from your maps, return a response back to the EA with a return address. The EA then uses the return address from the responding map to response to the appropriate initiating address.
kbalaji123
Participant
Posts: 17
Joined: Tue Oct 24, 2006 4:20 am
Location: Bangalore

Webservices calling methods

Post by kbalaji123 »

Hi Jvmerc


Thanks for kind information .

kindly let me know , i have WSDL and XML schema's using which one i can connect to website ??

For Ex: Transactions.customers.xsd and
Transactions.Employees. XSD

I can able to import these schemas as type trees . using these type tree sources only i can connect to website or using wsdl file to connect to website? and also confirm that i can give exact url path for whether schema located in website or i can give simple url for that website?

Pls clarify these doubts to me it is very helpful for me.


Regards
Balaji
jvmerc
Participant
Posts: 94
Joined: Tue Dec 02, 2003 12:57 pm

Post by jvmerc »

I'm not sure what to tell you here other than both should work. I haven't actually tried initiating a transaction the way you sound like you need. Ours are setup with a secure connection and the page we hit is static. I defined my tree based on their page and capture the page they respond with.

There are probably better people to answer this parrt of your question.
kbalaji123
Participant
Posts: 17
Joined: Tue Oct 24, 2006 4:20 am
Location: Bangalore

Webservices calling methods

Post by kbalaji123 »

jvmerc wrote:Ours are setup with a secure connection and the page we hit is static. I defined my tree based on their page and capture the page they respond with.

Can you tell me whether you defined type tree manualy or imported from XML schema? Is it posible to tell briefly how you are connected to webpage??

Thanks
Balaji
[/quote]
jvmerc
Participant
Posts: 94
Joined: Tue Dec 02, 2003 12:57 pm

Post by jvmerc »

If it's an xml doc you should be able to import via type designer. I manually defined my tree based on what our needs were and the page on the other end.

I used the tree as output, populated it and posted to their URL while executing a runmap. the runmap then listens for the response. The response requires a new tree defined based on their response page.

To be honest I just played with it a little. We have a TP that uses HTTPS and their interface is manual. I wanted to see howmuch work it would be to automate. As part of a separate project for the same TP I found a better way to transfer data via a matrix they had. For the most part I use the EA and listen for activity and respond.
kbalaji123
Participant
Posts: 17
Joined: Tue Oct 24, 2006 4:20 am
Location: Bangalore

Post by kbalaji123 »

In your scenario whether you are taken source as HTTP adapter to connect to website?

I am not clear in DSTX how to connect to webpage?? and also let me know what are all DSTX components required to connect to webpage?

In map desigenr how you designed maps to connect for webpage??

pls answer my queries

Thanks
Balaji
janhess
Participant
Posts: 201
Joined: Thu Sep 18, 2003 2:18 am
Location: UK

Post by janhess »

is your webservice expecting an http request or a SOAP message - that's what you use the wsdl for.
jvmerc
Participant
Posts: 94
Joined: Tue Dec 02, 2003 12:57 pm

Post by jvmerc »

Sorry for slow response. am out of office and will continue to be for next few days....

Seems like there's an example of this provided with the tool.... probably in a folder like "\examples\adapters\http". I saw it in the 8.0 release as well as 6.7 and 6.0. Don't think its changed much and it's pretty basic.
janhess
Participant
Posts: 201
Joined: Thu Sep 18, 2003 2:18 am
Location: UK

Post by janhess »

looks like yo're trying to connect to https using http. I think you need the security option.
kbalaji123
Participant
Posts: 17
Joined: Tue Oct 24, 2006 4:20 am
Location: Bangalore

Webservices calling methods

Post by kbalaji123 »

janhess wrote:looks like yo're trying to connect to https using http. I think you need the security option.

Which type of security option it is website security option otherwise internet proxy server security option pls clarify the same.

Thanks
Balaji
janhess
Participant
Posts: 201
Joined: Thu Sep 18, 2003 2:18 am
Location: UK

Post by janhess »

Datastage TX security option
kbalaji123
Participant
Posts: 17
Joined: Tue Oct 24, 2006 4:20 am
Location: Bangalore

Webservices calling methods

Post by kbalaji123 »

janhess wrote:Datastage TX security option


where i have to check and were i have to give security options in DSTX?
janhess
Participant
Posts: 201
Joined: Thu Sep 18, 2003 2:18 am
Location: UK

Post by janhess »

you buy it
kbalaji123
Participant
Posts: 17
Joined: Tue Oct 24, 2006 4:20 am
Location: Bangalore

Post by kbalaji123 »

is it posible to clarify clearly what i have to buy
Post Reply