Quantcast
Channel: Mendix Forum Questions
Viewing all articles
Browse latest Browse all 80936

GB Group (Address Lookup) Web Service

$
0
0

Hi,

I am trying to call a web service to perform an address lookup (UK).

I have created a consumed web service in the modeler, I use the wsld (https://webportal.gb.co.uk/GBPortalWS/GBPortalWSDirect.asmx?wsdl) and it recognise all the methods I can call.

Then, I create a microflow that calls one of the methods (pinpoint) of the consumed web service and set all the parameters.

I have also created a mapping for the response.

I think everything seems ok, however, when I execute the call it doesn't work. I have tested it using the same parameters in SOAP UI and it works perfectly fine, I do not understand why is not working with Mendix. here is the error message I always get.

An error has occurred while handling the request. [User 'Anonymous_8a49dc05-aa0b-4c0c-a905-35f678e8622e' with session id '0e8ea7e8-e2ea-4fac-a802-a0b3ff554c6a' and roles 'Administrator']

--------

com.mendix.modules.microflowengine.MicroflowException: com.sun.xml.ws.client.ClientTransportException: HTTP transport error: java.net.ConnectException: Connection timed out: connect
	at AddressLookup.ACT_CallGBLookup (CallWebservice : 'Call web service 'Pinpoint'')

Advanced stacktrace:
	at com.mendix.modules.microflowengine.MicroflowUtil.processException(MicroflowUtil.java:143)

Caused by: com.mendix.systemwideinterfaces.MendixRuntimeException: com.sun.xml.ws.client.ClientTransportException: HTTP transport error: java.net.ConnectException: Connection timed out: connect
	at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:36)

Caused by: com.sun.xml.ws.client.ClientTransportException: HTTP transport error: java.net.ConnectException: Connection timed out: connect
	at com.sun.xml.ws.transport.http.client.HttpClientTransport.getOutput(HttpClientTransport.java:132)
	at com.sun.xml.ws.transport.http.client.HttpTransportPipe.process(HttpTransportPipe.java:256)
	at com.sun.xml.ws.transport.http.client.HttpTransportPipe.processRequest(HttpTransportPipe.java:184)
	at com.sun.xml.ws.transport.DeferredTransportPipe.processRequest(DeferredTransportPipe.java:137)
	at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:641)
	at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:600)
	at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:585)
	at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:482)
	at com.sun.xml.ws.client.Stub.process(Stub.java:323)
	at com.sun.xml.ws.client.dispatch.DispatchImpl.doInvoke(DispatchImpl.java:192)
	at com.sun.xml.ws.client.dispatch.DispatchImpl.invoke(DispatchImpl.java:218)
	at com.mendix.integration.webservices.call.WebserviceCaller$3.run(WebserviceCaller.java:329)
	at com.mendix.integration.webservices.call.WebserviceCaller$3.run(WebserviceCaller.java:303)
	at java.security.AccessController.doPrivileged(Native Method)
	at com.mendix.integration.webservices.call.WebserviceCaller$1.execute(WebserviceCaller.java:267)
	at com.mendix.integration.webservices.call.WebserviceCaller$1.execute(WebserviceCaller.java:264)
	at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:32)
	at com.mendix.util.classloading.Runner$1.run(Runner.java:21)
	at java.security.AccessController.doPrivileged(Native Method)
	at com.mendix.util.classloading.Runner.runUsingClassLoaderOf(Runner.java:17)
	at com.mendix.integration.webservices.call.WebserviceCaller.call(WebserviceCaller.java:272)
	at com.mendix.integration.webservices.call.WebserviceCaller.call(WebserviceCaller.java:133)
	at com.mendix.integration.webservices.WebserviceModuleImpl.callWebservice(WebserviceModuleImpl.java:201)
	at com.mendix.integration.internal.InternalIntegrationImpl.callWebservice(InternalIntegrationImpl.scala:275)
	at com.mendix.integration.actions.microflow.CallWebServiceAction.execute(CallWebServiceAction.scala:96)
	at com.mendix.modules.microflowengine.microflow.impl.MicroflowObject.execute(MicroflowObject.java:47)
	at com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAfterBreakingIfNecessary(MicroflowImpl.java:192)
	at com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAction(MicroflowImpl.java:149)
	at com.mendix.systemwideinterfaces.core.UserAction.execute(UserAction.java:49)
	at com.mendix.core.actionmanagement.CoreAction.doCall(CoreAction.java:260)
	at com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:248)
	at com.mendix.core.actionmanagement.ActionManager$1.execute(ActionManager.java:168)
	at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:32)
	at com.mendix.core.actionmanagement.ActionManager.executeSync(ActionManager.java:174)
	at com.mendix.core.component.InternalCore.execute(InternalCore.java:377)
	at com.mendix.webui.actions.client.ExecuteAction.execute(ExecuteAction.java:135)
	at com.mendix.webui.requesthandling.ClientRequestHandler$$anonfun$handleRequest$1.apply$mcV$sp(ClientRequestHandler.scala:324)
	at com.mendix.webui.requesthandling.ClientRequestHandler$$anonfun$handleRequest$1.apply(ClientRequestHandler.scala:317)
	at com.mendix.webui.requesthandling.ClientRequestHandler$$anonfun$handleRequest$1.apply(ClientRequestHandler.scala:317)
	at com.mendix.core.session.Worker$$anonfun$receive$3$$anonfun$2$$anon$1.execute(ActionDispatching.scala:144)
	at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:32)
	at com.mendix.core.session.Worker$$anonfun$receive$3$$anonfun$2.apply(ActionDispatching.scala:146)
	at scala.util.Try$.apply(Try.scala:191)
	at com.mendix.core.session.Worker$$anonfun$receive$3.applyOrElse(ActionDispatching.scala:140)
	at akka.actor.Actor$class.aroundReceive(Actor.scala:465)
	at com.mendix.core.session.Worker.aroundReceive(ActionDispatching.scala:136)
	at akka.actor.ActorCell.receiveMessage(ActorCell.scala:516)
	at akka.actor.ActorCell.invoke(ActorCell.scala:487)
	at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:238)
	at akka.dispatch.Mailbox.run(Mailbox.scala:220)
	at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:393)
	at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
	at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
	at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
	at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)

Caused by: java.net.ConnectException: Connection timed out: connect
	at java.net.TwoStacksPlainSocketImpl.socketConnect(Native Method)
	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
	at java.net.Socket.connect(Socket.java:589)
	at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:668)
	at sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:173)
	at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
	at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)
	at sun.net.www.http.HttpClient.openServer(HttpClient.java:527)
	at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:264)
	at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:367)
	at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191)
	at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1148)
	at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:989)
	at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:987)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.AccessController.doPrivilegedWithCombiner(AccessController.java:782)
	at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:986)
	at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177)
	at sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(HttpURLConnection.java:1283)
	at sun.net.www.protocol.http.HttpURLConnection.access$100(HttpURLConnection.java:90)
	at sun.net.www.protocol.http.HttpURLConnection$8.run(HttpURLConnection.java:1250)
	at sun.net.www.protocol.http.HttpURLConnection$8.run(HttpURLConnection.java:1248)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.AccessController.doPrivilegedWithCombiner(AccessController.java:782)
	at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1247)
	at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:250)
	at com.sun.xml.ws.transport.http.client.HttpClientTransport.getOutput(HttpClientTransport.java:120)
	at com.sun.xml.ws.transport.http.client.HttpTransportPipe.process(HttpTransportPipe.java:256)
	at com.sun.xml.ws.transport.http.client.HttpTransportPipe.processRequest(HttpTransportPipe.java:184)
	at com.sun.xml.ws.transport.DeferredTransportPipe.processRequest(DeferredTransportPipe.java:137)
	at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:641)
	at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:600)
	at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:585)
	at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:482)
	at com.sun.xml.ws.client.Stub.process(Stub.java:323)
	at com.sun.xml.ws.client.dispatch.DispatchImpl.doInvoke(DispatchImpl.java:192)
	at com.sun.xml.ws.client.dispatch.DispatchImpl.invoke(DispatchImpl.java:218)
	at com.mendix.integration.webservices.call.WebserviceCaller$3.run(WebserviceCaller.java:329)
	at com.mendix.integration.webservices.call.WebserviceCaller$3.run(WebserviceCaller.java:303)
	at java.security.AccessController.doPrivileged(Native Method)
	at com.mendix.integration.webservices.call.WebserviceCaller$1.execute(WebserviceCaller.java:267)
	at com.mendix.integration.webservices.call.WebserviceCaller$1.execute(WebserviceCaller.java:264)
	at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:32)
	at com.mendix.util.classloading.Runner$1.run(Runner.java:21)
	at java.security.AccessController.doPrivileged(Native Method)
	at com.mendix.util.classloading.Runner.runUsingClassLoaderOf(Runner.java:17)
	at com.mendix.integration.webservices.call.WebserviceCaller.call(WebserviceCaller.java:272)
	at com.mendix.integration.webservices.call.WebserviceCaller.call(WebserviceCaller.java:133)
	at com.mendix.integration.webservices.WebserviceModuleImpl.callWebservice(WebserviceModuleImpl.java:201)
	at com.mendix.integration.internal.InternalIntegrationImpl.callWebservice(InternalIntegrationImpl.scala:275)
	at com.mendix.integration.actions.microflow.CallWebServiceAction.execute(CallWebServiceAction.scala:96)
	at com.mendix.modules.microflowengine.microflow.impl.MicroflowObject.execute(MicroflowObject.java:47)
	at com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAfterBreakingIfNecessary(MicroflowImpl.java:192)
	at com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAction(MicroflowImpl.java:149)
	at com.mendix.systemwideinterfaces.core.UserAction.execute(UserAction.java:49)
	at com.mendix.core.actionmanagement.CoreAction.doCall(CoreAction.java:260)
	at com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:248)
	at com.mendix.core.actionmanagement.ActionManager$1.execute(ActionManager.java:168)
	at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:32)
	at com.mendix.core.actionmanagement.ActionManager.executeSync(ActionManager.java:174)
	at com.mendix.core.component.InternalCore.execute(InternalCore.java:377)
	at com.mendix.webui.actions.client.ExecuteAction.execute(ExecuteAction.java:135)
	at com.mendix.webui.requesthandling.ClientRequestHandler$$anonfun$handleRequest$1.apply$mcV$sp(ClientRequestHandler.scala:324)
	at com.mendix.webui.requesthandling.ClientRequestHandler$$anonfun$handleRequest$1.apply(ClientRequestHandler.scala:317)
	at com.mendix.webui.requesthandling.ClientRequestHandler$$anonfun$handleRequest$1.apply(ClientRequestHandler.scala:317)
	at com.mendix.core.session.Worker$$anonfun$receive$3$$anonfun$2$$anon$1.execute(ActionDispatching.scala:144)
	at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:32)
	at com.mendix.core.session.Worker$$anonfun$receive$3$$anonfun$2.apply(ActionDispatching.scala:146)
	at scala.util.Try$.apply(Try.scala:191)
	at com.mendix.core.session.Worker$$anonfun$receive$3.applyOrElse(ActionDispatching.scala:140)
	at akka.actor.Actor$class.aroundReceive(Actor.scala:465)
	at com.mendix.core.session.Worker.aroundReceive(ActionDispatching.scala:136)
	at akka.actor.ActorCell.receiveMessage(ActorCell.scala:516)
	at akka.actor.ActorCell.invoke(ActorCell.scala:487)
	at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:238)
	at akka.dispatch.Mailbox.run(Mailbox.scala:220)
	at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:393)
	at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
	at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
	at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
	at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)

Any ideas how to solve this problem?

 

Many thanks.


Viewing all articles
Browse latest Browse all 80936

Trending Articles