Dominic Martino - 2008-09-19

I have a webservice which i am sending requests to. In the WSDL there are some complex types which are optional and thus I dont need to populate them. I am using NUSOAP and what i am finding is that NUSOAP is putting a slef closing tag in the XML request for these optional elements, is there any way i can get NUSOAP to omitt these if the object is not populated? For example:

NUSOAP generates using the WSDL:

<Product>
    <EAN13>9780563384311</EAN13>
        <ProductIdentifier>
            <ProductIDType/>
        </ProductIdentifier>
    <SupplyQuantity/>
</Product>

I would like the XML request to be;

<Product>
    <EAN13>9780563384311</EAN13>
        <ProductIdentifier>           
        </ProductIdentifier>
</Product>

Has any one got any ideas how i can achevie this? Otherwise I will have to manually compose the XML reqeust which seems abit of a backwards step!

Thanks

Dom