Hi guys,
I've got the following structure from the WSDL (its only a part for this post):
<s:complexType name="_artistProfile">
<s:sequence>
<s:element minOccurs="1" maxOccurs="1" name="Height"
type="s:double"/>
<s:element minOccurs="1" maxOccurs="1" name="Weight"
type="s:double"/>
<s:element minOccurs="1" maxOccurs="1" name="Hip"
type="s:double"/>
<s:element minOccurs="1" maxOccurs="1" name="Chest"
type="s:double"/>
<s:element minOccurs="1" maxOccurs="1" name="Waist"
type="s:double"/>
<s:element minOccurs="1" maxOccurs="1" name="ShoeSize"
type="s:double"/>
<s:element minOccurs="1" maxOccurs="1" name="BodyType"
type="tns:_bodyType"/>
<s:element minOccurs="1" maxOccurs="1" name="Complexion"
type="tns:_complexion"/>
<s:element minOccurs="1" maxOccurs="1" name="Ethnicity"
type="tns:_ethnicity"/>
<s:element minOccurs="1" maxOccurs="1" name="EyeColour"
type="tns:_eyeColour"/>
<s:element minOccurs="1" maxOccurs="1" name="BodyHairType"
type="tns:_bodyHairType"/>
<s:element minOccurs="1" maxOccurs="1" name="HairLength"
type="tns:_hairLength"/>
<s:element minOccurs="1" maxOccurs="1" name="HairColour"
type="tns:_hairColour"/>
<s:element minOccurs="1" maxOccurs="1" name="LicencesHeld"
type="tns:_licencesHeld"/>
<s:element minOccurs="1" maxOccurs="1" name="UniqueMarks"
type="tns:_uniqueMarks"/>
<s:element minOccurs="1" maxOccurs="1" name="DisabledArtist"
type="tns:_disabledArtist"/>
<s:element minOccurs="0" maxOccurs="1" name="ProfileSkills"
type="tns:ArrayOf_profileSkill"/>
</s:sequence>
</s:complexType>
<s:complexType name="ArrayOf_profileSkill">
- <s:sequence>
<s:element minOccurs="0" maxOccurs="unbounded" name="_profileSkill"
type="tns:_profileSkill" />
</s:sequence>
</s:complexType>
<s:complexType name="_profileSkill">
- <s:sequence>
<s:element minOccurs="1" maxOccurs="1" name="SkillGroup"
type="tns:_profileSkillGroup" />
<s:element minOccurs="0" maxOccurs="1" name="SkillName"
type="s:string" />
<s:element minOccurs="1" maxOccurs="1" name="SkillValue"
type="tns:_profileSkillValue" />
</s:sequence>
</s:complexType>
Now im having a real difficulty understanding how to construct this array using
PHP, Ive posted to many news groups and
yet no help.
For me this is the way that I "should" construct it according to examples that
I've seen on sites:
for ($.......)
{
$ArrayOf_profileSkills[]=array('SkillGroup' =>"SPORTS", 'SkillName' => "AAAA",
'SkillValue' => "BASIC");
}
now because of it being an array when I added it to the call function I do as
follows:
$ArtistProfile = array('Height' => $row['height'], 'Weight' =>$row['weight'],'Hip' =>0,'Chest' =>0,'Waist'
=>0,'ShoeSize' =>$row['shoesize'],'BodyType' =>"UNKN",'Complexion' =>"UNKN", 'Ethnicity' => $eth, 'EyeColour' =>
$eyeColour, 'BodyHairType' =>"UNKN", 'HairLength' =>"UNKN", 'HairColour' =>$hairColour, 'LicencesHeld' => $license,
'UniqueMarks' => "UNKN", 'DisabledArtist' => "UNKN", array('ProfileSkills' => $ab));
and the $ArtistProfile is used as a parameter in the call of the webservice. All the other attributes go through like
Height and Weight but the ProfileSkills comes through empty. I assume that I am creating my array in PHP incorrectly.
Can anyone help me with the construction of the array? Or give me any hints or pointers as I've been stuck on this for
long and have struggled to find help.
thanks in advance
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
|