User Tools

Site Tools



en:xmlcore

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
en:xmlcore [2021/12/15 12:24]
toomas created
en:xmlcore [2022/03/14 10:05] (current)
toomas [Sending data to Directo (or input)]
Line 35: Line 35:
   * ''​appkey=PREDEFINEDKEY''​   * ''​appkey=PREDEFINEDKEY''​
  
-and possible additional parameters. The data type verbs used, key values, and additional data type-specific parameters are agreed during each specific installation.+and possible additional parameters. The data type verbs used, key values, and additional data type-specific parameters are agreed during each specific installation. ​Fields with NULL (empty) in the content base are always excluded from the XML. 
 + 
  
 ===A practical example=== ===A practical example===
Line 43: Line 45:
  
 ==Article output:== ==Article output:==
-Antud näiteks kasutatakse verbi ''​what=item''​ ja ''​get=1''​. 
-Kõik filtrid on võimalikud,​ juhul kui vastav väli on skeemis olemas. Näiteks: 
-"​class","​code","​barcode","​supplier","​supplieritem","​closed","​ts"​ 
-Artiklite struktuuri kirjeldav skeem: 
 In this example, the verbs ''​what=item''​ and ''​get=1''​ are used. All filters are possible if the corresponding field is present in the schema. For example, "​class",​ "​code",​ "​barcode",​ "​supplier",​ "​supplieritem",​ "​closed",​ "​ts"​ \\ In this example, the verbs ''​what=item''​ and ''​get=1''​ are used. All filters are possible if the corresponding field is present in the schema. For example, "​class",​ "​code",​ "​barcode",​ "​supplier",​ "​supplieritem",​ "​closed",​ "​ts"​ \\
 Schema describing Articles: ​ [[https://​login.directo.ee/​xmlcore/​demo_ee/​ws_artiklid.xsd]] Schema describing Articles: ​ [[https://​login.directo.ee/​xmlcore/​demo_ee/​ws_artiklid.xsd]]
Line 85: Line 83:
 POST with variables „put=1“,​ „key=[appkey value]“, „what=order“ ( or „what=customer“ or „what=item“ ) and „xmldata=[XML'​i content]“\\ POST with variables „put=1“,​ „key=[appkey value]“, „what=order“ ( or „what=customer“ or „what=item“ ) and „xmldata=[XML'​i content]“\\
 The xml input content must match the schema. The xml input content must match the schema.
 +Please avoid sending empty fields as customer_code = ""​.
  
 ===A practical example=== ===A practical example===
Line 127: Line 126:
 </​code>​ </​code>​
  
-Ühest pakis võib olla korraga ka mitu tellimust, igaühe kohta tuleb omaette ''​Result'':​ + 
-There can be several orders in one package. Each order will have its own ''​Result'':​+There can be several orders in one batch. Each order will have its own ''​Result'':​
 <code xml> <code xml>
 <?xml version="​1.0"​ encoding="​UTF-8"​ ?>  <?xml version="​1.0"​ encoding="​UTF-8"​ ?> 
en/xmlcore.1639563844.txt.gz · Last modified: 2021/12/15 12:24 by toomas