tproudfit Posted August 13, 2012 Share Posted August 13, 2012 I'm trying to use PHP to login to my database - called Agemni - and I am new to PHP and SOAP, and am doing my best to learn this stuff, but I need just a little bit of direction. I've read lots of different things about this, but I just don't understand. I need help understanding how to login to Agemni, and get a response that says it's been successful or not. SOAP client wsdl is here "https://www.agemni.com/_snet/AgemniLogin.asmx?WSDL" Here is the SOAP code that i would need to use to login: POST /_snet/AgemniLogin.asmx HTTP/1.1 Host: www.agemni.com Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "https://webservice.agemni.com/agLogin" <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <agLogin xmlns="https://webservice.agemni.com"> <dn>string</dn> <username>string</username> <password>string</password> </agLogin> </soap:Body> </soap:Envelope> Here is the code for the response: HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <agLoginResponse xmlns="https://webservice.agemni.com"> <agLoginResult>xml</agLoginResult> </agLoginResponse> </soap:Body> </soap:Envelope> I need help converting this to a php request. if anyone would be willing to help, i would really appreciate it! More information on the login is located here "https://www.agemni.com/_snet/AgemniLogin.asmx?op=agLogin" Link to comment https://forums.phpfreaks.com/topic/267014-using-php-to-login-and-use-soap-protocol/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.