Duale Hochschule Baden-Württemberg Mannheim (DHBW Mannheim)Project specific questions and answers from the work at the Duale Hochschule Baden-Württemberg Mannheim (DHBW Mannheim).RE: DHBW Mannheim ProjectSebastian Sienelhttps://www.adoxx.org/live/c/message_boards/find_message?p_l_id=&messageId=9991012017-09-25T21:41:22Z2017-09-25T21:34:02ZProblem Solved <img alt="emoticon" src="https://www.adoxx.org/livehttps://www.adoxx.org/ADOxxORGv3-theme/images/emoticons/happy.gif" > <br />Web Services works great <img alt="emoticon" src="https://www.adoxx.org/livehttps://www.adoxx.org/ADOxxORGv3-theme/images/emoticons/happy.gif" ><br /><br /># I changed the SOAP-message:<br /><div class="code"><span class="code-lines"> 1</span>//SOAP BSP: <?xml version="1.0" encoding="UTF-8"?><br /><span class="code-lines"> 2</span> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <br /><span class="code-lines"> 3</span><soapenv:Body> <br /><span class="code-lines"> 4</span><ns1:execute soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="urn:AdoWS"> <br /><span class="code-lines"> 5</span><script xsi:type="xsd:string"> <br /><span class="code-lines"> 6</span>#Sample ADOscript File <br /><span class="code-lines"> 7</span>CC &quot;Core&quot; GET_MODEL_ID modelname:&quot;Test_adoxx&quot; modeltype:&quot;Working Environment Model&quot; <br /><span class="code-lines"> 8</span>CC &quot;Core&quot; LOAD_MODEL modelid:(modelid) <br /><span class="code-lines"> 9</span>CC &quot;Core&quot; debug GET_ALL_OBJS_OF_CLASSNAME modelid:(modelid) classname:&quot;Performer&quot; <br /><span class="code-lines">10</span>CC &quot;Core&quot; DISCARD_MODEL modelid:(modelid) <br /><span class="code-lines">11</span>SETG result:(objids)<br /><span class="code-lines">12</span></script><br /><span class="code-lines">13</span><resultVar xsi:type="xsd:string">result</resultVar><br /><span class="code-lines">14</span></ns1:execute><br /><span class="code-lines">15</span></soapenv:Body><br /><span class="code-lines">16</span></soapenv:Envelope><br /></div><div class="code"><span class="code-lines">1</span></div>Sebastian Sienel2017-09-25T21:34:02ZDHBW Mannheim ProjectSebastian Sienelhttps://www.adoxx.org/live/c/message_boards/find_message?p_l_id=&messageId=9981642017-12-05T10:45:55Z2017-09-25T12:25:57ZHey together,<br />we have a problem with the web service from Adoxx which we need to transfer data to another system.<br /><br />1) We used the AdoScript-code below to start the webserver-connection which works:<br /><div class="code"><span class="code-lines">1</span>CC "AdoScript" SERVICE start<br /><span class="code-lines">2</span>start: start port:8080<br /><span class="code-lines">3</span>output:textfield<br /></div><div class="code"><span class="code-lines">1</span></div>2) We executed the AdoScript below local in Adoxx with debugging-mode. The result was a infobox with the different model-ids.<br />Then we tried to make a SOAP request using Postman which communicates with the web server.<br />The webserver logs a #OK in Adoxx, but we got an error response instead of a XML-document in Postman. <br />We used the correct SOAP-message format and integrated an AdoScript which we encoded with HTML Encoder:<br /><br />--> our AdoScript-command below:<div class="code"><span class="code-lines">1</span>CC "Core" GET_MODEL_ID modelname:"Test_adoxx" modeltype:"Working Environment Model"<br /><span class="code-lines">2</span>CC "Core" LOAD_MODEL modelid:(modelid)<br /><span class="code-lines">3</span>CC "Core" GET_ALL_OBJS_OF_CLASSNAME modelid:(modelid) classname:"Model reference"<br /><span class="code-lines">4</span>CC "Core" DISCARD_MODEL modelid:(modelid)<br /></div>--> the AdoScript encoded in HMTL<div class="code"><span class="code-lines">1</span>CC &quot;Core&quot; debug GET_MODEL_ID modelname:&quot;Test_adoxx&quot; modeltype:&quot;Working Environment Model&quot;<br /><span class="code-lines">2</span>CC &quot;Core&quot; LOAD_MODEL modelid:(modelid)<br /><span class="code-lines">3</span>CC &quot;Core&quot; debug GET_ALL_OBJS_OF_CLASSNAME modelid:(modelid) classname:&quot;Model reference&quot;<br /><span class="code-lines">4</span>CC &quot;Core&quot; DISCARD_MODEL modelid:(modelid)<br /></div>--> our SOAP-mesage:<div class="code"><span class="code-lines"> 1</span>//SOAP BSP: <?xml version="1.0" encoding="UTF-8"?><br /><span class="code-lines"> 2</span> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <br /><span class="code-lines"> 3</span><soapenv:Body> <br /><span class="code-lines"> 4</span><ns1:execute soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="urn:AdoWS"> <br /><span class="code-lines"> 5</span><script xsi:type="xsd:string"> <br /><span class="code-lines"> 6</span>#Sample ADOscript File <br /><span class="code-lines"> 7</span>CC &quot;Core&quot; GET_MODEL_ID modelname:&quot;Test_adoxx&quot; modeltype:&quot;Working Environment Model&quot; <br /><span class="code-lines"> 8</span>CC &quot;Core&quot; LOAD_MODEL modelid:(modelid) <br /><span class="code-lines"> 9</span>CC &quot;Core&quot; debug GET_ALL_OBJS_OF_CLASSNAME modelid:(modelid) classname:&quot;Performer&quot; <br /><span class="code-lines">10</span>CC &quot;Core&quot; DISCARD_MODEL modelid:(modelid) <br /><span class="code-lines">11</span>SETG result:(&objids) <br /><span class="code-lines">12</span></script><br /><span class="code-lines">13</span><resultVar xsi:type="xsd:string">result</resultVar><br /><span class="code-lines">14</span></ns1:execute><br /><span class="code-lines">15</span></soapenv:Body><br /><span class="code-lines">16</span></soapenv:Envelope><br /></div><br />The attached file show the response with the error in Postman.<br />We need a working Web-service which executes the AdoScript and generates XML from Adoxx.<br />Is there a way to solve our described problem?Sebastian Sienel2017-09-25T12:25:57Z