NUSOAP_PATH=NUSOAP_PATH

Request:

Function

createProductOrService

SOAP Message

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

<?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><ns7409:createProductOrService xmlns:ns7409="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></ns7409:createProductOrService></SOAP-ENV:Body></SOAP-ENV:Envelope>

Response:

Result

Array
(
    [result] => Array
        (
            [result_code] => KO
            [result_label] => ErrorMandatoryParametersNotProvided
        )

    [id] => 
)

SOAP Message

HTTP/1.1 200 OK
Set-Cookie: xxlplanBAK=R3174116939; path=/; expires=Sat, 24-Jun-2017 04:50:11 GMT
Date: Sat, 24 Jun 2017 03:44:28 GMT
Content-Type: text/xml; charset=UTF-8
Content-Length: 763
Connection: close
Set-Cookie: xxlplan=R1083501179; path=/; expires=Sat, 24-Jun-2017 04:56:21 GMT
Server: Apache
X-Powered-By: PHP/7.0.17
X-SOAP-Server: NuSOAP/0.9.5 ()
Vary: Accept-Encoding
X-IPLB-Instance: 1128

<?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:createProductOrServiceResponse xmlns:ns1="http://www.dolibarr.org/ns/"><result xsi:type="tns:result"><result_code xsi:type="xsd:string">KO</result_code><result_label xsi:type="xsd:string">ErrorMandatoryParametersNotProvided</result_label></result><id xsi:nil="true" xsi:type="xsd:string"/></ns1:createProductOrServiceResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>

Request:

Function

getProductOrService

SOAP Message

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

<?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><ns3466:getProductOrService xmlns:ns3466="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></ns3466:getProductOrService></SOAP-ENV:Body></SOAP-ENV:Envelope>

Response:

Result

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

    [product] => Array
        (
            [id] => 1
            [ref] => 1234
            [type] => 0
            [label] => label
            [description] => Description
            [date_creation] => 2016-08-21T18:25:59Z
            [date_modification] => 2016-08-21T18:25:59Z
            [note] => Note
            [status_tobuy] => 0
            [status_tosell] => 1
            [country_id] => 
            [country_code] => 
            [price_net] => 10.00000000
            [price] => 11.96000000
            [price_min_net] => 0.00000000
            [price_min] => 0.00000000
            [price_base_type] => HT
            [vat_rate] => 19.600
            [vat_npr] => 0
            [localtax1_tx] => 0.000
            [localtax2_tx] => 0.000
            [stock_real] => 0
            [dir] => 1234/
            [images] => Array
                (
                )

        )

)

SOAP Message

HTTP/1.1 200 OK
Set-Cookie: xxlplanBAK=R3174116939; path=/; expires=Sat, 24-Jun-2017 04:53:55 GMT
Date: Sat, 24 Jun 2017 03:44:32 GMT
Content-Type: text/xml; charset=UTF-8
Content-Length: 1969
Connection: close
Set-Cookie: xxlplan=R1083501179; path=/; expires=Sat, 24-Jun-2017 05:01:50 GMT
Server: Apache
X-Powered-By: PHP/7.0.17
X-SOAP-Server: NuSOAP/0.9.5 ()
Vary: Accept-Encoding
X-IPLB-Instance: 876

<?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:getProductOrServiceResponse 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><product xsi:type="tns:product"><id xsi:type="xsd:string">1</id><ref xsi:type="xsd:string">1234</ref><type xsi:type="xsd:string">0</type><label xsi:type="xsd:string">label</label><description xsi:type="xsd:string">Description</description><date_creation xsi:type="xsd:dateTime">2016-08-21T18:25:59Z</date_creation><date_modification xsi:type="xsd:dateTime">2016-08-21T18:25:59Z</date_modification><note xsi:type="xsd:string">Note</note><status_tobuy xsi:type="xsd:string">0</status_tobuy><status_tosell xsi:type="xsd:string">1</status_tosell><country_id xsi:type="xsd:string"></country_id><country_code xsi:type="xsd:string"></country_code><price_net xsi:type="xsd:string">10.00000000</price_net><price xsi:type="xsd:string">11.96000000</price><price_min_net xsi:type="xsd:string">0.00000000</price_min_net><price_min xsi:type="xsd:string">0.00000000</price_min><price_base_type xsi:type="xsd:string">HT</price_base_type><vat_rate xsi:type="xsd:string">19.600</vat_rate><vat_npr xsi:type="xsd:string">0</vat_npr><localtax1_tx xsi:type="xsd:string">0.000</localtax1_tx><localtax2_tx xsi:type="xsd:string">0.000</localtax2_tx><stock_real xsi:type="xsd:string">0</stock_real><dir xsi:type="xsd:string">1234/</dir><images xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType=":[0]"></images></product></ns1:getProductOrServiceResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>

Request:

Function

getListOfProductsOrServices

SOAP Message

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

<?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><ns7049:getListOfProductsOrServices xmlns:ns7049="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><filterproduct><type xsi:type="xsd:int">-1</type></filterproduct></ns7049:getListOfProductsOrServices></SOAP-ENV:Body></SOAP-ENV:Envelope>

Response:

Result

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

    [products] => Array
        (
            [0] => Array
                (
                    [id] => 1
                    [ref] => 1234
                    [ref_ext] => 
                )

        )

)

SOAP Message

HTTP/1.1 200 OK
Set-Cookie: xxlplanBAK=R3174123473; path=/; expires=Sat, 24-Jun-2017 04:45:17 GMT
Date: Sat, 24 Jun 2017 03:44:32 GMT
Content-Type: text/xml; charset=UTF-8
Content-Length: 898
Connection: close
Set-Cookie: xxlplan=R1083501179; path=/; expires=Sat, 24-Jun-2017 05:01:50 GMT
Server: Apache
X-Powered-By: PHP/7.0.17
X-SOAP-Server: NuSOAP/0.9.5 ()
Vary: Accept-Encoding
X-IPLB-Instance: 522

<?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:getListOfProductsOrServicesResponse 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><products xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType=":[1]"><product xsi:type="xsd:"><id xsi:type="xsd:string">1</id><ref xsi:type="xsd:string">1234</ref><ref_ext xsi:nil="true"/></product></products></ns1:getListOfProductsOrServicesResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>