PHP SoapClient removing element with name
I have a WSDL that has an element that requires an attribute: <xsd:complexType name="claim"> <xsd:annotation> <xsd:documentation>Claim Element</xsd:documentation> </xsd:annotation> <xsd:sequence> <!-- other elements removed --> </xsd:sequence> <xsd:attribute name="claimId" type="xsd:nonNegativeInteger" use="required" /> </xsd:complexType> In terms of generated xml, it should look like: <claims> <claim claimId="1"> <!-- elements removed --> </claim> <!-- more claims --> </claims> Within a foreach loop I am putting together an array of elements and using the attribute as part of the key: //