NetTalk Central

Author Topic: Webservices Test Required Please  (Read 3971 times)

Edwin Hannan

  • Jr. Member
  • **
  • Posts: 79
    • View Profile
    • Email
Webservices Test Required Please
« on: January 12, 2016, 10:17:38 AM »
Hi All

I have a test NT 9.01 webserver at https://81.168.23.148:5126 with a webservice named database and method dbCustomer.

The certificate used is a self signed cert created by NT 9

I can send data to the webservice using REST and HTTP post (SOAP is not functional yet, see my post yesterday regarding this), from local and remote hosts.

I am testing this with a company in India and they cannot send any data using HTTP POST and receive an error (see attached screen shot), mentions 'Error in Site Javascript' ????? I dont see any error in my POSTS.

Here is the data I am POSTING via HTTP as per the NT Webserver window for last post:-

Accept-Encoding:  gzip
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.16) Gecko/20110319 Firefox/3.6.16 ( .NET CLR 3.5.30729; .NET4.0C)
Host: 81.168.23.148:5126
Content-Length: 324
Connection: Keep-Alive

Refnum=0&date=&time=&source=KF&sourcename=Kingston%20finance&datainput=XML&underwriter=&aipstatus=&casestatus=&title1=Mr&firstnames1=Edwin&surname1=Hannan&dob1=57845&address1=sdjfhowejfopqerfgqer&postcode=sdfghj&hometel=11234567888&worktel=756455544234&mobile=4345345646467&AdverseNotes=skjdhdfilsedjfolejr&AIP_Action=insert

I would appreciate some help and advice in a resolution to this issue and invite yuo to post data as per the values in the above string and let me know if you are successful and if not...what then :-)

Many thanks in advance

Edwin
C10, NT 9.01 server




[attachment deleted by admin]

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Webservices Test Required Please
« Reply #1 on: January 13, 2016, 06:36:06 PM »
Hi Edwin,

I've tried connecting now, but the site is offline, so I guess you might be experimenting a bit.
But a couple comments off-the-bat;

a) what is the URL they are "Posting" To? you don't metion the _name_ of the method, but this would be one of the ways of calling it. so, for example, if the method was called "calculate" then the URL of the post would be

https://81.168.23.148:5126/Calculate

b) the screenshot shows the documentation, but before any formatting etc. Let me explain;

When you create the service it self-creates it's own documentation. this is designed to be viewed in a browser, with JavaScript and CSS etc. You should deploy the "web" folder with the exe, if you failed to do that you would see something like the screen-shot when accessing the documentation page from a browser. If the client fetched the documentation from a client that did not support CSS or JS then again you would see it something like in the screen-shot.

But it should be noted that it _is_ the documentation they went to. So If they were trying to actually access the service then they got the URL for it wrong. (So then that would be the next thing to explore.)

Cheers
Bruce

Edwin Hannan

  • Jr. Member
  • **
  • Posts: 79
    • View Profile
    • Email
Re: Webservices Test Required Please
« Reply #2 on: January 14, 2016, 03:40:06 AM »
Hi Bruce

My pc at the office decided to automatically update and restart (and the webserver was not installed as a service, hence it being off line :-()

Now back on line :-)

If you coult try again as per original post:-

I have a test NT 9.01 webserver at https://81.168.23.148:5126 with a webservice named database and method dbCustomer.

The certificate used is a self signed cert created by NT 9

Appreciate any feedback

Many thanks

Ed

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Webservices Test Required Please
« Reply #3 on: January 16, 2016, 01:40:48 AM »
It's ok right Ed? test not required?

Edwin Hannan

  • Jr. Member
  • **
  • Posts: 79
    • View Profile
    • Email
Re: Webservices Test Required Please
« Reply #4 on: January 16, 2016, 11:03:28 AM »
HI Bruce
I have tested to death using Nettalk web client and (SoapUI tesing tool today - I imported the WSDL and went from there) and I can insert new test leads ok, the programmers in India seem to be having issues inserting test leads, they sent me a test html file the other day which conatains a form and its action is std HTTP post, this does not work, see attached zip file.

They have all the documentation (as provided by Nettalk) so I do not understand, that's why I wanted another 3rd party to try and post a lead and report back.

I have a bunch of questions about WSDL and the web service documeation provided by Nettalk (specific to my app) so I will ask them in a seperate post later.

Thanks for all your help on this so far :-)

Appreciated

Ed

[attachment deleted by admin]