I thought that 1679 fixed this, but it is not the case.
Here is the wiredump
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<retrieveResponse xmlns="urn:partner.soap.sforce.com">
<result xsi:type="sf:sObject" xmlns:sf="urn:sobject.partner.soap.sforce.com">
<sf:type>Account</sf:type>
<sf:Id>001300000021QoGAAU</sf:Id>
<sf:Id>001300000021QoGAAU</sf:Id>
<sf:Name>Burlington Textiles Corp of America</sf:Name>
<sf:Site xsi:nil="true"/> <== PROBLEM IS HERE *****
<sf:Phone>(336) 222-7000</sf:Phone>
<sf:Fax>(336) 222-8000</sf:Fax>
<sf:BillingCity>Burlington</sf:BillingCity>
<sf:BillingCountry>USA</sf:BillingCountry>
<sf:BillingPostalCode>27215</sf:BillingPostalCode>
<sf:BillingStreet>525 S. Lexington Ave</sf:BillingStreet>
</result>
</retrieveResponse>
</soapenv:Body>
</soapenv:Envelope>
where (cf. partner.xsdl.xml) :
<element name="retrieveResponse">
<complexType>
<sequence>
<element name="result" type="ens:sObject" nillable="true" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
</complexType>
</element>
and
<complexType name="sObject">
<sequence>
<element name="type" type="xsd:string"/>
<element name="fieldsToNull" type="xsd:string" nillable="true" minOccurs="0" maxOccurs="unbounded"/>
<element name="Id" type="tns:ID" nillable="true" />
<any namespace="##targetNamespace" minOccurs="0" maxOccurs="unbounded" processContents="lax"/>
</sequence>
</complexType>
It seems that 'processContents="lax"' is not used to change the behaviour of wsdl4r : am I right ?
Rup