NUSOAP_PATH=NUSOAP_PATH

Request:

Function

getOrder

SOAP Message

POST /purdolibarr/htdocs/webservices/server_order.php HTTP/1.0
Host: equ-it.com
User-Agent: NuSOAP/0.9.5
Content-Type: text/xml; charset=UTF-8
SOAPAction: ""
Content-Length: 845

<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><ns6837:getOrder xmlns:ns6837="http://www.dolibarr.org/ns/"><authentication><dolibarrkey xsi:type="xsd:string">59cd04b6b27b9e5db00f227dbfd6d59b</dolibarrkey><sourceapplication xsi:type="xsd:string">DEMO</sourceapplication><login xsi:type="xsd:string">admin</login><password xsi:type="xsd:string">Vipergts07</password><entity xsi:type="xsd:string"></entity></authentication><id xsi:type="xsd:int">1</id><ref xsi:type="xsd:string"></ref></ns6837:getOrder></SOAP-ENV:Body></SOAP-ENV:Envelope>

Response:

Result

Array
(
    [result] => Array
        (
            [result_code] => OK
            [result_label] => 
        )

    [order] => Array
        (
            [id] => 1
            [ref] => ABCDE
            [ref_client] => 
            [ref_ext] => 
            [ref_int] => 
            [thirdparty_id] => 4
            [status] => 1
            [billed] => 0
            [total_net] => 0
            [total_vat] => 0
            [total_localtax1] => 0
            [total_localtax2] => 0
            [total] => 0
            [date] => 2016-10-16
            [date_creation] => 
            [date_validation] => 
            [date_modification] => 
            [remise] => 0
            [remise_percent] => 0
            [remise_absolue] => 
            [source] => 1
            [note_private] => 
            [note_public] => 
            [project_id] => 
            [mode_reglement_id] => 
            [mode_reglement_code] => 
            [mode_reglement] => 
            [cond_reglement_id] => 
            [cond_reglement_code] => 
            [cond_reglement] => 
            [cond_reglement_doc] => 
            [date_livraison] => 
            [fk_delivery_address] => 
            [demand_reason_id] => 
            [lines] => Array
                (
                    [0] => Array
                        (
                            [id] => 1
                            [fk_commande] => 1
                            [fk_parent_line] => 
                            [desc] => 
                            [qty] => 1
                            [price] => 
                            [unitprice] => 
                            [vat_rate] => 10.000
                            [remise] => 
                            [remise_percent] => 0
                            [product_id] => 
                            [product_type] => 0
                            [total_net] => 0.00000000
                            [total_vat] => 0.00000000
                            [total] => 0.00000000
                            [date_start] => 
                            [date_end] => 
                            [product_ref] => 
                            [product_label] => 
                            [product_desc] => 
                        )

                )

        )

)

SOAP Message

HTTP/1.1 200 OK
Set-Cookie: xxlplanBAK=R3174122384; path=/; expires=Sun, 25-Jun-2017 23:37:42 GMT
Date: Sun, 25 Jun 2017 22:30:57 GMT
Content-Type: text/xml; charset=UTF-8
Content-Length: 3325
Connection: close
Set-Cookie: xxlplan=R1719706657; path=/; expires=Sun, 25-Jun-2017 23:48:06 GMT
Server: Apache
X-Powered-By: PHP/7.0.17
X-SOAP-Server: NuSOAP/0.9.5 ()
Vary: Accept-Encoding
X-IPLB-Instance: 1129

<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://www.dolibarr.org/ns/"><SOAP-ENV:Body><ns1:getOrderResponse xmlns:ns1="http://www.dolibarr.org/ns/"><result xsi:type="tns:result"><result_code xsi:type="xsd:string">OK</result_code><result_label xsi:type="xsd:string"></result_label></result><order xsi:type="tns:order"><id xsi:type="xsd:string">1</id><ref xsi:type="xsd:string">ABCDE</ref><ref_client xsi:nil="true" xsi:type="xsd:string"/><ref_ext xsi:nil="true" xsi:type="xsd:string"/><ref_int xsi:nil="true" xsi:type="xsd:string"/><thirdparty_id xsi:type="xsd:int">4</thirdparty_id><status xsi:type="xsd:int">1</status><billed xsi:type="xsd:string">0</billed><total_net xsi:type="xsd:double">0.00000000</total_net><total_vat xsi:type="xsd:double">0.00000000</total_vat><total_localtax1 xsi:type="xsd:double">0.00000000</total_localtax1><total_localtax2 xsi:type="xsd:double">0.00000000</total_localtax2><total xsi:type="xsd:double">0.00000000</total><date xsi:type="xsd:date">2016-10-16</date><date_creation xsi:type="xsd:dateTime"></date_creation><date_validation xsi:type="xsd:dateTime"></date_validation><date_modification xsi:type="xsd:dateTime"></date_modification><remise xsi:type="xsd:string">0</remise><remise_percent xsi:type="xsd:string">0</remise_percent><remise_absolue xsi:nil="true" xsi:type="xsd:string"/><source xsi:type="xsd:string">1</source><note_private xsi:type="xsd:string"></note_private><note_public xsi:type="xsd:string"></note_public><project_id xsi:nil="true" xsi:type="xsd:string"/><mode_reglement_id xsi:nil="true" xsi:type="xsd:string"/><mode_reglement_code xsi:nil="true" xsi:type="xsd:string"/><mode_reglement xsi:nil="true" xsi:type="xsd:string"/><cond_reglement_id xsi:nil="true" xsi:type="xsd:string"/><cond_reglement_code xsi:nil="true" xsi:type="xsd:string"/><cond_reglement xsi:nil="true" xsi:type="xsd:string"/><cond_reglement_doc xsi:nil="true" xsi:type="xsd:string"/><date_livraison xsi:type="xsd:date"></date_livraison><fk_delivery_address xsi:nil="true" xsi:type="xsd:int"/><demand_reason_id xsi:nil="true" xsi:type="xsd:string"/><lines xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType=":[1]"><line xsi:type="xsd:"><id xsi:type="xsd:string">1</id><fk_commande xsi:type="xsd:string">1</fk_commande><fk_parent_line xsi:nil="true"/><desc xsi:type="xsd:string"></desc><qty xsi:type="xsd:string">1</qty><price xsi:nil="true"/><unitprice xsi:nil="true"/><vat_rate xsi:type="xsd:string">10.000</vat_rate><remise xsi:nil="true"/><remise_percent xsi:type="xsd:string">0</remise_percent><product_id xsi:nil="true"/><product_type xsi:type="xsd:string">0</product_type><total_net xsi:type="xsd:string">0.00000000</total_net><total_vat xsi:type="xsd:string">0.00000000</total_vat><total xsi:type="xsd:string">0.00000000</total><date_start xsi:type="xsd:string"></date_start><date_end xsi:type="xsd:string"></date_end><product_ref xsi:nil="true"/><product_label xsi:nil="true"/><product_desc xsi:nil="true"/></line></lines></order></ns1:getOrderResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>

Request:

Function

getOrdersForThirdParty

SOAP Message

POST /purdolibarr/htdocs/webservices/server_order.php HTTP/1.0
Host: equ-it.com
User-Agent: NuSOAP/0.9.5
Content-Type: text/xml; charset=UTF-8
SOAPAction: ""
Content-Length: 863

<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><ns4185:getOrdersForThirdParty xmlns:ns4185="http://www.dolibarr.org/ns/"><authentication><dolibarrkey xsi:type="xsd:string">59cd04b6b27b9e5db00f227dbfd6d59b</dolibarrkey><sourceapplication xsi:type="xsd:string">DEMO</sourceapplication><login xsi:type="xsd:string">admin</login><password xsi:type="xsd:string">Vipergts07</password><entity xsi:type="xsd:string"></entity></authentication><idthirdparty xsi:type="xsd:string">4</idthirdparty></ns4185:getOrdersForThirdParty></SOAP-ENV:Body></SOAP-ENV:Envelope>

Response:

Result

Array
(
    [result] => Array
        (
            [result_code] => OK
            [result_label] => 
        )

    [orders] => Array
        (
            [0] => Array
                (
                    [id] => 1
                    [ref] => ABCDE
                    [ref_client] => 
                    [ref_ext] => 
                    [ref_int] => 
                    [socid] => 4
                    [status] => 1
                    [total_net] => 0.00000000
                    [total_vat] => 0.00000000
                    [total_localtax1] => 0.00000000
                    [total_localtax2] => 0.00000000
                    [total] => 0.00000000
                    [project_id] => 
                    [date] => 2016-10-16
                    [remise] => 0
                    [remise_percent] => 0
                    [remise_absolue] => 
                    [source] => 1
                    [billed] => 0
                    [note_private] => 
                    [note_public] => 
                    [cond_reglement_id] => 
                    [cond_reglement] => 
                    [cond_reglement_doc] => 
                    [cond_reglement_code] => 
                    [mode_reglement_id] => 
                    [mode_reglement] => 
                    [mode_reglement_code] => 
                    [date_livraison] => 
                    [demand_reason_id] => 
                    [demand_reason_code] => 
                    [lines] => Array
                        (
                            [0] => Array
                                (
                                    [id] => 1
                                    [type] => 0
                                    [fk_commande] => 1
                                    [fk_parent_line] => 
                                    [desc] => 
                                    [qty] => 1
                                    [price] => 
                                    [unitprice] => 
                                    [tva_tx] => 10.000
                                    [remise] => 
                                    [remise_percent] => 0
                                    [total_net] => 0.00000000
                                    [total_vat] => 0.00000000
                                    [total] => 0.00000000
                                    [date_start] => 
                                    [date_end] => 
                                    [product_id] => 
                                    [product_ref] => 
                                    [product_label] => 
                                    [product_desc] => 
                                )

                        )

                )

        )

)

SOAP Message

HTTP/1.1 200 OK
Set-Cookie: xxlplanBAK=R3174149609; path=/; expires=Sun, 25-Jun-2017 23:33:14 GMT
Date: Sun, 25 Jun 2017 22:30:58 GMT
Content-Type: text/xml; charset=UTF-8
Content-Length: 2917
Connection: close
Set-Cookie: xxlplan=R1719706657; path=/; expires=Sun, 25-Jun-2017 23:37:42 GMT
Server: Apache
X-Powered-By: PHP/7.0.17
X-SOAP-Server: NuSOAP/0.9.5 ()
Vary: Accept-Encoding
X-IPLB-Instance: 1129

<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://www.dolibarr.org/ns/"><SOAP-ENV:Body><ns1:getOrdersForThirdPartyResponse xmlns:ns1="http://www.dolibarr.org/ns/"><result xsi:type="tns:result"><result_code xsi:type="xsd:string">OK</result_code><result_label xsi:type="xsd:string"></result_label></result><orders xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType=":[1]"><order xsi:type="xsd:"><id xsi:type="xsd:string">1</id><ref xsi:type="xsd:string">ABCDE</ref><ref_client xsi:nil="true"/><ref_ext xsi:nil="true"/><ref_int xsi:nil="true"/><socid xsi:type="xsd:string">4</socid><status xsi:type="xsd:string">1</status><total_net xsi:type="xsd:string">0.00000000</total_net><total_vat xsi:type="xsd:string">0.00000000</total_vat><total_localtax1 xsi:type="xsd:string">0.00000000</total_localtax1><total_localtax2 xsi:type="xsd:string">0.00000000</total_localtax2><total xsi:type="xsd:string">0.00000000</total><project_id xsi:nil="true"/><date xsi:type="xsd:string">2016-10-16</date><remise xsi:type="xsd:string">0</remise><remise_percent xsi:type="xsd:string">0</remise_percent><remise_absolue xsi:nil="true"/><source xsi:type="xsd:string">1</source><billed xsi:type="xsd:string">0</billed><note_private xsi:type="xsd:string"></note_private><note_public xsi:type="xsd:string"></note_public><cond_reglement_id xsi:nil="true"/><cond_reglement xsi:nil="true"/><cond_reglement_doc xsi:nil="true"/><cond_reglement_code xsi:nil="true"/><mode_reglement_id xsi:nil="true"/><mode_reglement xsi:nil="true"/><mode_reglement_code xsi:nil="true"/><date_livraison xsi:type="xsd:string"></date_livraison><demand_reason_id xsi:nil="true"/><demand_reason_code xsi:nil="true"/><lines xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="unnamed_struct_use_soapval[1]"><line><id xsi:type="xsd:string">1</id><type xsi:type="xsd:string">0</type><fk_commande xsi:type="xsd:string">1</fk_commande><fk_parent_line xsi:nil="true"/><desc xsi:type="xsd:string"></desc><qty xsi:type="xsd:string">1</qty><price xsi:nil="true"/><unitprice xsi:nil="true"/><tva_tx xsi:type="xsd:string">10.000</tva_tx><remise xsi:nil="true"/><remise_percent xsi:type="xsd:string">0</remise_percent><total_net xsi:type="xsd:string">0.00000000</total_net><total_vat xsi:type="xsd:string">0.00000000</total_vat><total xsi:type="xsd:string">0.00000000</total><date_start xsi:type="xsd:string"></date_start><date_end xsi:type="xsd:string"></date_end><product_id xsi:nil="true"/><product_ref xsi:nil="true"/><product_label xsi:nil="true"/><product_desc xsi:nil="true"/></line></lines></order></orders></ns1:getOrdersForThirdPartyResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>