Example of importing in real time with a parameter error
Less than to read
This example demonstrates an import with an error due to a missing input parameter value.
SOAP Request
<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wss="http://www.adonix.com/WSS">
<soapenv:Header/>
<soapenv:Body>
<wss:run soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<callContext xsi:type="wss:CAdxCallContext">
<codeLang xsi:type="xsd:string">ENG</codeLang>
<poolAlias xsi:type="xsd:string">IMPORT-EXPORT</poolAlias>
<poolId xsi:type="xsd:string"></poolId>
<requestConfig xsi:type="xsd:string">
<![CDATA[adxwss.optreturn=JSON&adxwss.beautify=true&adxwss.trace.on=off]]>
</requestConfig>
</callContext>
<publicName xsi:type="xsd:string">AOWSIMPORT</publicName> /** AOWSIMPORT = web service name **/
<inputXml xsi:type="xsd:string">
<![CDATA[{
"GRP1": {
"I_MODIMP": "", /** missing import template **/
"I_AOWSTA": "NO", /** do not use temp storage space **/
"I_EXEC": "REALTIME", /** execute the import immediately **/
"I_RECORDSEP": "|", /** record separator **/
"I_FILE":"B;FR;OL10;Urban Cycle;UrbanCycle;SA;001;001;001;001;EUR;49120544900011;349;FR22491205449;FR001;FRA;CH30NETEOM;LOCAL;700;700;610000;1;FR251;;;;;|A;001;Urban Cycle;35, Chaussée de la Madeleine;;;44000;NANTES;FR;251899270;251899278|A;002;U.C. Dépot;2 Boulevard Arcole;;;31000;TOULOUSE;FR;066581312;|D;001;Urban Cycle;FR251;3;FR201;EXW;2;;;;|R;FR;30004480581456789012313;BNP Paribas|END"
}
}]]>
</inputXml>
</wss:run>
</soapenv:Body>
</soapenv:Envelope>
SOAP Response
<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" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wss="http://www.adonix.com/WSS">
<soapenv:Body>
<wss:runResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<runReturn xsi:type="wss:CAdxResultXml">
<messages xsi:type="soapenc:Array" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" soapenc:arrayType="wss:CAdxMessage[0]"/>
<resultXml xsi:type="xsd:string">{
"GRP1": {
"I_MODIMP": "",
“I_AOWSTA": "NO",
"I_EXEC": "REALTIME",
"I_RECORDSEP": "|",
"I_FILE": "B;FR;OL10;Urban Cycle;UrbanCycle;SA;001;001;001;001;EUR;49120544900011;349;FR22491205449;FR001;FRA;CH30NETEOM;LOCAL;700;700;610000;1;FR251;;;;;|A;001;Urban Cycle;35, Chaussée de la Madeleine;;;44000;NANTES;FR;251899270;251899278|A;002;U.C. Dépot;2 Boulevard Arcole;;;31000;TOULOUSE;FR;066581312;|D;001;Urban Cycle;FR251;3;FR201;EXW;2;;;;|R;FR;30004480581456789012313;BNP Paribas|END",
"O_REQNUM": "0", /** no query number because import was real-time **/
"O_STATUS": "1", /** 1 = web service error occurred **/
"O_MESSA": "The value of the I_MODIMP parameter must not be empty"
}
}</resultXml>
<status xsi:type="xsd:int">1</status>
<technicalInfos xsi:type="wss:CAdxTechnicalInfos">
<busy xsi:type="xsd:boolean">false</busy>
<changeLanguage xsi:type="xsd:boolean">false</changeLanguage>
<changeUserId xsi:type="xsd:boolean">false</changeUserId>
<flushAdx xsi:type="xsd:boolean">false</flushAdx>
<loadWebsDuration xsi:type="xsd:double">0</loadWebsDuration>
<nbDistributionCycle xsi:type="xsd:int">-1</nbDistributionCycle>
<poolDistribDuration xsi:type="xsd:double">0</poolDistribDuration>
<poolEntryIdx xsi:type="xsd:int">12171</poolEntryIdx>
<poolExecDuration xsi:type="xsd:double">14</poolExecDuration>
<poolRequestDuration xsi:type="xsd:double">-1</poolRequestDuration>
<poolWaitDuration xsi:type="xsd:double">1</poolWaitDuration>
<processReport xsi:type="xsd:string" xsi:nil="true"/>
<processReportSize xsi:type="xsd:int">-1</processReportSize>
<reloadWebs xsi:type="xsd:boolean">false</reloadWebs>
<resumitAfterDBOpen xsi:type="xsd:boolean">false</resumitAfterDBOpen>
<rowInDistribStack xsi:type="xsd:int" xsi:nil="true"/>
<totalDuration xsi:type="xsd:double">38</totalDuration>
<traceRequest xsi:type="xsd:string"/>
<traceRequestSize xsi:type="xsd:int">0</traceRequestSize>
</technicalInfos>
</runReturn>
</wss:runResponse>
</soapenv:Body>
</soapenv:Envelope>