Menu

#1309 Issue with self-closing tag when upgrading from older gsoap version

v1.0 (example)
closed
None
5
2023-03-21
2022-11-29
Juan Perez
No

Hello team,

I'm working to update gsoap from older version (65) to a newer one (122) but the server does not like the newer version of the soap message generated by the client (gsoap).
Using the older version, it generates a closing tag like that but using the newer version it generates a self-closing tag <tag y="423">.
It's worth mentioning that the wsdl file haven't been modified from version 65.</tag>

Wondering if you can provide an advice for this situation.

Thank you guys.

Regards.
Juan Perez.

Discussion

  • Juan Perez

    Juan Perez - 2022-11-29

    Previous had wrong style, this one is correct:
    Using the older version, it generates a closing tag like that </tag> but using the newer version it generates a self-closing tag <tag y="423" />.
    It's worth mentioning that the wsdl file haven't been modified from version 65

     
  • Robert van Engelen

    The self closing tags are releatively new to reduce the amount of XML data sent. You can enable SOAP_XML_CANONICAL to send canonical XML without self-closing tags.

     
  • Robert van Engelen

    • status: open --> pending
    • assigned_to: Robert van Engelen
     
  • Robert van Engelen

    • status: pending --> closed
     

Log in to post a comment.