SoapCore icon indicating copy to clipboard operation
SoapCore copied to clipboard

missing complex out params on client-side when return type is present

Open DmitryBryluk opened this issue 8 years ago • 2 comments

    [ServiceContract]
    public interface ISampleService
    {
        [OperationContract]
        bool PingComplexModelOut(ComplexModelInput inputModel, out ComplexModelResponse responseModel, out ComplexModelResponse responseModel2); // responseModel is null for bool, fine for void

        [OperationContract]
        bool EnumMethod(out MyEnum e); // e is not changed for bool, ok for void
    }

complex out params are missing when calling on client-side while return type is present in service method. when method is void, it is ok.

the problem is only client-side - while calling with SoapUI, raw xml output is fine

upd: when using [XmlAttribute] on fields of complex out param - these fields are missing even through SoapUI call

is it SoapCore intrinsic problem (i.e. can fix by myself)?

DmitryBryluk avatar Aug 02 '18 18:08 DmitryBryluk

seems gone with these fixes: https://github.com/DigDes/SoapCore/pull/111 https://github.com/DigDes/SoapCore/pull/112 at least for XmlSerializer with properly marked fields/classes/methods with serialize attributes DataContractSerializer seems still have these issues

DmitryBryluk avatar Aug 06 '18 18:08 DmitryBryluk

https://www.nuget.org/packages/SoapCore/0.9.8.4

kotovaleksandr avatar Aug 07 '18 11:08 kotovaleksandr