NUSOAP_PATH=NUSOAP_PATH

Request:

Function

SOAP Message

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

<?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><ns4546:createThirdParty xmlns:ns4546="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><thirdparty><ref xsi:type="xsd:string">Test WS Create Client</ref><ref_ext xsi:type="xsd:string">WS0001</ref_ext><fk_user_author xsi:type="xsd:string">1</fk_user_author><status xsi:type="xsd:string">1</status><client xsi:type="xsd:string">1</client><supplier xsi:type="xsd:string">0</supplier><address xsi:type="xsd:string">Adresse customer</address><zip xsi:type="xsd:string">75000</zip><town xsi:type="xsd:string">Paris</town><country_id xsi:type="xsd:string">1</country_id><customer_code xsi:type="xsd:string">-1</customer_code><supplier_code xsi:type="xsd:string">0</supplier_code><phone xsi:type="xsd:string">0141414141</phone><fax xsi:type="xsd:string">0121212121</fax><email xsi:type="xsd:string">webtest1@test.fr</email><url xsi:type="xsd:string"> www.test.fr</url><profid1 xsi:type="xsd:string">1111111</profid1><profid2 xsi:type="xsd:string">222222</profid2><profid3 xsi:type="xsd:string">333333</profid3><profid4 xsi:type="xsd:string">44444</profid4><profid5 xsi:type="xsd:string">55555</profid5><profid6 xsi:type="xsd:string">66666</profid6><capital xsi:type="xsd:string">3000</capital><vat_used xsi:type="xsd:string">0</vat_used><vat_number xsi:type="xsd:string"></vat_number></thirdparty></ns4546:createThirdParty></SOAP-ENV:Body></SOAP-ENV:Envelope>

Response:

Result

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

    [id] => 164
    [ref] => Test WS Create Client
)

SOAP Message

HTTP/1.1 200 OK
Set-Cookie: xxlplanBAK=R3174120206; path=/; expires=Wed, 28-Jun-2017 17:07:14 GMT
Date: Wed, 28 Jun 2017 15:54:57 GMT
Content-Type: text/xml; charset=UTF-8
Content-Length: 762
Connection: close
Set-Cookie: xxlplan=R1719632605; path=/; expires=Wed, 28-Jun-2017 17:07:03 GMT
Server: Apache
X-Powered-By: PHP/7.0.17
X-SOAP-Server: NuSOAP/0.9.5 ()
Vary: Accept-Encoding
X-IPLB-Instance: 116

<?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:createThirdPartyResponse 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><id xsi:type="xsd:string">164</id><ref xsi:type="xsd:string">Test WS Create Client</ref></ns1:createThirdPartyResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>