Error when calling a webservice

0
I got the next error when I'm calling a webservice; What could be the problem? com.sun.xml.ws.protocol.soap.MessageCreationException: Couldn't create SOAP message due to exception: unexpected XML tag. expected: {http://schemas.xmlsoap.org/soap/envelope/}Envelope but found: {null}html     at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:43) Caused by: Couldn't create SOAP message due to exception: unexpected XML tag. expected: {http://schemas.xmlsoap.org/soap/envelope/}Envelope but found: {null}html     at com.sun.xml.ws.encoding.SOAPBindingCodec.decode(SOAPBindingCodec.java:363)     at com.sun.xml.ws.transport.http.client.HttpTransportPipe.createResponsePacket(HttpTransportPipe.java:316)     at com.sun.xml.ws.transport.http.client.HttpTransportPipe.process(HttpTransportPipe.java:265)     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.invokeOneWay(DispatchImpl.java:227)     at com.mendix.integration.webservices.call.WebserviceCaller$3.run(WebserviceCaller.java:341)     at com.mendix.integration.webservices.call.WebserviceCaller$3.run(WebserviceCaller.java:317)     at java.security.AccessController.doPrivileged(Native Method)     at com.mendix.integration.webservices.call.WebserviceCaller$2.execute(WebserviceCaller.java:302)     at com.mendix.integration.webservices.call.WebserviceCaller$2.execute(WebserviceCaller.java:298)     at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:37)     at com.mendix.util.classloading.Runner$1.run(Runner.java:24)     at java.security.AccessController.doPrivileged(Native Method)     at com.mendix.util.classloading.Runner.runUsingClassLoaderOf(Runner.java:19)     at com.mendix.integration.webservices.call.WebserviceCaller.call(WebserviceCaller.java:297)     at com.mendix.integration.webservices.call.WebserviceCaller.call(WebserviceCaller.java:141)     at com.mendix.integration.webservices.WebserviceModule.callWebservice(WebserviceModule.java:202)     at com.mendix.integration.internal.IntegrationImpl.callWebservice(IntegrationImpl.scala:173)     at com.mendix.integration.actions.microflow.CallWebServiceAction.execute(CallWebServiceAction.scala:74)     at com.mendix.modules.microflowengine.microflow.impl.MicroflowObject.execute(MicroflowObject.java:49)     at com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAfterBreakingIfNecessary(MicroflowImpl.java:193)     at com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAction(MicroflowImpl.java:148)     at com.mendix.systemwideinterfaces.core.UserAction.execute(UserAction.java:53)     at com.mendix.core.actionmanagement.CoreAction.doCall(CoreAction.java:291)     at com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:276)     at com.mendix.core.actionmanagement.ActionManager$1.execute(ActionManager.java:204)     at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:37)     at com.mendix.core.actionmanagement.ActionManager.executeSync(ActionManager.java:199)     at com.mendix.core.component.InternalCore.executeSync(InternalCore.java:235)     at com.mendix.modules.microflowengine.actions.SubMicroflowAction.execute(SubMicroflowAction.scala:33)     at com.mendix.modules.microflowengine.microflow.impl.MicroflowObject.execute(MicroflowObject.java:49)     at com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAfterBreakingIfNecessary(MicroflowImpl.java:193)     at com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAction(MicroflowImpl.java:148)     at com.mendix.systemwideinterfaces.core.UserAction.execute(UserAction.java:53)     at com.mendix.core.actionmanagement.CoreAction.doCall(CoreAction.java:291)     at com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:276)     at com.mendix.core.actionmanagement.ActionManager$1.execute(ActionManager.java:204)     at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:37)     at com.mendix.core.actionmanagement.ActionManager.executeSync(ActionManager.java:199)     at com.mendix.core.component.InternalCore.execute(InternalCore.java:263)     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:300)     at com.mendix.webui.requesthandling.ClientRequestHandler$$anonfun$handleRequest$1.apply(ClientRequestHandler.scala:293)     at com.mendix.webui.requesthandling.ClientRequestHandler$$anonfun$handleRequest$1.apply(ClientRequestHandler.scala:293)     at com.mendix.core.session.Worker$$anonfun$receive$3$$anonfun$2$$anon$1.execute(ActionDispatching.scala:151)     at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:37)     at com.mendix.core.session.Worker$$anonfun$receive$3$$anonfun$2.apply(ActionDispatching.scala:153)     at scala.util.Try$.apply(Try.scala:191)     at com.mendix.core.session.Worker$$anonfun$receive$3.applyOrElse(ActionDispatching.scala:147)     at akka.actor.Actor$class.aroundReceive(Actor.scala:465)     at com.mendix.core.session.Worker.aroundReceive(ActionDispatching.scala:140)     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: unexpected XML tag. expected: {http://schemas.xmlsoap.org/soap/envelope/}Envelope but found: {null}html     at com.sun.xml.ws.streaming.XMLStreamReaderUtil.verifyTag(XMLStreamReaderUtil.java:218)     at com.sun.xml.ws.encoding.StreamSOAPCodec.decode(StreamSOAPCodec.java:184)     at com.sun.xml.ws.encoding.StreamSOAPCodec.decode(StreamSOAPCodec.java:307)     at com.sun.xml.ws.encoding.StreamSOAPCodec.decode(StreamSOAPCodec.java:133)     at com.sun.xml.ws.encoding.SOAPBindingCodec.decode(SOAPBindingCodec.java:358)     at com.sun.xml.ws.transport.http.client.HttpTransportPipe.createResponsePacket(HttpTransportPipe.java:316)     at com.sun.xml.ws.transport.http.client.HttpTransportPipe.process(HttpTransportPipe.java:265)     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.invokeOneWay(DispatchImpl.java:227)     at com.mendix.integration.webservices.call.WebserviceCaller$3.run(WebserviceCaller.java:341)     at com.mendix.integration.webservices.call.WebserviceCaller$3.run(WebserviceCaller.java:317)     at java.security.AccessController.doPrivileged(Native Method)     at com.mendix.integration.webservices.call.WebserviceCaller$2.execute(WebserviceCaller.java:302)     at com.mendix.integration.webservices.call.WebserviceCaller$2.execute(WebserviceCaller.java:298)     at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:37)     at com.mendix.util.classloading.Runner$1.run(Runner.java:24)     at java.security.AccessController.doPrivileged(Native Method)     at com.mendix.util.classloading.Runner.runUsingClassLoaderOf(Runner.java:19)     at com.mendix.integration.webservices.call.WebserviceCaller.call(WebserviceCaller.java:297)     at com.mendix.integration.webservices.call.WebserviceCaller.call(WebserviceCaller.java:141)     at com.mendix.integration.webservices.WebserviceModule.callWebservice(WebserviceModule.java:202)     at com.mendix.integration.internal.IntegrationImpl.callWebservice(IntegrationImpl.scala:173)     at com.mendix.integration.actions.microflow.CallWebServiceAction.execute(CallWebServiceAction.scala:74)     at com.mendix.modules.microflowengine.microflow.impl.MicroflowObject.execute(MicroflowObject.java:49)     at com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAfterBreakingIfNecessary(MicroflowImpl.java:193)     at com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAction(MicroflowImpl.java:148)     at com.mendix.systemwideinterfaces.core.UserAction.execute(UserAction.java:53)     at com.mendix.core.actionmanagement.CoreAction.doCall(CoreAction.java:291)     at com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:276)     at com.mendix.core.actionmanagement.ActionManager$1.execute(ActionManager.java:204)     at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:37)     at com.mendix.core.actionmanagement.ActionManager.executeSync(ActionManager.java:199)     at com.mendix.core.component.InternalCore.executeSync(InternalCore.java:235)     at com.mendix.modules.microflowengine.actions.SubMicroflowAction.execute(SubMicroflowAction.scala:33)     at com.mendix.modules.microflowengine.microflow.impl.MicroflowObject.execute(MicroflowObject.java:49)     at com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAfterBreakingIfNecessary(MicroflowImpl.java:193)     at com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAction(MicroflowImpl.java:148)     at com.mendix.systemwideinterfaces.core.UserAction.execute(UserAction.java:53)     at com.mendix.core.actionmanagement.CoreAction.doCall(CoreAction.java:291)     at com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:276)     at com.mendix.core.actionmanagement.ActionManager$1.execute(ActionManager.java:204)     at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:37)     at com.mendix.core.actionmanagement.ActionManager.executeSync(ActionManager.java:199)     at com.mendix.core.component.InternalCore.execute(InternalCore.java:263)     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:300)     at com.mendix.webui.requesthandling.ClientRequestHandler$$anonfun$handleRequest$1.apply(ClientRequestHandler.scala:293)     at com.mendix.webui.requesthandling.ClientRequestHandler$$anonfun$handleRequest$1.apply(ClientRequestHandler.scala:293)     at com.mendix.core.session.Worker$$anonfun$receive$3$$anonfun$2$$anon$1.execute(ActionDispatching.scala:151)     at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:37)     at com.mendix.core.session.Worker$$anonfun$receive$3$$anonfun$2.apply(ActionDispatching.scala:153)     at scala.util.Try$.apply(Try.scala:191)     at com.mendix.core.session.Worker$$anonfun$receive$3.applyOrElse(ActionDispatching.scala:147)     at akka.actor.Actor$class.aroundReceive(Actor.scala:465)     at com.mendix.core.session.Worker.aroundReceive(ActionDispatching.scala:140)     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)    
asked
2 answers
0

The web service you're trying to call doesn't return an XML response but an HTML page instead.

Set the WebServices log node to TRACE to see what the exact content of the response is.

answered
0

Your XML message is not well structured. Do  you use a custom method to create the header?

 

 

answered