Page 1 of 2

Webservices calling methods

Posted: Thu Nov 23, 2006 8:55 am
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

Posted: Sun Nov 26, 2006 3:25 pm
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.

Webservices calling methods

Posted: Sun Nov 26, 2006 11:49 pm
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

Posted: Mon Nov 27, 2006 8:41 am
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.

Webservices calling methods

Posted: Mon Nov 27, 2006 9:28 am
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]

Posted: Mon Nov 27, 2006 10:44 am
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.

Posted: Tue Nov 28, 2006 5:52 am
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

Posted: Wed Nov 29, 2006 11:15 am
by janhess
is your webservice expecting an http request or a SOAP message - that's what you use the wsdl for.

Posted: Thu Nov 30, 2006 7:26 am
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.

Posted: Fri Dec 01, 2006 9:30 am
by janhess
looks like yo're trying to connect to https using http. I think you need the security option.

Webservices calling methods

Posted: Mon Dec 04, 2006 1:37 am
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

Posted: Mon Dec 04, 2006 5:29 am
by janhess
Datastage TX security option

Webservices calling methods

Posted: Mon Dec 04, 2006 7:12 am
by kbalaji123
janhess wrote:Datastage TX security option


where i have to check and were i have to give security options in DSTX?

Posted: Mon Dec 04, 2006 7:14 am
by janhess
you buy it

Posted: Mon Dec 04, 2006 7:40 am
by kbalaji123
is it posible to clarify clearly what i have to buy