Skip to main content
Version: 2.2.3

addCompany

This method allows adding/editing:

  • Data of companies;
  • Add customers, manufacturers, suppliers;

To insert each of these items, it is necessary to follow the standard documented below.

This method allows associating attribute values with companies. To insert each of these items, it is necessary to follow the standard documented below:

Java class
Requestweb\wwwroot\ws\java\admin\AddCompanyRequestType.java
Returnweb\wwwroot\ws\java\admin\AddCompanyResponseType.java

Request:

ID #RequiredDescription
idcommercialXCompany ID.
nmcompanyXCompany name.
dsaddressAddress.
nmcityCity.
idstateState.
nmcountryCountry.
idzipcodePostal code.
idphonePhone #.
idfaxFax #.
nmhomepageHome page.
fgcustomerXCustomer company: 1 - Yes; 2 - No.
fgsupplierXSupplier company: 1 - Yes; 2 - No.
fgmanufacturerXManufacturer company: 1 - Yes; 2 - No.
dscompanyDescription.
idcompanyCompany code.
Note: It must be a unique value.
idcompanytypeXCompany type ID #.
cdisosystemCode of the SoftExpert Suite component which the company will be associated with (separated by ";"). Example:109;107.
IDCUSTOMERTYPECustomer category ID #.
IDSUPPLIERTYPESupplier category ID #.
fgeducationalentityEducational entity: 1 - Yes; No
info
  • X¹ - Required when FGCUSTOMER is 1;
  • X² - Required when FGSUPPLIER is 1.

Request structure:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:admin">
<soapenv:Header/>
<soapenv:Body>
<urn:addCompany>
<!--You may enter the following 20 items in any order-->
<urn:IDCOMMERCIAL>?</urn:IDCOMMERCIAL>
<urn:NMCOMPANY>?</urn:NMCOMPANY>
<urn:DSADDRESS>?</urn:DSADDRESS>
<urn:NMCITY>?</urn:NMCITY>
<urn:IDSTATE>?</urn:IDSTATE>
<urn:NMCOUNTRY>?</urn:NMCOUNTRY>
<urn:IDZIPCODE>?</urn:IDZIPCODE>
<urn:IDPHONE>?</urn:IDPHONE>
<urn:IDFAX>?</urn:IDFAX>
<urn:NMHOMEPAGE>?</urn:NMHOMEPAGE>
<urn:FGCUSTOMER>?</urn:FGCUSTOMER>
<urn:FGSUPPLIER>?</urn:FGSUPPLIER>
<urn:FGMANUFACTURER>?</urn:FGMANUFACTURER>
<urn:DSCOMPANY>?</urn:DSCOMPANY>
<urn:IDCOMPANY>?</urn:IDCOMPANY>
<urn:IDCOMPANYTYPE>?</urn:IDCOMPANYTYPE>
<urn:CDISOSYSTEM>?</urn:CDISOSYSTEM>
<urn:IDCUSTOMERTYPE>?</urn:IDCUSTOMERTYPE>
<urn:IDSUPPLIERTYPE>?</urn:IDSUPPLIERTYPE>
<urn:FGEDUCATIONALENTITY>?</urn:FGEDUCATIONALENTITY>
</urn:addCompany>
</soapenv:Body>
</soapenv:Envelope>

Return:

ID #Description
returnSUCCESS: a company is created;
FAILURE: message regarding the error that occurred.