I'm trying to create a Sub brand (using a self written SOAP client).
on wsdl SoftLayer_Brand#createObject asked for a parameter templateObject
that is a tns:SoftLayer_Brand
Checking this complex type on xsd file I got the file type and I'm passing the following hash to request
longName: "Company Long Name",
name: "Company Name",
keyName: "KEY_NAME",
account: {
address1: "123 5th Street",
city: "City",
companyName: "Company Name",
country: "US",
email: "user@mail.com",
firstName: "First",
lastName: "Last",
officePhone: '1234-1234',
postalCode: "11011",
state: "NY"
}
My client is sending the request using the following XML
<?xml version="1.0" encoding="UTF-8"?>
<env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="http://api.service.softlayer.com/soap/v3/" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Header>
<authenticate>
<username>SL00000</username>
<apiKey>apikeyhash</apiKey>
</authenticate>
</env:Header>
<env:Body>
<tns:createObject>
<templateObject>
<longName>Company Long Name</longName>
<name>Company Name</name>
<keyName>KEY_NAME</keyName>
<account>
<address1>123 5th Street</address1>
<city>City</city>
<companyName>Company Name - Master Account</companyName>
<country>US</country>
<email>user@mail.com</email>
<firstName>First</firstName>
<lastName>Last</lastName>
<officePhone>1234-1234</officePhone>
<postalCode>11011</postalCode>
<state>NY</state>
</account>
</templateObject>
</tns:createObject>
</env:Body>
</env:Envelope>
I've created Sub Brands before, but it's not working anymore, could you please point me if any parameter is missing.
On fog-softlayer we create this way https://github.com/fog/fog-softlayer/blob/master/examples/account.md#create-a-connection-to-softlayer-account-service (disclaimer: I'm one of fog softlayer maintainers)
Tried with parameters as shown on this (old) gist https://gist.github.com/underscorephil/377bd50e71ac02377008 and didn't work too.
Just would like to know if something changed or any validation is being applied to parameters.
Thank you