Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
DHBW Mannheim Project
adoscript web service adoxx web service
Answer
12/5/17 10:45 AM
Hey together,
we have a problem with the web service from Adoxx which we need to transfer data to another system.

1) We used the AdoScript-code below to start the webserver-connection which works:
1CC "AdoScript" SERVICE start
2start: start port:8080
3output:textfield
1
2) We executed the AdoScript below local in Adoxx with debugging-mode. The result was a infobox with the different model-ids.
Then we tried to make  a SOAP request using Postman which communicates with the web server.
The webserver logs a #OK in Adoxx, but we got an error response instead of a XML-document in Postman.
We used the correct SOAP-message format and integrated an AdoScript which we encoded with HTML Encoder:

--> our AdoScript-command below:
1CC "Core" GET_MODEL_ID modelname:"Test_adoxx" modeltype:"Working Environment Model"
2CC "Core" LOAD_MODEL modelid:(modelid)
3CC "Core" GET_ALL_OBJS_OF_CLASSNAME modelid:(modelid) classname:"Model reference"
4CC "Core" DISCARD_MODEL modelid:(modelid)
--> the AdoScript encoded in HMTL
1CC "Core" debug GET_MODEL_ID modelname:"Test_adoxx" modeltype:"Working Environment Model"
2CC "Core" LOAD_MODEL modelid:(modelid)
3CC "Core" debug GET_ALL_OBJS_OF_CLASSNAME modelid:(modelid) classname:"Model reference"
4CC "Core" DISCARD_MODEL modelid:(modelid)
--> our SOAP-mesage:
 1//SOAP BSP: <?xml version="1.0" encoding="UTF-8"?>
 2 <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">
 3<soapenv:Body>
 4<ns1:execute soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"  xmlns:ns1="urn:AdoWS">   
 5<script xsi:type="xsd:string">
 6#Sample ADOscript File   
 7CC &quot;Core&quot; GET_MODEL_ID modelname:&quot;Test_adoxx&quot; modeltype:&quot;Working Environment Model&quot;   
 8CC &quot;Core&quot; LOAD_MODEL modelid:(modelid)   
 9CC &quot;Core&quot; debug GET_ALL_OBJS_OF_CLASSNAME modelid:(modelid) classname:&quot;Performer&quot;   
10CC &quot;Core&quot; DISCARD_MODEL modelid:(modelid)               
11SETG result:(&objids)
12</script>
13<resultVar xsi:type="xsd:string">result</resultVar>
14</ns1:execute>
15</soapenv:Body>
16</soapenv:Envelope>

The attached file show the response with the error in Postman.
We need a working Web-service which executes the AdoScript and generates XML from Adoxx.
Is there a way to solve our described problem?
Attachment

Attachments: fehler_adoxx-webservice.png (124.2k)

RE: DHBW Mannheim Project
Answer
9/25/17 9:41 PM as a reply to Sebastian Sienel.
Problem Solved emoticon 
Web Services works great emoticon

# I changed the SOAP-message:
 1//SOAP BSP: <?xml version="1.0" encoding="UTF-8"?>
 2 <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">
 3<soapenv:Body>
 4<ns1:execute soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"  xmlns:ns1="urn:AdoWS">  
 5<script xsi:type="xsd:string">
 6#Sample ADOscript File  
 7CC &quot;Core&quot; GET_MODEL_ID modelname:&quot;Test_adoxx&quot; modeltype:&quot;Working Environment Model&quot;  
 8CC &quot;Core&quot; LOAD_MODEL modelid:(modelid)  
 9CC &quot;Core&quot; debug GET_ALL_OBJS_OF_CLASSNAME modelid:(modelid) classname:&quot;Performer&quot;  
10CC &quot;Core&quot; DISCARD_MODEL modelid:(modelid)              
11SETG result:(objids)
12</script>
13<resultVar xsi:type="xsd:string">result</resultVar>
14</ns1:execute>
15</soapenv:Body>
16</soapenv:Envelope>
1