2009年3月2日月曜日

Windows Azure

Windows Azure SDK のデモプログラムを動かしてみる
  http://www.microsoft.com/azure/register.mspx

Windows Web Server 2008 の本環境ではすでに IIS7 は稼動しているが、
Azure SDK のためには SQL Server が必要となる。

 SQL Server Express 2008 のインストールには Installer のインストールが
 必要だが、これのインストールがメモリ不足のため実行できなかったため、
   SQL Server Express 2005 をインストールした。  

SQL Server Express 2008 with Tools をインストール。
( Windows Web Server 2008 には Windows Installer 4.5 の追加インストールは不要 ) 

その後、 Azure SDK や SQL Data Service SDK や
 Visual Web Develper 2008 Express Editon をインストールした。
 
 結果、現在は SQL Server は 2008 のバージョンとなっている。

 以下は Azure SDK 添付の sample.zip の中の Thumbnails のデモアプリを
 実行時のものである

  SQL Server が Development Storage のベースとして利用されている
  Development Storage が Azure のストレージ





SQL Server が起動していない場合、以下のようなエラーとなる。


This buffer is for notes you don't want to save, and for Lisp evaluation.
If you want to create a file, visit that file with C-x C-f,
then enter the text in that file's own buffer.
'/' アプリケーションでサーバー エラーが発生しました。

The Windows Azure storage services cannot be contacted via the current account
configuration or the local development storage tool is not running. Please start the
development storage tool if you run the service locally!

説明: 現在の Web 要求を実行中に、ハンドルされていない例外が発生しました。エラーに関する詳
および例外の発生場所については、スタック トレースを参照してください。

例外の詳細: System.Net.WebException: The Windows Azure storage services cannot be contacted via the current account configuration or the local development storage tool is not running. Please start the development storage tool if you run the service locally!


ソース エラー:


[関連したソースの行はありません]

ソース ファイル: Default.aspx.cs 行: 47

スタック トレース:

[WebException: The Windows Azure storage services cannot be contacted via the current account configuration or the local development storage tool is not running. Please start the development storage tool if you run the service locally!]

Microsoft.Samples.ServiceHosting.Thumbnails._Default.CreateOnceContainerAndQueue()
in Default.aspx.cs:47

Microsoft.Samples.ServiceHosting.Thumbnails._Default.GetPhotoGalleryContainer()
in Default.aspx.cs:58 Microsoft.Samples.ServiceHosting.Thumbnails._Default.Page_PreRender(Object sender, EventArgs e) in Default.aspx.cs:87 System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
System.EventHandler.Invoke(Object sender, EventArgs e) +0
System.Web.UI.Control.OnPreRender(EventArgs e) +8682870
System.Web.UI.Control.PreRenderRecursiveInternal() +80
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842


Sugar Portal for Joomla

http://www.sugarforge.org/frs/?group_id=474

Joomla の画面から SugarCRM のケース情報を登録できるようにすることができるツール

To allow joomla users to create and manage their Sugar cases from within joomla

しかし、
sugarCommnication.php の中で PHP の SoapClient を使用しているが、これに不具合があり
(Content-Length in HTTP header from PHP SOAP wrong)  この部分を厳密にチェックし
ている IIS7 だけがこの影響を受けて、動作しない。

Bug #43991 Content-Length in HTTP header from PHP SOAP wrong

インストール手順

http://dl.sugarforge.org/sugar-joomla/sugar-joomla/Joomla1.0.13-Sugar4.5.1Compatible/install.txt

Configure Sugar:

1. Activate the portal in Sugar in Admin->System Configuration by checking the
  Enable self-service portal integration? box.

カスタマーセルフサービスポータル セルフサービスポータル統合を有効
ケース、ノート、その他のデータを外部のセルフサービスポータルで操作できるようにします。

2. Create the portal user in Admin->User Management->Create User.
Give the portal user a username/password. Username is generally something like 'portal'.
Check the "Portal Only User" check box and Save.

  SugarCRM 側でポータル専用のユーザーを作成

3. joomla 側にモジュールをインストールし設定

Install コンポーネント: 成功

Joomla Case portal that interoperates with SugarSuite

Sugar Case Self-Service Portal for Joomla Sugar Case Self-Service Portal Configuration

It appears that you already have a configuration table for the Sugar Self-Service Portal for Joomla.
Normally that means this is the second or third component you're installing as part of the Portal.
If, however, this is because of a previous version/installation of the Sugar Self-Service Portal for
Joomla that has not been used/installed for some time,
there might be compatibility problems if this table is different than the table I need.

4. メニュー画面から SugarCase というメニュータイプが作成されているので、
  このタイプを選択してメニューを作成

5. Joomla のログインして、作成したメニューを選択し、 SugarCRM のデータを登録する

エラー詳細

http://iis.museum-in-cloud.com/joomla/administrator/index2.php?option=com_sugarcases

Connection Error
error in msg parsing: XML error parsing SOAP payload on line 1: Empty document
Clienterror in msg parsing: XML error parsing SOAP payload on line 1: Empty documentRequest :

(Content-Length in HTTP header from PHP SOAP wrong)  この部分を厳密にチェックし
ている IIS7 だけがこの影響を受けて、動作しない。

$this->sugarClient = new SoapClient($configDir, array(
'soap_version' => SOAP_1_1 //SOAP_1_2 - 1.2 not supported by sugar nusoap

$result = $this->sugarClient->__soapCall('portal_login',
array(
'portal_auth'=>$this->sugarAuth,
'user_name'=>$this->portal_user,
'application_name'=>$this->appName
)
);