Jump to content

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"

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.