I have a pretty abnormal(IMHO) error that it’s being raised whenever I try do a request to a SOAP service:
Unmarshalling Error: unexpected element (uri:”http://www.domain.com/ws/servicename/”, local:”dummyArg”). Expected elements are <{}dummyArg>
The method that I’m calling has is defined as:
function GetData(const dummyArg: WideString): Array_Of_Data; stdcall;
I have little experience with SOAP therefore I’m this [ ] close to lose my mind, I couldn’t find any useful information on this.
Feel free to ask any question that might speed up the process in finding the issue.
EDIT: I’m using Delphi 2010, and I’ve called the method like so:
GetData(EmptyStr);, GetData('null'); and GetData('{}');
Thank you for your time.
I’ve managed to find a clean fix to my issue, just replace the invoke option in the initialization section of the unit from ioDocument to ioHasNamespace or ioHasAllSOAPActions and the SOAP request will be generated correctly, example:
change to
or
This is the cleanest fix I could find for this issue.