locked
webservice loses numerical values RRS feed

  • Question

  • Hi,

    I have a wsdl file to call a SOAP webservice.

    Unfortunately, the numeric values are not transmitted.


    Here is my C# code

    //create Lines NAV_TransferOrderLines.TransferOrderLines transferOrder_Lines = new NAV_TransferOrderLines.TransferOrderLines(); transferOrder_Lines.Document_No = "TRF190621"; transferOrder_Lines.Line_No = 10000 ;                 //Send data
                    _client_Lines.Create(ref transferOrder_Lines);

    However, I can see in Fiddler, that only the "String" fields and not the "Numeric" fields are transferred to the webservice.

    Dows anyone have an idea why?

    Best regards

    Thomas

    Thursday, July 30, 2020 8:03 AM

Answers

  • I solved the problem.

    There is a property

    transferOrder_Lines.Line_NoSpecified = true;

    When I set this property to "True", then the "Line_No" Value is send

    Best regards

    Thomas

    • Marked as answer by Thomas_4711 Thursday, July 30, 2020 8:42 AM
    Thursday, July 30, 2020 8:42 AM