NetTalk Central

Author Topic: Webservices issue - REST and HTMLPOST ok but not SOAP  (Read 5009 times)

Edwin Hannan

  • Jr. Member
  • **
  • Posts: 79
    • View Profile
    • Email
Webservices issue - REST and HTMLPOST ok but not SOAP
« on: January 10, 2016, 03:07:51 PM »
HI All

I have been trying to put together a webservice to insert leads into a database, I followed the Web77 example and have a basic webservice that functions on for REST and HTML POST (I can test post leads and they are inserted into the database table aip.TPS) but SOAP 1.1 and 1.2 fails.

I have been looking at this issue for a few days now and still cannot get it to function..obviosly missing something 'obvious' but just can see it

I attach my solution, dct and aip.TPS (176k zip file)and hope if someone has the time to have a look and point me in the right direction.

Many thanks

Edwin

C10, NT 9.01, Jfiles, Xfiles, Stringtherory and self service



[attachment deleted by admin]

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Webservices issue - REST and HTMLPOST ok but not SOAP
« Reply #1 on: January 11, 2016, 06:28:20 PM »
Hi Edwin,

two small mistakes;

a) In the server, the record tag is misspelled as 'cutomer' instead of 'customer'.
b) In the client app the "action" variable should be 'AIP_Action' not 'Customer_Action'. Be careful to check the client procedure source carefully to make sure all references are changed, including the variable's external name, and also the name as used inside strings.

Cheers
Bruce

Edwin Hannan

  • Jr. Member
  • **
  • Posts: 79
    • View Profile
    • Email
Re: Webservices issue - REST and HTMLPOST ok but not SOAP
« Reply #2 on: January 12, 2016, 01:29:35 AM »
Hi Bruce

Thanyou so much for taking the time to check this for me, I will amend and recompile.

Much appreciated

Edwin

Edwin Hannan

  • Jr. Member
  • **
  • Posts: 79
    • View Profile
    • Email
Re: Webservices issue - REST and HTMLPOST ok but not SOAP
« Reply #3 on: January 12, 2016, 03:40:50 AM »
Hi Bruce

I have made the amendemnts and still no functional SOAP? (REST and HTTP Post all still ok)

I attach the webserver app and client to show my amendments, I just cannot see why this does not work, any chance of having another look.

Many thanks

Edwin
C10, NT9.01

[attachment deleted by admin]

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Webservices issue - REST and HTMLPOST ok but not SOAP
« Reply #4 on: January 13, 2016, 06:46:39 PM »
Hi Edwin,

Go to the clients app,
Go to the dbCustomer procedure in the tree
Right-Click, Source

Search for
Customer_Action.

this needs to be replaced by
AIP_Action

there are still 3 instances of Customer_Action in the code, two in embed code and one in generated code.
the Generated code is because the "External Name" of the local data variable (AIP_Action) is still set to Customer_Action.

Cheers
Bruce


Edwin Hannan

  • Jr. Member
  • **
  • Posts: 79
    • View Profile
    • Email
Re: Webservices issue - REST and HTMLPOST ok but not SOAP
« Reply #5 on: January 14, 2016, 03:35:13 AM »
Hi Bruce

I sincerely apologise for being rather 'DOH!!! on this, I thought I got 'em all

I will sort

Many thanks

Edwin

Edwin Hannan

  • Jr. Member
  • **
  • Posts: 79
    • View Profile
    • Email
Re: Webservices issue - REST and HTMLPOST ok but not SOAP
« Reply #6 on: January 14, 2016, 05:26:01 AM »
Hi Bruce

All sorted now REST, HTTP and SOAP 1.1 and SOAP1.2

Appreciate all your help and time on this,

Many thanks

Edwin