Veetro Web Service Methods


Click here for a complete list of operations.

SetCompany

[Permission: Any Authenticated, Credentials: Contacts.Companies]
Saves a Company. If EntityID = 0, a new Company will be created. Returns a Saved copy of the Company including the newly created EntityID. Non-employee users can only save their own profile and previous/existing settings are overridden upon save. New contact creation is also not permitted by non-employee users.
Please Note: The auto-generated SOAP examples do not include inherited properties such as EntityID, Email, etc. Use a proper WSDL framework to generate XML or see GetEntity for XML node reference.

Test

The test form is only available for requests from the local machine.

SOAP 1.1

The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.

POST /xml HTTP/1.1
Host: admin.worketc.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://schema.veetro.com/SetCompany"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <SetCompany xmlns="http://schema.veetro.com">
      <company>
        <Branches>
          <Branch>
            <BranchID>int</BranchID>
            <Delete>boolean</Delete>
            <BranchName>string</BranchName>
            <IsPrimary>boolean</IsPrimary>
            <Addresses xsi:nil="true" />
            <Members xsi:nil="true" />
          </Branch>
          <Branch>
            <BranchID>int</BranchID>
            <Delete>boolean</Delete>
            <BranchName>string</BranchName>
            <IsPrimary>boolean</IsPrimary>
            <Addresses xsi:nil="true" />
            <Members xsi:nil="true" />
          </Branch>
        </Branches>
        <AccessPortalContacts>
          <Entity>
            <CustomerCredentials>None or SupportPersonal or InvoicesPersonal or ProjectsPersonal or SupportCompany or InvoicesCompany or ProjectsCompany or ToDosPersonal or ToDosCompany or TimesheetsPersonal or TimesheetsCompany</CustomerCredentials>
            <EntityID>int</EntityID>
            <DirectoryLetter>string</DirectoryLetter>
            <Name>string</Name>
            <Email>string</Email>
            <Password>string</Password>
            <GooglePlusID>string</GooglePlusID>
            <GooglePicture>string</GooglePicture>
            <PasswordSHA256Salt>string</PasswordSHA256Salt>
            <PasswordSHA256Hash>string</PasswordSHA256Hash>
            <AlternateEmails xsi:nil="true" />
            <AlternateWebsites xsi:nil="true" />
            <LastActivity>dateTime</LastActivity>
            <Language>English or French or Welsh or Spanish or SpanishUS or Czech or German or Hungarian or Finnish or Hindi or Russian or Vietnamese or Portuguese or Danish or Italian or Greek or Norwegian or ChineseTraditional or Sinhala or Afrikaans or Tamil or Romanian or Monenegrin or Dutch or Swedish or Polish or Japanese or Lithuanian or Korean or ChineseSimplified</Language>
            <Website>string</Website>
            <OpenID>string</OpenID>
            <Flags>Sales_Lead or Customer or Supplier or Subscriber or Company or Person or Employee or Do_Not_Email or Inactive or Enable_Entry_Alerts or Disable_Login or Email_Bounced or Xero_Contact or Workgroup or Disable_Owner_Alerts or QuickBooks_Contact or Has_Avatar or PermissionInheritCompany or BirthDateYearOnly</Flags>
            <CreationDate>dateTime</CreationDate>
            <DateLastModified>dateTime</DateLastModified>
            <CurrencyIso4217>string</CurrencyIso4217>
            <Delete>boolean</Delete>
            <RemoveParentLinks>boolean</RemoveParentLinks>
            <OwnerID>int</OwnerID>
            <CreatedBy xsi:nil="true" />
            <CustomFields xsi:nil="true" />
            <Tags xsi:nil="true" />
            <SupplierRate>double</SupplierRate>
            <SupplierUnit>None or Minute or Hour or Day or Week or Month or Year or Kilogram or Litre or Gallon or Pound or Item or MegaByte or GigaByte or Instance or User or BiWeek or Word or Line or Student or Class or Foot or Metre or Pair or Inch or Cm or Kit or Piece or Mile or Kilometer or Ct or Voucher or Page or SquareFoot or Tonne or TroyOunce or Case or Location or Each or SquareYard or SquareMeter or Second</SupplierUnit>
            <UserGroups xsi:nil="true" />
            <EntityHashID>string</EntityHashID>
            <LinkedInID>string</LinkedInID>
            <LinkedInUrl>string</LinkedInUrl>
            <TwitterID>string</TwitterID>
            <TwitterName>string</TwitterName>
            <TwitterUrl>string</TwitterUrl>
            <FacebookID>string</FacebookID>
            <FacebookName>string</FacebookName>
            <FacebookUrl>string</FacebookUrl>
            <IndustryType xsi:nil="true" />
            <GooglePlusSocialID>string</GooglePlusSocialID>
            <GooglePlusSocialUrl>string</GooglePlusSocialUrl>
          </Entity>
          <Entity>
            <CustomerCredentials>None or SupportPersonal or InvoicesPersonal or ProjectsPersonal or SupportCompany or InvoicesCompany or ProjectsCompany or ToDosPersonal or ToDosCompany or TimesheetsPersonal or TimesheetsCompany</CustomerCredentials>
            <EntityID>int</EntityID>
            <DirectoryLetter>string</DirectoryLetter>
            <Name>string</Name>
            <Email>string</Email>
            <Password>string</Password>
            <GooglePlusID>string</GooglePlusID>
            <GooglePicture>string</GooglePicture>
            <PasswordSHA256Salt>string</PasswordSHA256Salt>
            <PasswordSHA256Hash>string</PasswordSHA256Hash>
            <AlternateEmails xsi:nil="true" />
            <AlternateWebsites xsi:nil="true" />
            <LastActivity>dateTime</LastActivity>
            <Language>English or French or Welsh or Spanish or SpanishUS or Czech or German or Hungarian or Finnish or Hindi or Russian or Vietnamese or Portuguese or Danish or Italian or Greek or Norwegian or ChineseTraditional or Sinhala or Afrikaans or Tamil or Romanian or Monenegrin or Dutch or Swedish or Polish or Japanese or Lithuanian or Korean or ChineseSimplified</Language>
            <Website>string</Website>
            <OpenID>string</OpenID>
            <Flags>Sales_Lead or Customer or Supplier or Subscriber or Company or Person or Employee or Do_Not_Email or Inactive or Enable_Entry_Alerts or Disable_Login or Email_Bounced or Xero_Contact or Workgroup or Disable_Owner_Alerts or QuickBooks_Contact or Has_Avatar or PermissionInheritCompany or BirthDateYearOnly</Flags>
            <CreationDate>dateTime</CreationDate>
            <DateLastModified>dateTime</DateLastModified>
            <CurrencyIso4217>string</CurrencyIso4217>
            <Delete>boolean</Delete>
            <RemoveParentLinks>boolean</RemoveParentLinks>
            <OwnerID>int</OwnerID>
            <CreatedBy xsi:nil="true" />
            <CustomFields xsi:nil="true" />
            <Tags xsi:nil="true" />
            <SupplierRate>double</SupplierRate>
            <SupplierUnit>None or Minute or Hour or Day or Week or Month or Year or Kilogram or Litre or Gallon or Pound or Item or MegaByte or GigaByte or Instance or User or BiWeek or Word or Line or Student or Class or Foot or Metre or Pair or Inch or Cm or Kit or Piece or Mile or Kilometer or Ct or Voucher or Page or SquareFoot or Tonne or TroyOunce or Case or Location or Each or SquareYard or SquareMeter or Second</SupplierUnit>
            <UserGroups xsi:nil="true" />
            <EntityHashID>string</EntityHashID>
            <LinkedInID>string</LinkedInID>
            <LinkedInUrl>string</LinkedInUrl>
            <TwitterID>string</TwitterID>
            <TwitterName>string</TwitterName>
            <TwitterUrl>string</TwitterUrl>
            <FacebookID>string</FacebookID>
            <FacebookName>string</FacebookName>
            <FacebookUrl>string</FacebookUrl>
            <IndustryType xsi:nil="true" />
            <GooglePlusSocialID>string</GooglePlusSocialID>
            <GooglePlusSocialUrl>string</GooglePlusSocialUrl>
          </Entity>
        </AccessPortalContacts>
        <CompanyFlags>EnableAllAccessPortal or DisableAllAccessPortal or EnablePartialAccessPortal</CompanyFlags>
      </company>
    </SetCompany>
  </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <SetCompanyResponse xmlns="http://schema.veetro.com">
      <SetCompanyResult>
        <Branches>
          <Branch>
            <BranchID>int</BranchID>
            <Delete>boolean</Delete>
            <BranchName>string</BranchName>
            <IsPrimary>boolean</IsPrimary>
            <Addresses xsi:nil="true" />
            <Members xsi:nil="true" />
          </Branch>
          <Branch>
            <BranchID>int</BranchID>
            <Delete>boolean</Delete>
            <BranchName>string</BranchName>
            <IsPrimary>boolean</IsPrimary>
            <Addresses xsi:nil="true" />
            <Members xsi:nil="true" />
          </Branch>
        </Branches>
        <AccessPortalContacts>
          <Entity>
            <CustomerCredentials>None or SupportPersonal or InvoicesPersonal or ProjectsPersonal or SupportCompany or InvoicesCompany or ProjectsCompany or ToDosPersonal or ToDosCompany or TimesheetsPersonal or TimesheetsCompany</CustomerCredentials>
            <EntityID>int</EntityID>
            <DirectoryLetter>string</DirectoryLetter>
            <Name>string</Name>
            <Email>string</Email>
            <Password>string</Password>
            <GooglePlusID>string</GooglePlusID>
            <GooglePicture>string</GooglePicture>
            <PasswordSHA256Salt>string</PasswordSHA256Salt>
            <PasswordSHA256Hash>string</PasswordSHA256Hash>
            <AlternateEmails xsi:nil="true" />
            <AlternateWebsites xsi:nil="true" />
            <LastActivity>dateTime</LastActivity>
            <Language>English or French or Welsh or Spanish or SpanishUS or Czech or German or Hungarian or Finnish or Hindi or Russian or Vietnamese or Portuguese or Danish or Italian or Greek or Norwegian or ChineseTraditional or Sinhala or Afrikaans or Tamil or Romanian or Monenegrin or Dutch or Swedish or Polish or Japanese or Lithuanian or Korean or ChineseSimplified</Language>
            <Website>string</Website>
            <OpenID>string</OpenID>
            <Flags>Sales_Lead or Customer or Supplier or Subscriber or Company or Person or Employee or Do_Not_Email or Inactive or Enable_Entry_Alerts or Disable_Login or Email_Bounced or Xero_Contact or Workgroup or Disable_Owner_Alerts or QuickBooks_Contact or Has_Avatar or PermissionInheritCompany or BirthDateYearOnly</Flags>
            <CreationDate>dateTime</CreationDate>
            <DateLastModified>dateTime</DateLastModified>
            <CurrencyIso4217>string</CurrencyIso4217>
            <Delete>boolean</Delete>
            <RemoveParentLinks>boolean</RemoveParentLinks>
            <OwnerID>int</OwnerID>
            <CreatedBy xsi:nil="true" />
            <CustomFields xsi:nil="true" />
            <Tags xsi:nil="true" />
            <SupplierRate>double</SupplierRate>
            <SupplierUnit>None or Minute or Hour or Day or Week or Month or Year or Kilogram or Litre or Gallon or Pound or Item or MegaByte or GigaByte or Instance or User or BiWeek or Word or Line or Student or Class or Foot or Metre or Pair or Inch or Cm or Kit or Piece or Mile or Kilometer or Ct or Voucher or Page or SquareFoot or Tonne or TroyOunce or Case or Location or Each or SquareYard or SquareMeter or Second</SupplierUnit>
            <UserGroups xsi:nil="true" />
            <EntityHashID>string</EntityHashID>
            <LinkedInID>string</LinkedInID>
            <LinkedInUrl>string</LinkedInUrl>
            <TwitterID>string</TwitterID>
            <TwitterName>string</TwitterName>
            <TwitterUrl>string</TwitterUrl>
            <FacebookID>string</FacebookID>
            <FacebookName>string</FacebookName>
            <FacebookUrl>string</FacebookUrl>
            <IndustryType xsi:nil="true" />
            <GooglePlusSocialID>string</GooglePlusSocialID>
            <GooglePlusSocialUrl>string</GooglePlusSocialUrl>
          </Entity>
          <Entity>
            <CustomerCredentials>None or SupportPersonal or InvoicesPersonal or ProjectsPersonal or SupportCompany or InvoicesCompany or ProjectsCompany or ToDosPersonal or ToDosCompany or TimesheetsPersonal or TimesheetsCompany</CustomerCredentials>
            <EntityID>int</EntityID>
            <DirectoryLetter>string</DirectoryLetter>
            <Name>string</Name>
            <Email>string</Email>
            <Password>string</Password>
            <GooglePlusID>string</GooglePlusID>
            <GooglePicture>string</GooglePicture>
            <PasswordSHA256Salt>string</PasswordSHA256Salt>
            <PasswordSHA256Hash>string</PasswordSHA256Hash>
            <AlternateEmails xsi:nil="true" />
            <AlternateWebsites xsi:nil="true" />
            <LastActivity>dateTime</LastActivity>
            <Language>English or French or Welsh or Spanish or SpanishUS or Czech or German or Hungarian or Finnish or Hindi or Russian or Vietnamese or Portuguese or Danish or Italian or Greek or Norwegian or ChineseTraditional or Sinhala or Afrikaans or Tamil or Romanian or Monenegrin or Dutch or Swedish or Polish or Japanese or Lithuanian or Korean or ChineseSimplified</Language>
            <Website>string</Website>
            <OpenID>string</OpenID>
            <Flags>Sales_Lead or Customer or Supplier or Subscriber or Company or Person or Employee or Do_Not_Email or Inactive or Enable_Entry_Alerts or Disable_Login or Email_Bounced or Xero_Contact or Workgroup or Disable_Owner_Alerts or QuickBooks_Contact or Has_Avatar or PermissionInheritCompany or BirthDateYearOnly</Flags>
            <CreationDate>dateTime</CreationDate>
            <DateLastModified>dateTime</DateLastModified>
            <CurrencyIso4217>string</CurrencyIso4217>
            <Delete>boolean</Delete>
            <RemoveParentLinks>boolean</RemoveParentLinks>
            <OwnerID>int</OwnerID>
            <CreatedBy xsi:nil="true" />
            <CustomFields xsi:nil="true" />
            <Tags xsi:nil="true" />
            <SupplierRate>double</SupplierRate>
            <SupplierUnit>None or Minute or Hour or Day or Week or Month or Year or Kilogram or Litre or Gallon or Pound or Item or MegaByte or GigaByte or Instance or User or BiWeek or Word or Line or Student or Class or Foot or Metre or Pair or Inch or Cm or Kit or Piece or Mile or Kilometer or Ct or Voucher or Page or SquareFoot or Tonne or TroyOunce or Case or Location or Each or SquareYard or SquareMeter or Second</SupplierUnit>
            <UserGroups xsi:nil="true" />
            <EntityHashID>string</EntityHashID>
            <LinkedInID>string</LinkedInID>
            <LinkedInUrl>string</LinkedInUrl>
            <TwitterID>string</TwitterID>
            <TwitterName>string</TwitterName>
            <TwitterUrl>string</TwitterUrl>
            <FacebookID>string</FacebookID>
            <FacebookName>string</FacebookName>
            <FacebookUrl>string</FacebookUrl>
            <IndustryType xsi:nil="true" />
            <GooglePlusSocialID>string</GooglePlusSocialID>
            <GooglePlusSocialUrl>string</GooglePlusSocialUrl>
          </Entity>
        </AccessPortalContacts>
        <CompanyFlags>EnableAllAccessPortal or DisableAllAccessPortal or EnablePartialAccessPortal</CompanyFlags>
      </SetCompanyResult>
    </SetCompanyResponse>
  </soap:Body>
</soap:Envelope>

SOAP 1.2

The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.

POST /xml HTTP/1.1
Host: admin.worketc.com
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <SetCompany xmlns="http://schema.veetro.com">
      <company>
        <Branches>
          <Branch>
            <BranchID>int</BranchID>
            <Delete>boolean</Delete>
            <BranchName>string</BranchName>
            <IsPrimary>boolean</IsPrimary>
            <Addresses xsi:nil="true" />
            <Members xsi:nil="true" />
          </Branch>
          <Branch>
            <BranchID>int</BranchID>
            <Delete>boolean</Delete>
            <BranchName>string</BranchName>
            <IsPrimary>boolean</IsPrimary>
            <Addresses xsi:nil="true" />
            <Members xsi:nil="true" />
          </Branch>
        </Branches>
        <AccessPortalContacts>
          <Entity>
            <CustomerCredentials>None or SupportPersonal or InvoicesPersonal or ProjectsPersonal or SupportCompany or InvoicesCompany or ProjectsCompany or ToDosPersonal or ToDosCompany or TimesheetsPersonal or TimesheetsCompany</CustomerCredentials>
            <EntityID>int</EntityID>
            <DirectoryLetter>string</DirectoryLetter>
            <Name>string</Name>
            <Email>string</Email>
            <Password>string</Password>
            <GooglePlusID>string</GooglePlusID>
            <GooglePicture>string</GooglePicture>
            <PasswordSHA256Salt>string</PasswordSHA256Salt>
            <PasswordSHA256Hash>string</PasswordSHA256Hash>
            <AlternateEmails xsi:nil="true" />
            <AlternateWebsites xsi:nil="true" />
            <LastActivity>dateTime</LastActivity>
            <Language>English or French or Welsh or Spanish or SpanishUS or Czech or German or Hungarian or Finnish or Hindi or Russian or Vietnamese or Portuguese or Danish or Italian or Greek or Norwegian or ChineseTraditional or Sinhala or Afrikaans or Tamil or Romanian or Monenegrin or Dutch or Swedish or Polish or Japanese or Lithuanian or Korean or ChineseSimplified</Language>
            <Website>string</Website>
            <OpenID>string</OpenID>
            <Flags>Sales_Lead or Customer or Supplier or Subscriber or Company or Person or Employee or Do_Not_Email or Inactive or Enable_Entry_Alerts or Disable_Login or Email_Bounced or Xero_Contact or Workgroup or Disable_Owner_Alerts or QuickBooks_Contact or Has_Avatar or PermissionInheritCompany or BirthDateYearOnly</Flags>
            <CreationDate>dateTime</CreationDate>
            <DateLastModified>dateTime</DateLastModified>
            <CurrencyIso4217>string</CurrencyIso4217>
            <Delete>boolean</Delete>
            <RemoveParentLinks>boolean</RemoveParentLinks>
            <OwnerID>int</OwnerID>
            <CreatedBy xsi:nil="true" />
            <CustomFields xsi:nil="true" />
            <Tags xsi:nil="true" />
            <SupplierRate>double</SupplierRate>
            <SupplierUnit>None or Minute or Hour or Day or Week or Month or Year or Kilogram or Litre or Gallon or Pound or Item or MegaByte or GigaByte or Instance or User or BiWeek or Word or Line or Student or Class or Foot or Metre or Pair or Inch or Cm or Kit or Piece or Mile or Kilometer or Ct or Voucher or Page or SquareFoot or Tonne or TroyOunce or Case or Location or Each or SquareYard or SquareMeter or Second</SupplierUnit>
            <UserGroups xsi:nil="true" />
            <EntityHashID>string</EntityHashID>
            <LinkedInID>string</LinkedInID>
            <LinkedInUrl>string</LinkedInUrl>
            <TwitterID>string</TwitterID>
            <TwitterName>string</TwitterName>
            <TwitterUrl>string</TwitterUrl>
            <FacebookID>string</FacebookID>
            <FacebookName>string</FacebookName>
            <FacebookUrl>string</FacebookUrl>
            <IndustryType xsi:nil="true" />
            <GooglePlusSocialID>string</GooglePlusSocialID>
            <GooglePlusSocialUrl>string</GooglePlusSocialUrl>
          </Entity>
          <Entity>
            <CustomerCredentials>None or SupportPersonal or InvoicesPersonal or ProjectsPersonal or SupportCompany or InvoicesCompany or ProjectsCompany or ToDosPersonal or ToDosCompany or TimesheetsPersonal or TimesheetsCompany</CustomerCredentials>
            <EntityID>int</EntityID>
            <DirectoryLetter>string</DirectoryLetter>
            <Name>string</Name>
            <Email>string</Email>
            <Password>string</Password>
            <GooglePlusID>string</GooglePlusID>
            <GooglePicture>string</GooglePicture>
            <PasswordSHA256Salt>string</PasswordSHA256Salt>
            <PasswordSHA256Hash>string</PasswordSHA256Hash>
            <AlternateEmails xsi:nil="true" />
            <AlternateWebsites xsi:nil="true" />
            <LastActivity>dateTime</LastActivity>
            <Language>English or French or Welsh or Spanish or SpanishUS or Czech or German or Hungarian or Finnish or Hindi or Russian or Vietnamese or Portuguese or Danish or Italian or Greek or Norwegian or ChineseTraditional or Sinhala or Afrikaans or Tamil or Romanian or Monenegrin or Dutch or Swedish or Polish or Japanese or Lithuanian or Korean or ChineseSimplified</Language>
            <Website>string</Website>
            <OpenID>string</OpenID>
            <Flags>Sales_Lead or Customer or Supplier or Subscriber or Company or Person or Employee or Do_Not_Email or Inactive or Enable_Entry_Alerts or Disable_Login or Email_Bounced or Xero_Contact or Workgroup or Disable_Owner_Alerts or QuickBooks_Contact or Has_Avatar or PermissionInheritCompany or BirthDateYearOnly</Flags>
            <CreationDate>dateTime</CreationDate>
            <DateLastModified>dateTime</DateLastModified>
            <CurrencyIso4217>string</CurrencyIso4217>
            <Delete>boolean</Delete>
            <RemoveParentLinks>boolean</RemoveParentLinks>
            <OwnerID>int</OwnerID>
            <CreatedBy xsi:nil="true" />
            <CustomFields xsi:nil="true" />
            <Tags xsi:nil="true" />
            <SupplierRate>double</SupplierRate>
            <SupplierUnit>None or Minute or Hour or Day or Week or Month or Year or Kilogram or Litre or Gallon or Pound or Item or MegaByte or GigaByte or Instance or User or BiWeek or Word or Line or Student or Class or Foot or Metre or Pair or Inch or Cm or Kit or Piece or Mile or Kilometer or Ct or Voucher or Page or SquareFoot or Tonne or TroyOunce or Case or Location or Each or SquareYard or SquareMeter or Second</SupplierUnit>
            <UserGroups xsi:nil="true" />
            <EntityHashID>string</EntityHashID>
            <LinkedInID>string</LinkedInID>
            <LinkedInUrl>string</LinkedInUrl>
            <TwitterID>string</TwitterID>
            <TwitterName>string</TwitterName>
            <TwitterUrl>string</TwitterUrl>
            <FacebookID>string</FacebookID>
            <FacebookName>string</FacebookName>
            <FacebookUrl>string</FacebookUrl>
            <IndustryType xsi:nil="true" />
            <GooglePlusSocialID>string</GooglePlusSocialID>
            <GooglePlusSocialUrl>string</GooglePlusSocialUrl>
          </Entity>
        </AccessPortalContacts>
        <CompanyFlags>EnableAllAccessPortal or DisableAllAccessPortal or EnablePartialAccessPortal</CompanyFlags>
      </company>
    </SetCompany>
  </soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <SetCompanyResponse xmlns="http://schema.veetro.com">
      <SetCompanyResult>
        <Branches>
          <Branch>
            <BranchID>int</BranchID>
            <Delete>boolean</Delete>
            <BranchName>string</BranchName>
            <IsPrimary>boolean</IsPrimary>
            <Addresses xsi:nil="true" />
            <Members xsi:nil="true" />
          </Branch>
          <Branch>
            <BranchID>int</BranchID>
            <Delete>boolean</Delete>
            <BranchName>string</BranchName>
            <IsPrimary>boolean</IsPrimary>
            <Addresses xsi:nil="true" />
            <Members xsi:nil="true" />
          </Branch>
        </Branches>
        <AccessPortalContacts>
          <Entity>
            <CustomerCredentials>None or SupportPersonal or InvoicesPersonal or ProjectsPersonal or SupportCompany or InvoicesCompany or ProjectsCompany or ToDosPersonal or ToDosCompany or TimesheetsPersonal or TimesheetsCompany</CustomerCredentials>
            <EntityID>int</EntityID>
            <DirectoryLetter>string</DirectoryLetter>
            <Name>string</Name>
            <Email>string</Email>
            <Password>string</Password>
            <GooglePlusID>string</GooglePlusID>
            <GooglePicture>string</GooglePicture>
            <PasswordSHA256Salt>string</PasswordSHA256Salt>
            <PasswordSHA256Hash>string</PasswordSHA256Hash>
            <AlternateEmails xsi:nil="true" />
            <AlternateWebsites xsi:nil="true" />
            <LastActivity>dateTime</LastActivity>
            <Language>English or French or Welsh or Spanish or SpanishUS or Czech or German or Hungarian or Finnish or Hindi or Russian or Vietnamese or Portuguese or Danish or Italian or Greek or Norwegian or ChineseTraditional or Sinhala or Afrikaans or Tamil or Romanian or Monenegrin or Dutch or Swedish or Polish or Japanese or Lithuanian or Korean or ChineseSimplified</Language>
            <Website>string</Website>
            <OpenID>string</OpenID>
            <Flags>Sales_Lead or Customer or Supplier or Subscriber or Company or Person or Employee or Do_Not_Email or Inactive or Enable_Entry_Alerts or Disable_Login or Email_Bounced or Xero_Contact or Workgroup or Disable_Owner_Alerts or QuickBooks_Contact or Has_Avatar or PermissionInheritCompany or BirthDateYearOnly</Flags>
            <CreationDate>dateTime</CreationDate>
            <DateLastModified>dateTime</DateLastModified>
            <CurrencyIso4217>string</CurrencyIso4217>
            <Delete>boolean</Delete>
            <RemoveParentLinks>boolean</RemoveParentLinks>
            <OwnerID>int</OwnerID>
            <CreatedBy xsi:nil="true" />
            <CustomFields xsi:nil="true" />
            <Tags xsi:nil="true" />
            <SupplierRate>double</SupplierRate>
            <SupplierUnit>None or Minute or Hour or Day or Week or Month or Year or Kilogram or Litre or Gallon or Pound or Item or MegaByte or GigaByte or Instance or User or BiWeek or Word or Line or Student or Class or Foot or Metre or Pair or Inch or Cm or Kit or Piece or Mile or Kilometer or Ct or Voucher or Page or SquareFoot or Tonne or TroyOunce or Case or Location or Each or SquareYard or SquareMeter or Second</SupplierUnit>
            <UserGroups xsi:nil="true" />
            <EntityHashID>string</EntityHashID>
            <LinkedInID>string</LinkedInID>
            <LinkedInUrl>string</LinkedInUrl>
            <TwitterID>string</TwitterID>
            <TwitterName>string</TwitterName>
            <TwitterUrl>string</TwitterUrl>
            <FacebookID>string</FacebookID>
            <FacebookName>string</FacebookName>
            <FacebookUrl>string</FacebookUrl>
            <IndustryType xsi:nil="true" />
            <GooglePlusSocialID>string</GooglePlusSocialID>
            <GooglePlusSocialUrl>string</GooglePlusSocialUrl>
          </Entity>
          <Entity>
            <CustomerCredentials>None or SupportPersonal or InvoicesPersonal or ProjectsPersonal or SupportCompany or InvoicesCompany or ProjectsCompany or ToDosPersonal or ToDosCompany or TimesheetsPersonal or TimesheetsCompany</CustomerCredentials>
            <EntityID>int</EntityID>
            <DirectoryLetter>string</DirectoryLetter>
            <Name>string</Name>
            <Email>string</Email>
            <Password>string</Password>
            <GooglePlusID>string</GooglePlusID>
            <GooglePicture>string</GooglePicture>
            <PasswordSHA256Salt>string</PasswordSHA256Salt>
            <PasswordSHA256Hash>string</PasswordSHA256Hash>
            <AlternateEmails xsi:nil="true" />
            <AlternateWebsites xsi:nil="true" />
            <LastActivity>dateTime</LastActivity>
            <Language>English or French or Welsh or Spanish or SpanishUS or Czech or German or Hungarian or Finnish or Hindi or Russian or Vietnamese or Portuguese or Danish or Italian or Greek or Norwegian or ChineseTraditional or Sinhala or Afrikaans or Tamil or Romanian or Monenegrin or Dutch or Swedish or Polish or Japanese or Lithuanian or Korean or ChineseSimplified</Language>
            <Website>string</Website>
            <OpenID>string</OpenID>
            <Flags>Sales_Lead or Customer or Supplier or Subscriber or Company or Person or Employee or Do_Not_Email or Inactive or Enable_Entry_Alerts or Disable_Login or Email_Bounced or Xero_Contact or Workgroup or Disable_Owner_Alerts or QuickBooks_Contact or Has_Avatar or PermissionInheritCompany or BirthDateYearOnly</Flags>
            <CreationDate>dateTime</CreationDate>
            <DateLastModified>dateTime</DateLastModified>
            <CurrencyIso4217>string</CurrencyIso4217>
            <Delete>boolean</Delete>
            <RemoveParentLinks>boolean</RemoveParentLinks>
            <OwnerID>int</OwnerID>
            <CreatedBy xsi:nil="true" />
            <CustomFields xsi:nil="true" />
            <Tags xsi:nil="true" />
            <SupplierRate>double</SupplierRate>
            <SupplierUnit>None or Minute or Hour or Day or Week or Month or Year or Kilogram or Litre or Gallon or Pound or Item or MegaByte or GigaByte or Instance or User or BiWeek or Word or Line or Student or Class or Foot or Metre or Pair or Inch or Cm or Kit or Piece or Mile or Kilometer or Ct or Voucher or Page or SquareFoot or Tonne or TroyOunce or Case or Location or Each or SquareYard or SquareMeter or Second</SupplierUnit>
            <UserGroups xsi:nil="true" />
            <EntityHashID>string</EntityHashID>
            <LinkedInID>string</LinkedInID>
            <LinkedInUrl>string</LinkedInUrl>
            <TwitterID>string</TwitterID>
            <TwitterName>string</TwitterName>
            <TwitterUrl>string</TwitterUrl>
            <FacebookID>string</FacebookID>
            <FacebookName>string</FacebookName>
            <FacebookUrl>string</FacebookUrl>
            <IndustryType xsi:nil="true" />
            <GooglePlusSocialID>string</GooglePlusSocialID>
            <GooglePlusSocialUrl>string</GooglePlusSocialUrl>
          </Entity>
        </AccessPortalContacts>
        <CompanyFlags>EnableAllAccessPortal or DisableAllAccessPortal or EnablePartialAccessPortal</CompanyFlags>
      </SetCompanyResult>
    </SetCompanyResponse>
  </soap12:Body>
</soap12:Envelope>