We have a SOAP service that specifies the namespace for the whole content but not the underlying types in the list. The effect is that the message can be mapped (using the good, old WSDL) but the list in that response comes empty (although the items are read) due to failed mapping.
The WSDL contains all the definitions as supposed to. The first xmlns value is correct too (verified against the autocreated proxy client reference). It's just a glitch in the second xmlns definition as it's empty. So while FindUsersByUserIdResponse is type declared, users is not.
<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>
<FindUsersByUserIdResponse xmlns="uri:wspisa.ams.se">
<users xmlns="">
<user>
<userId>197602081116</userId>
<globalAttributes/>
<applicationAttributes/>
</user>
</users>
</FindUsersByUserIdResponse>
</soapenv:Body>
</soapenv:Envelope>
The person responsible for said service is gone looong time ago. The complexity of logic makes it difficult to restructure the workflow. The best shot I have is to read in the full content of the envelope as plain text and start parsing manually. However, it's so against everything that's good on this Earth.
I've googled without finding anything more useful and before I start coding the atrocity of manual and custom XML-mapping, I wonder if there's a quicker way. Perhaps by altering the attributed namespaces in the Reference.cs file that points out the namespaces in the SOAP envelope.