NetTalk Central

The Rest Of NetTalk => The Rest - Ask For Help => Topic started by: JohanR on May 25, 2016, 10:37:26 PM

Title: SOAP version 1.1 or 1.2
Post by: JohanR on May 25, 2016, 10:37:26 PM
Hi,

How do I go about specifying which version of soap the NT client must use?

This is one I know about

1.1
cSoap.ContentType = 'text/xml; charset=utf-8' 
or
1.2
cSoap.ContentType = 'application/soap+xml'

and

1.1 set the header
cSoap.customheader = 'SOAPAction: "http://iveri.com/Execute"'
1.2
Don't set any header

Am I missing anything?


thanks

Johan


Title: Re: SOAP version 1.1 or 1.2
Post by: JohanR on May 26, 2016, 12:04:50 AM

Cut and pasted from NG

Morning Johan,

The WebServices example
C:\Clarion10\Examples\NetTalk\Web Server\WebServiceRequiresXFiles (77)\client.app

probably has the best example of a client that can do SOAP 1.1 and/or SOAP 1.2.
It shows the differences between using one or using the other.

Cheers
Bruce