I imported a WSDL into my project for a 3rd party system. (The WSDL is a nightmare)
Anyway in order for my request to receive a valid response i have been told by the 3rd party i need to send through an empty object in one of the requests.
Lets assume a valid request looks like the below:
<Request>
<UserID>123456</UserID>
<ComplexObj/>
</Request>
If i send the above XML manually in SOAP UI then I get a valid response. However because I'm doing this in C# i have imported the WSDL into visual studio and have a service reference generated i cannot figure out a way for the request to generate the empty ComplexObj.
If i set ComplexObj to null in the code it is not included in the request. If i create a new instance of the ComplexObj then the request includes all the variables within the ComplexObj which is also invalid.