cancel
Showing results for 
Search instead for 
Did you mean: 

Web service & Soap adapter Examples

Former Member
0 Kudos

Hi everybody,

I want to implement Web service call (like Google or Amazon or BabelFish) via Soap Adapter.

So I need some examples how to implement it.

1. example of web service to use.

2. example of configuring the Soap Adapter.

3. example how to test it via test environment in the Adapter engine in both ways (test sending Web service message & test sending an XI message).

Does anybody have any idea if any documentation is available for this topic ?

Thanks,

Gigi

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Gigi,

An interesting example is to retrieve stock quotes. You can:

1. retrieve the following WSDL from the internet:

http://www.swanandmokashi.com/HomePage/WebServices/StockQuotes.asmx?WSDL

2. import the WSDL into External Definitions in IR. This will be used for your synch inbound interface, request and response.

3. create a synch outbound interface, consisting of a message with an element to enter the stock symbols as request, and stock info message as response.

4. map the request and response messages types.

5. in ID, the communication channel for SOAP adapter must have a couple of entries. Using the WSDL from above:

target URL = http://www.swanandmokashi.com/HomePage/WebServices/StockQuotes.asmx

soap action = http://swanandmokashi.com/GetQuotes

(examine the WSDL to determine where these values are found.)

6. enter proxy info in the communication channel as required to get outside of your company firewall.

Now, for outbound interface from a SOAP client, you will need to generate a WSDL of the synch outbound interface created in step #3 above. Use ID->Tools->Define Web Service...

During this "wizard" process, do not let the system generate the URL, instead use the following format:

http://server:50000/XISOAPAdapter/MessageServlet?channel=party:service:comm-chan-name

replace party, service and comm-chan-name with your configuration.

After the wizard completes, save the WSDL into a file. Give this WSDL file to the SOAP client. This file is all is required by the client.

This sounds complicated for the 1st time, but is really not.

Regards,

Bill

Former Member
0 Kudos

Hi Gigi

I am having proxy generation problems with using the WS runtime on WAS.(not using XI)

Certain elements in the WSDL documents being imported from external partners are preventing the proxies being generated.

Please let me know if you have had a similar problems and know how to handle these exception cases.

Thanks

Marcus