Questions Tagged With webservicehttps://answers.axonivy.com/tags/webservice/?type=rss&user=Bj%C3%B6rnquestions tagged <span class="tag">webservice</span>enWed, 09 Apr 2014 11:40:46 -0400Getting a list as a result from an ivy webservicehttps://answers.axonivy.com/questions/621/getting-a-list-as-a-result-from-an-ivy-webservice<p>I created a webservice in ivy, which requests a string as input parameter and returns as result a string and a list (of a custom data class Betreibung).</p> <p>I can call this webservice from another ivy project and save the result in corresponding attributes. But as I can only save the list result "as List" and not "as List&lt;betreibung&gt;", every resulting List element is not of the class "Betreibung" but of the class "namespace.unknown.Betreibung". For this reason I cannot use the saved list entries later on.</p> <p>I created a short video to clarify my problem (in german only):</p> <pre><code>http://youtu.be/qWRUfq9i-xo?hd=1 </code></pre>BjörnWed, 09 Apr 2014 11:40:46 -0400https://answers.axonivy.com/questions/621/getting-a-list-as-a-result-from-an-ivy-webservicelistwebserviceXMLStreamException while calling a SOAP webservicehttps://answers.axonivy.com/questions/172/xmlstreamexception-while-calling-a-soap-webservice<pre><code>I want to use a webservice, which I created in Inubit. The WSDL URL is [http://venus.zhaw.ch:8000/ibis/ws/Betreibungsregisterauszug_ws_Listener?wsdl][1]. When I test the service in [soapUI][2] everything works fine (see picture). </code></pre> <p><img alt="alt text" src="/upfiles/picture1.png"></p> <pre><code>When I test the service in Xpert.ivy Designer 5.1.0 S6, I get the error javax.xml.stream.XMLStreamException: element text content may not contain START_ELEMENT. What could be the reason for this error? </code></pre> <p><img alt="alt text" src="/upfiles/picture2.png"></p> <p><img alt="alt text" src="/upfiles/picture3.png"></p> <pre><code>Here is the XML Request in soapUI: POST http://venus.zhaw.ch:8000/ibis/ws/Betreibungsregisterauszug_ws_Listener HTTP/1.1 Accept-Encoding: gzip,deflate Content-Type: text/xml;charset=UTF-8 SOAPAction: "BetreibungsregisterauszugErhalten" Content-Length: 352 Host: venus.zhaw.ch:8000 Connection: Keep-Alive User-Agent: Apache-HttpClient/4.1.1 (java 1.5) &lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:bet="https://venus.zhaw.ch:8443/ibis/ws/1383213506125/Betreibungsregisterauszug_ws_Listener"&gt; &lt;soapenv:Header/&gt; &lt;soapenv:Body&gt; &lt;bet:BetreibungsregisterauszugErhalten&gt;CH450234&lt;/bet:BetreibungsregisterauszugErhalten&gt; &lt;/soapenv:Body&gt; &lt;/soapenv:Envelope&gt; </code></pre> <ul> <li><a href="http://youtu.be/HhWzQLEylII?hd=1">Link to screencast explaining the problem (german only)</a></li> <li><a href="http://youtu.be/uKkJFXZ98P0?hd=1">Link to 2nd screencast with new findings</a></li> <li><a href="https://www.dropbox.com/s/6zxd079rdh8ih3p/TEMPTestWebservice.iar">Link to Xpert.ivy project (iar-file)</a></li> </ul>BjörnFri, 06 Dec 2013 14:03:36 -0500https://answers.axonivy.com/questions/172/xmlstreamexception-while-calling-a-soap-webservicexmlwebservice