I have:
- Data to connect to external server (IP, login, password).
- Ready VPN-tunnel from external server to other machine.
- Local IP (192.168.....?wsdl) of this machine with the pack of services to ask (SOAP-query).
Task: Send SOAP-request to Local IP and take an XML-answer.
I know how to realise SOAP-request, but I don't understand how to connect to local IP across VPN, using PHP.
For example, here i send XMLHttpRequest() to 'url' variable. I have direct access to 'url' link. But when the access behind the VPN...
var url = "http://domain.com/MCAExportService/.....asmx";
function getKBM(client_iin) {
...
}
var xmlHTTP = new XMLHttpRequest();
xmlHTTP.open("POST", url, true);
...
xmlHTTP.send(xml_request);
UPD: I configured the LAMP on External server. Now I need to write a script, which send SOAP-request to Local server, connected with External server with VPN-tunnel. How can I interview Local server from External with script? And then send a request to it?