Flyer Posted February 5, 2012 Report Share Posted February 5, 2012 Hi, I am trying to set up a new VA using phpVMS and kACARS_Free v1.0.1.1 and Module v1.0.1.1. When I try to Log In from the kACARS_Free I get the typical "Notify System Administrator of the Switch error. Data not recieved. Switch = Verify" I have researched the forum for similar problems and I have tried all the suggestions. Unfortunately I have not been able to resolve this issue so far. I will appreciate your help. I will try to describe my environment and what I have done from simple to more complex: 1- I have entered the URL as http://dev.flypgsva.org without the ending slash. 2- The client and the module are the latest available from the download site. 3- The ISP is a professional one and they claim to support HTTP/XML. In fact I can see XML Support Active through phpinfo.php. 4- Server is running Linux. 5- I have tired to analyse the traffic using Wireshark and I have seen the login request with the attached XML going to the server. The screenshot of the login http/xml The response from the server is strange; it first acknowledges the receipt of the http xml traffic, but it then resets the connection ! I could not figure out what is making the server reset the connection. I have looked at mb_detect_encoding and allow_url_fopen parameters, but still no success. I will appreciate if you could let me know which php settings and what other server side settings are required. Thank you and Kind Regards, Ali Quote Link to comment Share on other sites More sharing options...
Flyer Posted February 6, 2012 Author Report Share Posted February 6, 2012 Hi, I spoke to my ISP and they told me that the http/xml request HEADER is empty ! This means that the kACARS_Free application is not inserting any data like application name so forth to the header before sending the http/xml request to the website. Our ISP is setup such that if they receive a request with empty header they RESET THE TRANSMISSION. As a solution, they have an exclusion list of websites that may receive requests with empty header on their newtork. They have added my website name to this exclusion list, and this resolved the problem. The kACARS_Free client is now able to login to the website. Having resolved or rather bypassed this problem, I would like to ask Jeffrey, if he could take a look at the code to see if he can easily modify it to insert perhaps an application name into the header before doing the POST request. I am sure if he does this, it may resolve similar issues for many other users. I am waiting for Jeffrey's response before marking this entry as RESOLVED. Kind Regards, Ali Quote Link to comment Share on other sites More sharing options...
Guest lorathon Posted February 6, 2012 Report Share Posted February 6, 2012 I will look into this. Quote Link to comment Share on other sites More sharing options...
Flyer Posted February 6, 2012 Author Report Share Posted February 6, 2012 Further to my reply above, I communicated with my ISP to obtain more detailed info to share with you. Here is what I got: They have provided me a php example of the code that would fill out the header according to SOAP standards. Curl libraries are used. This is to illustrate what needs to be done: $tuCurl = curl_init(); curl_setopt($tuCurl, CURLOPT_URL, "http://example.com/path/for/soap/url/"); curl_setopt($tuCurl, CURLOPT_VERBOSE, 0); curl_setopt($tuCurl, CURLOPT_HEADER, 0); curl_setopt($tuCurl, CURLOPT_POST, 1); curl_setopt($tuCurl, CURLOPT_SSL_VERIFYPEER, 1); curl_setopt($tuCurl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($tuCurl, CURLOPT_POSTFIELDS, $data); curl_setopt($tuCurl, CURLOPT_HTTPHEADER, array("Content-Type: text/xml","SOAPAction: \"/soap/action/query\"", "Content-length: ".strlen($data))); You may also do a search for SOAP BY EXAMPLE to find examples using other languages. I know you need .NET example. Going through some of the exmaples on the web, I found out that, to do a search request to Google using a client software, it is also necessary to use a similar SOAP standard which is described in Google API documentation. I hope this helps. Kind Regards, Ali Quote Link to comment Share on other sites More sharing options...
Guest lorathon Posted February 6, 2012 Report Share Posted February 6, 2012 Thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.