Home Forum Download/Upload Links Search

NetTalk User Group

NetTalk User Group Meeting!
Live Webinar!
Saturday Nov. 16 
7am PST
Click Here To Register!
Home arrow Forum arrow NetTalk Web Serverarrow Web Server - Ask For Helparrow Generated xml.xmldata looks so strange
NetTalk Central
October 19, 2017, 09:09:04 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to the NetTalk Central Forums!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Generated xml.xmldata looks so strange  (Read 128 times)
Wolfgang Orth
Full Member
***
Posts: 170



View Profile WWW
« 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 » Logged
Wolfgang Orth
Full Member
***
Posts: 170



View Profile WWW
« 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
Logged
Wolfgang Orth
Full Member
***
Posts: 170



View Profile WWW
« 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 » Logged
Bruce
Global Moderator
Hero Member
*****
Posts: 8786



View Profile
« 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
Logged
Wolfgang Orth
Full Member
***
Posts: 170



View Profile WWW
« 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
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!

Login Form

Welcome Guest.






Lost Password?
No account yet? Register
home contact search contact search