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 | |
---|---|
Request | web\wwwroot\ws\java\admin\AddCompanyRequestType.java |
Return | web\wwwroot\ws\java\admin\AddCompanyResponseType.java |
Request:
ID # | Required | Description |
---|---|---|
idcommercial | X | Company ID. |
nmcompany | X | Company name. |
dsaddress | Address. | |
nmcity | City. | |
idstate | State. | |
nmcountry | Country. | |
idzipcode | Postal code. | |
idphone | Phone #. | |
idfax | Fax #. | |
nmhomepage | Home page. | |
fgcustomer | X | Customer company: 1 - Yes; 2 - No. |
fgsupplier | X | Supplier company: 1 - Yes; 2 - No. |
fgmanufacturer | X | Manufacturer company: 1 - Yes; 2 - No. |
dscompany | Description. | |
idcompany | Company code. Note: It must be a unique value. | |
idcompanytype | X | Company type ID #. |
cdisosystem | Code of the SoftExpert Suite component which the company will be associated with (separated by ";"). Example:109;107. | |
IDCUSTOMERTYPE | X¹ | Customer category ID #. |
IDSUPPLIERTYPE | X² | Supplier category ID #. |
fgeducationalentity | Educational 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 |
---|---|
return | SUCCESS: a company is created; FAILURE: message regarding the error that occurred. |