Jump to content

Using PHP to login and use SOAP protocol


tproudfit

Recommended Posts

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"

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.