Undeclared namespace prefix xsi (for attribute type)

3
I am calling an external web service (simple call which returns a single string, which I store in a variable), but I get this message. WSDL is at https://api.verticalresponse.com/wsdl/1.0/VRAPI.wsdl Can anyone help ? thanks and regards Paul
asked
9 answers
3

The web service works fine using soapUI, but Mendix seems to generate an incorrect request in this case. If you select Custom for the Request Body in your Call Web Service action and use the following request, it will work:

<ns1:login xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="VR/API/1_0">
   <args xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:vrap="http://api.verticalresponse.com/1.0/VRAPI.xsd" xsi:type="vrap:loginArgs">
      <username xsi:type="xsd:string">xxxxxx</username>
      <password xsi:type="xsd:string">xxxxxx</password>
      <session_duration_minutes xsi:type="xsd:integer">10</session_duration_minutes>
   </args>
</ns1:login>

This is the response I got in Mendix (using Paul's username and password):

<?xml version="1.0" encoding="UTF-8"?>
<namesp5:loginResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:namesp5="VR/API/1_0">
  <sessionId xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xsi:type="xsd:string">e489fa447567763b27bc6d1d7f62197b</sessionId>
</namesp5:loginResponse>

If the other web service operations work the same, you'll probably have to use a custom request body for every call to this web service.


Update: As you found out, if you try to store the web service result in a variable, you'll encounter another problem. This issue is caused by the fact that Mendix doesn't seem to correctly parse the web service response, but you can't override this behaviour like you can with the custom request body.

The only solution I can think of (except of course creating a ticket in the Mendix support portal and waiting for the fix), is altering the WSDL a bit to steer Mendix in the right direction. I've tried it, and it works if you do the following:

  • download the WSDL (found here) and save it on your computer
  • using a text editor, edit this copy of the WSDL: find the two occurrences of "http://api.verticalresponse.com/1.0/VRAPI" (including the double quotes!), and replace it with "VR/API/1_0" (again, including the double quotes)
  • in Mendix, import the web service using this local file (instead of the URL), and then call it normally
answered
1

My stack trace is:

 An error has occurred while handling the request. [User 'Anonymous_c8bffa3c-c4d1-4eaf-8f70-79078d9d0892' with roles 'Administrator']

 com.mendix.core.CoreException: Exception occurred in microflow 'MyFirstModule.GetSessionIDfromVR' for activity 'Call web service 'login'', all database changes executed by this microflow were rolled back
        at mv.b(SourceFile:257)
    Caused by: javax.xml.ws.WebServiceException: com.ctc.wstx.exc.WstxParsingException: Undeclared namespace prefix "xsi" (for attribute "type")
     at [row,col {unknown-source}]: [1,199]
        at com.sun.xml.ws.encoding.StreamSOAPCodec.encode(StreamSOAPCodec.java:116)
        at com.sun.xml.ws.encoding.SOAPBindingCodec.encode(SOAPBindingCodec.java:282)
        at com.sun.xml.ws.transport.http.client.HttpTransportPipe.process(HttpTransportPipe.java:258)
        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 nv$2.a(SourceFile:315)
        at nv$2.run(SourceFile:302)
        at java.security.AccessController.doPrivileged(Native Method)
        at nv.a(SourceFile:282)
        at nv.a(SourceFile:132)
        at com.mendix.modules.webservices.WebserviceModule.callWebservice(SourceFile:176)
        at lr.a(SourceFile:102)
        at mv.a(SourceFile:72)
        at mu.executeAction(SourceFile:102)
        at com.mendix.systemwideinterfaces.core.UserAction.execute(SourceFile:48)
        at com.mendix.core.actionmanagement.CoreAction.call(SourceFile:434)
        at hg.b(SourceFile:155)
        at com.mendix.core.Core.execute(SourceFile:199)
        at fZ.execute(SourceFile:183)
        at iD.a(SourceFile:306)
        at iD.a(SourceFile:235)
        at iD.processRequest(SourceFile:179)
        at iG.a(SourceFile:71)
        at com.mendix.core.MxRuntime.processRequest(SourceFile:842)
        at com.mendix.m2ee.server.handler.RuntimeHandler.handle(RuntimeHandler.java:43)
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:113)
        at org.eclipse.jetty.server.Server.handle(Server.java:334)
        at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:559)
        at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:1007)
        at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:747)
        at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:209)
        at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:406)
        at org.eclipse.jetty.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:462)
        at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:436)
        at java.lang.Thread.run(Thread.java:662)
    Caused by: com.ctc.wstx.exc.WstxParsingException: Undeclared namespace prefix "xsi" (for attribute "type")
     at [row,col {unknown-source}]: [1,199]
        at com.ctc.wstx.sr.StreamScanner.constructWfcException(StreamScanner.java:605)
        at com.ctc.wstx.sr.StreamScanner.throwParseError(StreamScanner.java:473)
        at com.ctc.wstx.sr.NsAttributeCollector.resolveNamespaces(NsAttributeCollector.java:179)
        at com.ctc.wstx.sr.NsInputElementStack.resolveAndValidateElement(NsInputElementStack.java:374)
        at com.ctc.wstx.sr.BasicStreamReader.handleStartElem(BasicStreamReader.java:2945)
        at com.ctc.wstx.sr.BasicStreamReader.nextFromTree(BasicStreamReader.java:2846)
        at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1019)
        at com.sun.xml.ws.util.xml.XMLStreamReaderToXMLStreamWriter.bridge(XMLStreamReaderToXMLStreamWriter.java:140)
        at com.sun.xml.ws.message.stream.StreamMessage.writePayloadTo(StreamMessage.java:313)
        at com.sun.xml.ws.message.stream.PayloadStreamReaderMessage.writePayloadTo(PayloadStreamReaderMessage.java:113)
        at com.sun.xml.ws.message.AbstractMessageImpl.writeTo(AbstractMessageImpl.java:147)
        at com.sun.xml.ws.encoding.StreamSOAPCodec.encode(StreamSOAPCodec.java:113)
        at com.sun.xml.ws.encoding.SOAPBindingCodec.encode(SOAPBindingCodec.java:282)
        at com.sun.xml.ws.transport.http.client.HttpTransportPipe.process(HttpTransportPipe.java:258)
        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 nv$2.a(SourceFile:315)
        at nv$2.run(SourceFile:302)
        at java.security.AccessController.doPrivileged(Native Method)
        at nv.a(SourceFile:282)
        at nv.a(SourceFile:132)
        at com.mendix.modules.webservices.WebserviceModule.callWebservice(SourceFile:176)
        at lr.a(SourceFile:102)
        at mv.a(SourceFile:72)
        at mu.executeAction(SourceFile:102)
        at com.mendix.systemwideinterfaces.core.UserAction.execute(SourceFile:48)
        at com.mendix.core.actionmanagement.CoreAction.call(SourceFile:434)
        at hg.b(SourceFile:155)
        at com.mendix.core.Core.execute(SourceFile:199)
        at fZ.execute(SourceFile:183)
        at iD.a(SourceFile:306)
        at iD.a(SourceFile:235)
        at iD.processRequest(SourceFile:179)
        at iG.a(SourceFile:71)
        at com.mendix.core.MxRuntime.processRequest(SourceFile:842)
        at com.mendix.m2ee.server.handler.RuntimeHandler.handle(RuntimeHandler.java:43)
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:113)
        at org.eclipse.jetty.server.Server.handle(Server.java:334)
        at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:559)
        at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:1007)
        at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:747)
        at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:209)
        at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:406)
        at org.eclipse.jetty.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:462)
        at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:436)
        at java.lang.Thread.run(Thread.java:662)
answered
0

May be you should clarify a bit more. What response did you get? The above wsdl does not reply with a singel string, but returns an array.

answered
0

Does anyone have an idea what I'm doing wrong here ?

thanks Paul

answered
0

Here is the SOAP body that Mendix puts together:

Created soap body : <Body><mx:login xmlns:mx="http://api.verticalresponse.com/1.0/VRAPI"><args xmlns:axis2ns1="http://api.verticalresponse.com/1.0/VRAPI.xsd" xsi:type="http://api.verticalresponse.com/1.0/VRAPI.xsd:loginArgs"><username>paul.jewell@thestreamgroup.com</username><password>xxxxx</password><session_duration_minutes>5</session_duration_minutes></args></mx:login></Body>

When I contacted the owner of the webservice, they sent me the following sample, but that doesn't seem to work either:

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="VR/API/1_0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns2="http://api.verticalresponse.com/1.0/VRAPI.xsd" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><ns1:login><args xsi:type="ns2:loginArgs"><username xsi:type="xsd:string">paul.jewell@thestreamgroup.com</username><password xsi:type="xsd:string">xxxxxxx</password><session_duration_minutes xsi:type="xsd:integer">10</session_duration_minutes></args></ns1:login></SOAP-ENV:Body></SOAP-ENV:Envelope>
answered
0

I have tried building a custom <body>, which Mendix builds as follows:

    <Body><ns1:login xmlns:ns1="VR/API/1_0" xmlns:ns2="http://api.verticalresponse.com/1.0/VRAPI.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<args xsi:type="ns2:loginArgs">
<username xsi:type="xsd:string">paul.jewell@thestreamgroup.com</username>
<password xsi:type="xsd:string">streampass1</password>
<session_duration_minutes xsi:type="xsd:integer">5</session_duration_minutes>
</args>
</ns1:login></Body>

It seems to go past the namespace error, but I now get the following stacktrace.

An error has occurred while handling the request. [User 'Anonymous_72921de3-07db-4202-8209-8573637fd213' with roles 'Administrator']

com.mendix.core.CoreException: Exception occurred in action '{"name":"MyFirstModule.GetSessionIDfromVR","current_activity":{"inputVariableNames":[],"returnVariableName":"VRSessionID","caption":"Call web service 'login'","inputConstants":{"parameterVariableName":"","useHttpAuthentication":false,"wsdlTargetNamespace":"http://api.verticalresponse.com/1.0/VRAPI","wsdlFileName":"MyFirstModule.VerticalResponse","resultHandling":"STORE","returnValueMapping":""},"type":"CallWebservice"},"type":"Microflow"}', all database changes executed by this action were rolled back
    at com.mendix.core.actionmanagement.CoreAction.c(SourceFile:485)
Caused by: com.mendix.core.CoreException: Exception occurred in microflow 'MyFirstModule.GetSessionIDfromVR' for activity 'Call web service 'login'', all database changes executed by this microflow were rolled back
    at mv.b(SourceFile:257)
Caused by: 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: {http://schemas.xmlsoap.org/wsdl/}definitions
    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.doInvoke(DispatchImpl.java:192)
    at com.sun.xml.ws.client.dispatch.DispatchImpl.invoke(DispatchImpl.java:218)
    at nv$2.a(SourceFile:315)
    at nv$2.run(SourceFile:302)
    at java.security.AccessController.doPrivileged(Native Method)
    at nv.a(SourceFile:282)
    at nv.a(SourceFile:132)
    at com.mendix.modules.webservices.WebserviceModule.callWebservice(SourceFile:176)
    at lr.a(SourceFile:102)
    at mv.a(SourceFile:72)
    at mu.executeAction(SourceFile:102)
    at com.mendix.systemwideinterfaces.core.UserAction.execute(SourceFile:48)
    at com.mendix.core.actionmanagement.CoreAction.call(SourceFile:434)
    at hg.b(SourceFile:155)
    at com.mendix.core.Core.execute(SourceFile:199)
    at fZ.execute(SourceFile:183)
    at iD.a(SourceFile:306)
    at iD.a(SourceFile:235)
    at iD.processRequest(SourceFile:179)
    at iG.a(SourceFile:71)
    at com.mendix.core.MxRuntime.processRequest(SourceFile:842)
    at com.mendix.m2ee.server.handler.RuntimeHandler.handle(RuntimeHandler.java:43)
    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:113)
    at org.eclipse.jetty.server.Server.handle(Server.java:334)
    at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:559)
    at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:1007)
    at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:747)
    at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:209)
    at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:406)
    at org.eclipse.jetty.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:462)
    at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:436)
    at java.lang.Thread.run(Thread.java:662)
Caused by: com.sun.xml.ws.streaming.XMLStreamReaderException: unexpected XML tag. expected: {http://schemas.xmlsoap.org/soap/envelope/}Envelope but found: {http://schemas.xmlsoap.org/wsdl/}definitions
    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.doInvoke(DispatchImpl.java:192)
    at com.sun.xml.ws.client.dispatch.DispatchImpl.invoke(DispatchImpl.java:218)
    at nv$2.a(SourceFile:315)
    at nv$2.run(SourceFile:302)
    at java.security.AccessController.doPrivileged(Native Method)
    at nv.a(SourceFile:282)
    at nv.a(SourceFile:132)
    at com.mendix.modules.webservices.WebserviceModule.callWebservice(SourceFile:176)
    at lr.a(SourceFile:102)
    at mv.a(SourceFile:72)
    at mu.executeAction(SourceFile:102)
    at com.mendix.systemwideinterfaces.core.UserAction.execute(SourceFile:48)
    at com.mendix.core.actionmanagement.CoreAction.call(SourceFile:434)
    at hg.b(SourceFile:155)
    at com.mendix.core.Core.execute(SourceFile:199)
    at fZ.execute(SourceFile:183)
    at iD.a(SourceFile:306)
    at iD.a(SourceFile:235)
    at iD.processRequest(SourceFile:179)
    at iG.a(SourceFile:71)
    at com.mendix.core.MxRuntime.processRequest(SourceFile:842)
    at com.mendix.m2ee.server.handler.RuntimeHandler.handle(RuntimeHandler.java:43)
    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:113)
    at org.eclipse.jetty.server.Server.handle(Server.java:334)
    at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:559)
    at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:1007)
    at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:747)
    at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:209)
    at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:406)
    at org.eclipse.jetty.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:462)
    at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:436)
    at java.lang.Thread.run(Thread.java:662)
answered
0

Alexander, here is the error I get after the data has come back from the webservice call ....I am using STORE. I don't get an error if I use IGNORE and I can't use MAP.

    An error has occurred while handling the request. [User 'Anonymous_c5d5fd35-774d-40e7-95a2-831d24703bc0' with roles 'Administrator']

--------

lg: Could not find element for path part 'http://api.verticalresponse.com/1.0/VRAPI:loginResponse' on path 'http://api.verticalresponse.com/1.0/VRAPI:loginResponse|sessionId'
    at MyFirstModule.GetSessionIDfromVR (CallWebservice : 'Call web service 'login'')

Advanced stacktrace:
    at mz.a(SourceFile:188)
Caused by: com.mendix.systemwideinterfaces.MendixRuntimeException: Could not find element for path part 'http://api.verticalresponse.com/1.0/VRAPI:loginResponse' on path 'http://api.verticalresponse.com/1.0/VRAPI:loginResponse|sessionId'
    at oC.a(SourceFile:89)
    at oC.a(SourceFile:60)
    at lv.a(SourceFile:218)
    at lv.a(SourceFile:111)
    at mz.a(SourceFile:73)
    at my.executeAction(SourceFile:101)
    at com.mendix.systemwideinterfaces.core.UserAction.execute(SourceFile:48)
    at com.mendix.core.actionmanagement.CoreAction.call(SourceFile:435)
    at hj.b(SourceFile:156)
    at com.mendix.core.Core.execute(SourceFile:212)
    at gc.execute(SourceFile:184)
    at iH.a(SourceFile:311)
    at iH.a(SourceFile:240)
    at iH.processRequest(SourceFile:179)
    at iK.a(SourceFile:71)
    at com.mendix.core.MxRuntime.processRequest(SourceFile:856)
    at com.mendix.m2ee.server.handler.RuntimeHandler.handle(RuntimeHandler.java:43)
    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:113)
    at org.eclipse.jetty.server.Server.handle(Server.java:334)
    at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:559)
    at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:1007)
    at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:747)
    at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:209)
    at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:406)
    at org.eclipse.jetty.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:462)
    at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:436)
    at java.lang.Thread.run(Thread.java:662)
answered
0

I am only guessing here, but I think I need to specify the following somewhere, but it doesn't belong in the header or body and Mendix doesn't allow you to provide custom input for the response section...

    <response xsi.type="ns2:loginResponse">
<loginResponse xsi.type="xsd:string">VRSessionID</loginResponse>
</response>
answered
0

This is the SOAP response that I receive back from the webservice. It comes back ok with the SessionID, but it then fails on storing this into the Mendix variable.

    <?xml version='1.0' encoding='UTF-8'?>
<SOAP-ENV:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
  <SOAP-ENV:Body>
    <namesp202:loginResponse xmlns:namesp202="VR/API/1_0">
      <sessionId xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xsi:type="xsd:string">412bae6776893784ad5434f342c1a50c</sessionId>
answered