Topic: Integrate into single-sign on

Hey everyone. I was asked to see if I could come up with a forum to add to our single-sign on system that we developed. I'd love to integrate PunBB into our system. I'm new to this sort of thing, and I was given a month and a half to do it, but I don't really know where to start.

Looking at the documentation for our system, it looks like this method works by sending SOAP information, which is COMPLETELY new to me. Here's an example:

CreateAccount Function
-- SOAP Request

POST /SMDAuth/SMDAUTH.asmx HTTP/1.1
Host: localhost
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "https://server/SMDAuth/CreateAccount"

<?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>
    <CreateAccount xmlns="https://server/SMDAuth">
      <UserData>
        <LoginID>string</LoginID>
        <FirstName>string</FirstName>
        <LastName>string</LastName>
        <Email>string</Email>
        <Password>string</Password>
      </UserData>
      <AppIDd>int</AppID>
      <AuthPswd>string</AuthPswd>
    </CreateAccount>
  </soap:Body>
</soap:Envelope>

-- SOAP 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>
    <CreateAccountResponse xmlns="https://server/SMDAuth">
      <CreateAccountResult>
        <ErrCode>int</ErrCode>
        <ErrMsg>string</ErrMsg>
      </CreateAccountResult>
    </CreateAccountResponse>
  </soap:Body>
</soap:Envelope>

They included a ColdFusion example...

<CFTRY>
<CFSET #UserData#=#StructNew()#>
<CFSET UserData.LoginID=#Form.username#>
<CFSET UserData.FirstName=#ltrim(rtrim(mid(Form.fullname, find(",", Form.fullname, 1)+1, len(Form.fullname))))#>
<CFSET UserData.LastName=#ltrim(rtrim(mid(Form.fullname, 1, find(",", Form.fullname, 1)-1)))#>
<CFSET UserData.Email="#Form.email#">
<CFSET UserData.Password=#Form.password#>

<CFINVOKE Webservice="#SMDAuth_WSDL#"
        Method="CreateAccount"
        UserData="#UserData#"
        AppID="#SMDAuthh_AppID#"
        AuthPswd="#SMDAuth_AuthPswd#"
        returnVariable="addusr">

    <cfcatch type="Any">
        <cfset errorString=cfcatch.Message & " " & cfcatch.Detail>
        <cfset exception = cfcatch>
    <cfoutput><b>Error on calling SMDAuth web service (CreateAccount method):</b><br><br>#errorString#<Br><br>
    <b>Please call help desk!</b>
    </cfoutput>
    <cfabort>
    </cfcatch>
</CFTRY>

<CFIF #addusr.ErrCode# is not 0>
    <CFOUTPUT>#addusr.ErrMsg#</Cfoutput>
    <CFABORT>
</CFIF>

Where do I start??? lol... If I can't figure out how to start it within the next week or so, I'm just going to tell them I don't have enough experience and that a seasoned developer should probably do it.

BUT, I would love to learn how to do it. Maybe someone can just point me in the right direction?

Thanks in advance!

Re: Integrate into single-sign on

Anyone?

Re: Integrate into single-sign on

I wouldn't know where to start. Here's a good read on SOAP+PHP: http://developer.apple.com/internet/web … apphp.html

"Programming is like sex: one mistake and you have to support it for the rest of your life."