NetTalk Central

Author Topic: Generated xml.xmldata looks so strange  (Read 4582 times)

Wolfgang Orth

  • Sr. Member
  • ****
  • Posts: 251
    • View Profile
    • oData Wolfgang Orth
Generated xml.xmldata looks so strange
« on: September 21, 2017, 06:54:30 AM »
Hello Bruce and all others,

the generated xml.xmldata of my SOAP-Client looks so strange all of a sudden.

Attached you see two screenshots: ideal.PNG, real.PNG and real_2_with_Envelope.png.

One thing in that real.png is, that the SOPA-Envelope is missing. But I guess, that a) does not matter and b) is a question of setting a property properly. xml.SOAPenvelope = 1 did the trick.

But what makes me writting this post ist the strange formatting. Until yesterday (I believe) it looked indented correctly, but today I noticed that everything is on the far right now. Apparently thats the dernier crie nowadays, but its not, what I really wanted.

So, with the envelope it is indented correctly again, but now the closing branch is doubled.

What might have caused this, can I fix this and do I have to?

However, my own server does not complain yet. Would others do?

NB: when I removed that property SOAPEnvelope again and recompiled, the indenting of the request was okay again. For now I will go without Envelope.


Its always the little things that cause the headaches!

TIA
Wolfgang


« Last Edit: September 21, 2017, 07:16:24 AM by Wolfgang Orth »

Wolfgang Orth

  • Sr. Member
  • ****
  • Posts: 251
    • View Profile
    • oData Wolfgang Orth
Re: Generated xml.xmldata looks so strange
« Reply #1 on: September 24, 2017, 02:25:07 AM »
Hello Bruce,

this is how it looks, when I try to add the SOAPEnvelope on the Server-side:

* Server_builds_xml_response.PNG

* This_is_the_outcome.PNG

* How_it_ought_to_be.PNG

I am on Nettalk 9.30 here, if that matters.

For now I remove that property and send my program without it.

Suggestion: would it be possible, that the SOAPEnvelpe-property could be set in the Templates? (.... once you get your wider dialogues!)


enjoy Orlando!
Wolfgang

Wolfgang Orth

  • Sr. Member
  • ****
  • Posts: 251
    • View Profile
    • oData Wolfgang Orth
Re: Generated xml.xmldata looks so strange
« Reply #2 on: September 24, 2017, 02:52:43 AM »
Another one:

in my initial post I wrote somehow enigmatic about that indenting on the far right.

Meanwhile I learned, that once the EXE has started, the very first output is well-formatted and beginning on the left, as it is expected. But with each call of this method, the indenting grows.

In xfiles.CLW there is xFileXML.Construct Procedure(), where I found the property self.IndentBy. To me it seems as it the starting value for the lines is not reset with each call of this method. Thus it increments, until the lines reach around the globe. <g>

After some search I found self._indent, which gets increased with + self.IndentBy. It seems as if setting xml._Indent to zero inside my calling request each time I build a new one, fixes this behaviour.


At least one problem solved by now.

bye
Wolfgang

« Last Edit: September 24, 2017, 02:54:44 AM by Wolfgang Orth »

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Generated xml.xmldata looks so strange
« Reply #3 on: September 25, 2017, 06:01:24 AM »
I am not able to duplicate your problem Wolfgang, so I suspect an example may be needed.

cheers
Bruce

Wolfgang Orth

  • Sr. Member
  • ****
  • Posts: 251
    • View Profile
    • oData Wolfgang Orth
Re: Generated xml.xmldata looks so strange
« Reply #4 on: October 10, 2017, 08:55:16 AM »
- SOLVED -

Bruce pointed me to the fact, that in this ROUTINE I simply have had forgotten to set xml.DontCloseTags = 1.

I really did not see it!!!

Sorry for causing any turmoild and thanks a lot again
Wolfgang