NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: Edwin Hannan 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]
-
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
-
Hi Bruce
Thanyou so much for taking the time to check this for me, I will amend and recompile.
Much appreciated
Edwin
-
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]
-
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
-
Hi Bruce
I sincerely apologise for being rather 'DOH!!! on this, I thought I got 'em all
I will sort
Many thanks
Edwin
-
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