Sorry for the delay. Was not able to respond earlier.
As this is only the first step in setting up the AL and make the first and IBM suggests making small steps in setting up AL's, I expected that default settings as below would be sufficient.
I have also tried the other content types, but still get the connection timed out.
Settings of the connector are:
<Configuration>
<InheritFrom>[parent]</InheritFrom>
<ModTime>1512112999241</ModTime>
<parameter name="contentType">text/plain; charset=US-ASCII</parameter>
<parameter name="debug">true</parameter>
<parameter name="url">https://maps.googleapis.com/maps/api/distancematrix/xml</parameter>
</Configuration>
OUTPUT IN THE CONSOLE:
07:50:15,212 INFO - [TestRestService] CTGDIS058I Connector com.ibm.di.connector.HTTPClientConnector inherits from [parent].
07:50:15,212 INFO - [TestRestService] CTGDIS187I Loaded com.ibm.di.connector.HTTPClientConnector, 2.2-di7.1.1 1.53.1.3, 2011/08/02.
07:50:15,228 INFO - [TestRestService] CTGDIS064I Loading Attribute Map.
07:50:15,228 INFO - [TestRestService] CTGDIS065I Load Hooks.
07:50:15,228 INFO - [TestRestService] CTGDIS044I Initializing Connector.
07:50:15,244 INFO - [TestRestService] CTGDIS158I Registering Script Beans.
07:50:15,244 INFO - [TestRestService] CTGDIS484I Connector com.ibm.di.connector.HTTPClientConnector: 2.2-di7.1.1 1.53.1.3, 2011/08/02.
07:50:15,244 INFO - [TestRestService] CTGDIS046I Initialization finished.
07:50:15,244 INFO - CTGDIS087I Iterating.
07:50:15,244 INFO - CTGDIS086I No iterator in AssemblyLine, will run single pass only.
07:50:15,244 INFO - CTGDIS092I Using runtime provided entry as working entry (first pass only).
07:50:15,259 INFO - [TestRestService] CTGDIS504I *Result of attribute mapping*
07:50:15,259 INFO - [TestRestService] CTGDIS505I The 'conn' object
07:50:15,259 INFO - [TestRestService] CTGDIS003I *** Start dumping Entry
07:50:15,259 INFO - Operation: generic
07:50:15,259 INFO - Entry attributes:
07:50:15,259 INFO - [TestRestService] CTGDIS004I *** Finished dumping Entry
07:50:15,259 INFO - [TestRestService] CTGDIS506I The 'work' object
07:50:15,259 INFO - [TestRestService] CTGDIS003I *** Start dumping Entry
07:50:15,259 INFO - Operation: generic
07:50:15,259 INFO - Entry attributes:
07:50:15,275 INFO - [TestRestService] CTGDIS004I *** Finished dumping Entry
07:50:36,325 INFO - [TestRestService] CTGDIS495I handleException , callreply, java.net.ConnectException: Connection timed out: connect
07:50:36,325 ERROR - [TestRestService] CTGDIS810E handleException - cannot handle exception , callreply
java.net.ConnectException: Connection timed out: connect
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:381)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:243)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:230)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:377)
at java.net.Socket.connect(Socket.java:539)
at com.ibm.jsse2.SSLSocketImpl.connect(SSLSocketImpl.java:774)
at com.ibm.di.connector.HTTPClientConnector.sendRequest(HTTPClientConnector.java:339)
at com.ibm.di.connector.HTTPClientConnector.queryReply(HTTPClientConnector.java:205)
at com.ibm.di.server.AssemblyLineComponent.executeOperation(AssemblyLineComponent.java:3348)
at com.ibm.di.server.AssemblyLineComponent.callreply(AssemblyLineComponent.java:2099)
at com.ibm.di.server.AssemblyLine.msExecuteNextConnector(AssemblyLine.java:3750)
at com.ibm.di.server.AssemblyLine.executeMainStep(AssemblyLine.java:3351)
at com.ibm.di.server.AssemblyLine.executeMainLoop(AssemblyLine.java:2960)
at com.ibm.di.server.AssemblyLine.executeMainLoop(AssemblyLine.java:2943)
at com.ibm.di.server.AssemblyLine.executeAL(AssemblyLine.java:2912)
at com.ibm.di.server.AssemblyLine.run(AssemblyLine.java:1311)
07:50:36,325 ERROR - CTGDIS266E Error in NextConnectorOperation. Exception occurred: java.net.ConnectException: Connection timed out: connect
java.net.ConnectException: Connection timed out: connect
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:381)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:243)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:230)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:377)
at java.net.Socket.connect(Socket.java:539)
at com.ibm.jsse2.SSLSocketImpl.connect(SSLSocketImpl.java:774)
at com.ibm.di.connector.HTTPClientConnector.sendRequest(HTTPClientConnector.java:339)
at com.ibm.di.connector.HTTPClientConnector.queryReply(HTTPClientConnector.java:205)
at com.ibm.di.server.AssemblyLineComponent.executeOperation(AssemblyLineComponent.java:3348)
at com.ibm.di.server.AssemblyLineComponent.callreply(AssemblyLineComponent.java:2099)
at com.ibm.di.server.AssemblyLine.msExecuteNextConnector(AssemblyLine.java:3750)
at com.ibm.di.server.AssemblyLine.executeMainStep(AssemblyLine.java:3351)
at com.ibm.di.server.AssemblyLine.executeMainLoop(AssemblyLine.java:2960)
at com.ibm.di.server.AssemblyLine.executeMainLoop(AssemblyLine.java:2943)
at com.ibm.di.server.AssemblyLine.executeAL(AssemblyLine.java:2912)
at com.ibm.di.server.AssemblyLine.run(AssemblyLine.java:1311)
07:50:36,325 INFO - CTGDIS100I Printing the Connector statistics.
07:50:36,325 INFO - [TestRestService] Errors:1
07:50:36,450 INFO - [DumpWorkEntry] Calls: 0
07:50:36,450 INFO - CTGDIS104I Total: Errors:2.
07:50:36,450 INFO - CTGDIS101I Finished printing the Connector statistics.
07:50:36,465 ERROR - CTGDIS077I Failed with error: Connection timed out: connect.
--
This e-mail and its attachments are confidential and may contain legally
privileged information. The information in this e-mail is intended solely
for the addressee(s). If you are not the intended recipient, please notify
the sender and delete it from your system. Any disclosure, copying,
distribution or any other action taken or omitted to be taken to prevent
any information becoming public, is prohibited and may be unlawful.
Pon Power BV has its registered office in Papendrecht and is listed in the
Commercial Register of Chamber of Commerce in Rotterdam under file number
23060463. All legal relations of Pon Power will be governed by our general
conditions and they will upon request be made available without charge. The
conditions are deposited at the Chamber of Commerce Rotterdam and can be
found on www.pon-cat.com. Pon Power rejects explicitly the applicability of
any general terms and conditions which its contractual parties may use.
Jurisdiction: District Court Dordrecht, Netherlands.