WebService sample working ok

General discussion forum about all things older Team Developer versions.
Also version independent Q&A can be placed here.
landaware
Argentina
Posts: 8
Joined: 30 Jul 2017, 18:27
Location: Argentina

WebService sample working ok

Post by landaware » 05 Jun 2018, 19:21

Hi,
Does someone have an example that can share of a web service working fine, based on soap and coded with centura mainly 3.0?

Thanks
Regards

thomas.uttendorfer
Site Admin
Site Admin
Germany
Posts: 55
Joined: 05 Mar 2017, 17:19
Location: Munich Germany

Re: WebService sample working ok

Post by thomas.uttendorfer » 06 Jun 2018, 20:29

Hi,
Do ou want to write a Soap-WS with Td3 or do you want to consume an existing WS?
Regards Thomas
Thomas Uttendorfer
[ frevel & fey ] Software-System GmbH
https://thomasuttendorfer.wordpress.com/

landaware
Argentina
Posts: 8
Joined: 30 Jul 2017, 18:27
Location: Argentina

Re: WebService sample working ok

Post by landaware » 07 Jun 2018, 11:50

Hi Thomas,

At the moment only consume an existing WS.

Thanks and regards

thomas.uttendorfer
Site Admin
Site Admin
Germany
Posts: 55
Joined: 05 Mar 2017, 17:19
Location: Munich Germany

Re: WebService sample working ok

Post by thomas.uttendorfer » 08 Jun 2018, 10:01

Hi,
I've done that with writing a wrapper in C#, expose the functionality as a COM-object and consume this from TD3. Is that an option for you?
Regards Thomas
Thomas Uttendorfer
[ frevel & fey ] Software-System GmbH
https://thomasuttendorfer.wordpress.com/

Dave Rabelink
Founder/Site Admin
Founder/Site Admin
Netherlands
Posts: 448
Joined: 24 Feb 2017, 09:12
Location: Gouda, The Netherlands

Re: WebService sample working ok

Post by Dave Rabelink » 08 Jun 2018, 17:27

I have quickly created a simple example.

It works in all TD versions starting from TD21 (the sample is saved in TD21 text format).

It uses a public webservice located here:

http://www.dneonline.com/calculator.asmx

It offers 4 simple services (add, subtract, divide and multiply).
I implemented the Add service.

It uses the MSXML2_ServerXMLHTTP60 COM component.
(The complete library was generated using ActiveX Explorer)

The sample loads XML text into a DOM document and uses that as request body.
When executed, the status will be fetched (eg OK = HTTP 200)

The response will be displayed as XML text.

WebServiceTester.png

The sample can be downloaded here:

http://samples.tdcommunity.net/index.ph ... onsume.zip

BEWARE that the sample should be able to connect to the webservice. In most companies a firewall will block the request.
You do not have the required permissions to view the files attached to this post.
Regards,
Dave Rabelink

Image
Articles and information on Team Developer Tips & Tricks Wiki
Download samples, documents and resources from TD Sample Vault
Videos on TDWiki YouTube Channel

FRBhote
India
Posts: 85
Joined: 09 Mar 2017, 05:32
Location: Hyderabad, India

Re: WebService sample working ok

Post by FRBhote » 09 Jun 2018, 05:32

facebook-like.png
You do not have the required permissions to view the files attached to this post.

Riuks
Estonia
Posts: 4
Joined: 10 Mar 2017, 07:41
Location: Tallinn, Estonia

Re: WebService sample working ok

Post by Riuks » 11 Jun 2018, 20:32

Just no words! super. Thank U Dave 8-) .

Return to “General Discussion”

Who is online

Users browsing this forum: Ccbot [Crawler] and 0 guests