This call returns a list of all the departments defined for the HUB customer the MOL user is linked to. In the call, you can omit the deprecated fields CustomerID and OnlyWithEmptyAddress.
Please note: departments are created and managed directly by the MBE Center, so please refer to your MBE Center if you wish to update, add, or delete any of them.
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://www.onlinembe.eu/ws/">
<soapenv:Header/>
<soapenv:Body>
<ws:ListDepartmentsRequest>
<RequestContainer>
<Credentials>
<Username></Username>
<Passphrase></Passphrase>
</Credentials>
<InternalReferenceID></InternalReferenceID>
<CustomerID></CustomerID>
<!--Optional:-->
<OnlyWithEmptyAddress>?</OnlyWithEmptyAddress>
</RequestContainer>
</ws:ListDepartmentsRequest>
</soapenv:Body>
</soapenv:Envelope>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header/>
<SOAP-ENV:Body>
<ns3:ListDepartmentsRequestResponse xmlns:ns3="http://www.onlinembe.eu/ws/">
<RequestContainer>
<Department>
<ID>1525</ID>
<Name>Dip 1</Name>
<ContactName>Via Della Seta 45</ContactName>
<Address>Via Della Seta 45</Address>
<Address2/>
<Address3/>
<ZipCode>20142</ZipCode>
<City>Milano</City>
<Country>Italy</Country>
<Phone>0200202002</Phone>
<Email>nscaccianoce@mbeglobal.com</Email>
</Department>
<Department>
<ID>3093</ID>
<Name>Dip 2</Name>
<ContactName>Ref</ContactName>
<Address>Viale Lunigiana 35-37</Address>
<Address2/>
<Address3/>
<ZipCode>20125</ZipCode>
<City>Milano</City>
<Country>Italy</Country>
<Phone>0253573456</Phone>
<Email>nscaccianoce+523523523@mbeglobal.com</Email>
</Department>
</RequestContainer>
</ns3:ListDepartmentsRequestResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>