I have a xb2net webserver running on localhost (port 80).
My xbase written client can invoke SOAP-actions on this server.
(only the relevant part):
var xmlhttp = new XMLHttpRequest();
xmlhttp.open('POST', 'http://localhost:80', true)
xmlhttp.setRequestHeader('SOAPAction', '"Here I should specify ny SOAP-action, but which syntax?");
xmlhttp.send( "Here I specify my XML-Request, which I think is ok");
Full example on: https://stackoverflow.com/questions/124 ... ap-example
Anyone any experience with writing such a client ?
Thanks for the hint about Ajax.
I searched for some samples and it looks easy.
All examples use something like:
var webserUrl = "http://localhost:62187/SampleService.asmx";
I don't understand the "SampleService.asmx". (Active server Methods).
What to specify for a xbnet-webserver ?
The function name on the xb2net server.What to specify for a xbnet-webserver ?
dispatcher == the Function WEB_dispatcher() on the xb2net Server.
the samples you find on the internet you have to adapt to your own needs. Your example calls on the server for which it was made a script file "SampleService.asmx" this process the request. In xb2net it MUST be the function name without prefix SWEB_ (HTTPS) or WEB_ (HTTP) and not a filename with a dot.
Thanks for this hint.
I tried to retrieve date/time from my soap-server. This is a SOAP-method which comes standard with
the xb2net-webserver software. See method; PROCEDURE SOAP_GetDateTime( oIn, oOut )
I do see logging in the transaction.log ->
2018-12-17 10:48:43 127.0.0.1 - NgSoapServer.exe DESKTOP-OE1DIA4 127.0.0.1 5242960 OPTIONS /GetDateTime etcetc..
I am surprised not to see "POST" , but instead I see "OPTIONS" ????
In the ajax I did specify type: "POST"
I don't get any date/time response from the server.
I have included my html/ajax/jquery soapclient as an attachment.
All suggestions are welcome.