NetTalk Central

Author Topic: web service with soap+xml  (Read 3757 times)

ramiro

  • Newbie
  • *
  • Posts: 47
    • View Profile
    • Email
web service with soap+xml
« on: January 13, 2015, 11:59:57 AM »
I am developing a web service with NetTalk 6.08 and Clarion8
apparently if the Content-Type of request is "application/Soap + xml"
not return the XML string and it is not posible process the response.
Is this a bug in this version? if so,
Do I need to upgrade to version 8 NetTalk?

Thank you in advance

urayoan

  • Full Member
  • ***
  • Posts: 222
    • View Profile
    • AZ Rock Radio
Re: web service with soap+xml
« Reply #1 on: January 13, 2015, 01:31:06 PM »
Don't know if this method exist in NT6, but maybe can help you

  p_web.ReplyContentType = p_web._GetContentType('.xml')
  p_web.ReplyContentFixed = 1
  packet.append('<?xml version="1.0" encoding="'&clip(p_web.site.HtmlCharset)&'"?>' & p_web.CRLF)
  p_web.ParseHTML(packet,1,0,Net:SendHeader+Net:DontCache)
  packet.setvalue('')

Alas, is recommended for security issues and features to upgrade to NT8 (worth every penny) and the WebService Method are very solid and easy to make WebServices.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: web service with soap+xml
« Reply #2 on: January 14, 2015, 05:57:14 AM »
Hi Ramiro,

>> I am developing a web service with NetTalk 6.08 and Clarion8

At least do yourself the favor of getting the latest NT6 build. The header you are looking to support was added in something after NT6, but you could edit netweb.clw yourself to add it in if you like - around line 5869 of netweb.clw.

Frankly though, if you are creating a web service, you will save a LOT of time and effort if you use NT8. This has templates specifically so you can create WebServices and WebServiceMethods. Apart from anything else it will be a lot easier to maintain your service into the future, and you'll be able to create a WSDL automatically from your app as well.

cheers
Bruce

ramiro

  • Newbie
  • *
  • Posts: 47
    • View Profile
    • Email
Re: web service with soap+xml
« Reply #3 on: January 14, 2015, 09:14:49 AM »
Thank You Bruce.

Yesterday buy the upgrade for NetTalk 8.
I hope everything easier from here on out.
Greetings and thank you very much again.
Ramiro