私はColdFusion開発者ですが、ログインページでJoomlaのWebサイト(PHP)を手渡しています。ログインフォームの提出は、ログインWebサービスを呼び出す必要があります。Joomla PHP SOAP Webサービス
私はJoomlaのログインモジュールを有効にして、Webサービスに接続する方法を考えています。私は一日をいくつかの情報を探し出し、成功なしに助けようと過ごしました。
ログインWebサービスはSessionIDを返します。これは、Webサイト上の他のWebサービス呼び出しと一緒に渡す必要があるキーです。したがって、ログインが出発点です。
Webサービス要求と応答は次のようになります。現時点では
POST /proxy/dataaccess.asmx HTTP/1.1
Host: portal.compass.net.nz
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<Login xmlns="http://portal/dataaccess.asmx">
<LogonType>int</LogonType>
<UserName>string</UserName>
<Password>string</Password>
</Login>
</soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<LoginResponse xmlns="http://portal/dataaccess.asmx">
<LoginResult>
<IsValid>boolean</IsValid>
<ResponseCode>int</ResponseCode>
<ResponseText>string</ResponseText>
<SessionID>string</SessionID>
<StaffID>int</StaffID>
<PortalID>int</PortalID>
<Roles>string</Roles>
<Name>string</Name>
<UserName>string</UserName>
</LoginResult>
</LoginResponse>
</soap12:Body>
</soap12:Envelope>
、システムは、DLLをしてASPのセットアップに取り組んでいるが、私はJoomlaのサイトにそれを移植しています。 これがどれほど難しいかわかりません。それは私には全く新しいものです。私は必要に応じてこれを手伝ってくれる人に支払うか、あなたのアマゾンのウィッシュリストに私を指差して、あなたのために何かを買うでしょう。基本的に私はPHPでJoomlaのテンプレートでこのWebサービスを呼び出す方法を知っている必要があり、WebServiceにSessionIDを返します。
私は他の手段を探していますが、助けてくれてありがとうございます。 – user460114