NetTalk Central

Author Topic: WebService - Method with returning TABLE and VIEW  (Read 5549 times)

walter.dasilva

  • Sr. Member
  • ****
  • Posts: 314
  • SOFTVALE
    • MSN Messenger - walter@softvale.com.br
    • View Profile
    • SOFTVALE
WebService - Method with returning TABLE and VIEW
« on: July 23, 2014, 10:19:49 AM »
HI,

i´m getting this error trying webservicemethod returning TABLE

This page contains the following errors:

error on line 4 at column 12: error parsing attribute name
error on line 4 at column 12: Encoding error
Below is a rendering of the page up to the first error.

And this one returning VIEW

This page contains the following errors:

error on line 6 at column 15: Encoding error
Below is a rendering of the page up to the first error.
Thanks,
« Last Edit: July 23, 2014, 10:25:28 AM by walter.dasilva »
Walter - SOFTVALE

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: WebService - Method with returning TABLE and VIEW
« Reply #1 on: July 23, 2014, 10:00:03 PM »
Hi Walter,

I will need an example app to duplicate the problem here.

cheers
Bruce

walter.dasilva

  • Sr. Member
  • ****
  • Posts: 314
  • SOFTVALE
    • MSN Messenger - walter@softvale.com.br
    • View Profile
    • SOFTVALE
Re: WebService - Method with returning TABLE and VIEW
« Reply #2 on: July 24, 2014, 10:43:42 AM »
Hi Bruce,

Attached a sample make with wswizard.
I´m using MSSQL

Thanks
Walter - SOFTVALE


[attachment deleted by admin]
Walter - SOFTVALE

walter.dasilva

  • Sr. Member
  • ****
  • Posts: 314
  • SOFTVALE
    • MSN Messenger - walter@softvale.com.br
    • View Profile
    • SOFTVALE
Re: WebService - Method with returning TABLE and VIEW
« Reply #3 on: July 24, 2014, 12:07:19 PM »
Hi Bruce,

1. Works with TopSpeed but not with MSSQL since you left FIELD in RETURN tab in blank
2. Error if content of field has (in my case) portuguese character

Regards,
Walter - SOFTVALE
Walter - SOFTVALE

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: WebService - Method with returning TABLE and VIEW
« Reply #4 on: July 24, 2014, 10:14:17 PM »
please explain more Walter... I'm not following exactly what you mean...

cheers
Bruce

walter.dasilva

  • Sr. Member
  • ****
  • Posts: 314
  • SOFTVALE
    • MSN Messenger - walter@softvale.com.br
    • View Profile
    • SOFTVALE
Re: WebService - Method with returning TABLE and VIEW
« Reply #5 on: July 25, 2014, 04:35:12 AM »
Hi Bruce,

I made two samples, one using topspeed, another one using MSSQL. The sample with topspeed works fine, but that one with MSSQL are getting error. But, if you define fields into RETURN TAB/FIELDS that sample MSSQL works fine, since the content don´t use Portuguese character.

That´s clear?
Walter - SOFTVALE

JZL

  • Newbie
  • *
  • Posts: 17
    • View Profile
    • Email
Re: WebService - Method with returning TABLE and VIEW
« Reply #6 on: July 25, 2014, 05:03:10 AM »
Hi W


I have added the following line to make Danish characters set works

xml.SaveEncoding = 'utf-8'  to the BuildResult routine it is not inherited from the template setting


« Last Edit: July 25, 2014, 05:30:04 AM by JZL »

walter.dasilva

  • Sr. Member
  • ****
  • Posts: 314
  • SOFTVALE
    • MSN Messenger - walter@softvale.com.br
    • View Profile
    • SOFTVALE
Re: WebService - Method with returning TABLE and VIEW
« Reply #7 on: July 25, 2014, 05:22:09 AM »
Yes Yes Yes,

that works

Cheers,
Walter - SOFTVALE

Walter - SOFTVALE

walter.dasilva

  • Sr. Member
  • ****
  • Posts: 314
  • SOFTVALE
    • MSN Messenger - walter@softvale.com.br
    • View Profile
    • SOFTVALE
Re: WebService - Method with returning TABLE and VIEW
« Reply #8 on: August 20, 2014, 07:09:55 AM »
Hi Bruce,

JZL´s tips solved problem when we use utf-8 character with web service. is this the only way or WS must respect NT global properties?

Cheers
Walter
Walter - SOFTVALE

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: WebService - Method with returning TABLE and VIEW
« Reply #9 on: August 20, 2014, 10:25:06 PM »
this is automatic in build 8.25
(ie _all_ SOAP output is utf-8, regardless of the charset of your web site.)

cheers
Bruce

walter.dasilva

  • Sr. Member
  • ****
  • Posts: 314
  • SOFTVALE
    • MSN Messenger - walter@softvale.com.br
    • View Profile
    • SOFTVALE
Re: WebService - Method with returning TABLE and VIEW
« Reply #10 on: August 21, 2014, 12:54:16 PM »
Right,

I'm using POST this time

Thanks Bruce
Walter - SOFTVALE