NetTalk Central

Author Topic: Example Web42 broken in NT8?  (Read 5101 times)

Neil Porter

  • Jr. Member
  • **
  • Posts: 88
    • View Profile
    • Email
Example Web42 broken in NT8?
« on: March 24, 2014, 06:23:57 AM »
I've just tried to convert one of my smaller NT6 apps to NT8 just to dip a toe into the water.

The app is a effectively a small soap server.

The app keeps crashing when it tries to serve xml files.

The code in question is this:

  ! finally send result
  p_web.ParseHTML(Xml.XmlData,1,Xml.XmlDataLen,Net:NoHeader)

I understand that ParseHTML is now expecting to be passed a StringTheory object so i've changed the code to be:

 Packet.append(xml.XmlData)
 p_web.ParseHTML(packet,1,0,Net:NoHeader)

The packet.append statement now crashes

I'm seeing this in Example 42 as well, and wondered if anyone else is seeing this, or has found a work around?

Regards,

Neil.
Clarion 11.0.13244
NetTalk 11.04

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Example Web42 broken in NT8?
« Reply #1 on: March 24, 2014, 06:53:51 AM »
try;
 Packet.append(xml.XmlData)
 p_web.ParseHTML(packet,1,packet.Length(),Net:NoHeader)

I don't think it will matter but worth a try.
Which build of NT8 are you using?

cheers
Bruce

Neil Porter

  • Jr. Member
  • **
  • Posts: 88
    • View Profile
    • Email
Re: Example Web42 broken in NT8?
« Reply #2 on: March 24, 2014, 08:23:03 AM »
Hi Bruce,

I'm running NT 8.02

I'm afraid your suggestion didn't work.

I'm not sure if the attached screen shot gives you any pointers.

Regards,

Neil.


[attachment deleted by admin]
Clarion 11.0.13244
NetTalk 11.04

urayoan

  • Full Member
  • ***
  • Posts: 222
    • View Profile
    • AZ Rock Radio
Re: Example Web42 broken in NT8?
« Reply #3 on: March 24, 2014, 08:31:47 AM »
Neil, make sure the StringTheory Global Extension is registered.

Cheers

Neil Porter

  • Jr. Member
  • **
  • Posts: 88
    • View Profile
    • Email
Re: Example Web42 broken in NT8?
« Reply #4 on: March 24, 2014, 08:37:21 AM »
I admit, I did forget it initially,

but the compiler warning helped me out there.

String Theory version 2.04 was added, and I still get the error.

Regards,

Neil.

Clarion 11.0.13244
NetTalk 11.04

Manuel

  • Newbie
  • *
  • Posts: 41
    • View Profile
Re: Example Web42 broken in NT8?
« Reply #5 on: May 26, 2014, 01:13:14 PM »
Hi,

Have same problem NT7 to NT8 SOAP server.

Example 42 fails. C8, NT8.12, Xfiles 2.52, ST 2.06

Any idea?


Manuel

 

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Example Web42 broken in NT8?
« Reply #6 on: May 26, 2014, 10:14:26 PM »
I hadn't updated that example to NT8 yet - although I have now.
On the up side it did GPF on run here, so it's likely that your code has the same problem.

The problem was a line of embed code

packet = ''

This is no longer a legal construction, because packet is an object. Follow the instructions here;
http://www.capesoft.com/docs/NetTalk8/NetTalk8Upgrade.htm#NewPacket
to find this problem in your own code.

the line should now read;

Packet.SetValue('')

cheers
Bruce

Manuel

  • Newbie
  • *
  • Posts: 41
    • View Profile
Re: Example Web42 broken in NT8?
« Reply #7 on: May 27, 2014, 07:09:17 AM »
It works.

Thanks,

Regards

Manuel