Home

Advertisement

Customize
About this Journal
Links:
訂閱RSS! Intravnews - RSS Readerd for Outlook Add-In RSS Reader Download BizTalk Server官方網站 台灣BizTalk 客戶成功案例
Current Month
 12
3456789
10111213141516
17181920212223
24252627282930
31
Jul. 19th, 2005 @ 10:35 am [工具] BizTalk的Unit Test工具

這個工具看起來不錯,當你開發BizTalk的專案時,應該可以幫你節省許多測試的時間。

 

About this Entry
Jun. 16th, 2005 @ 02:02 am 各種Transaction在BizTalk Orchestration中的實作方式
這篇白皮書一定要看!http://msdn.microsoft.com/library/default.asp?url=/library/en-us/BTS_2004WP/html/ed17b4fc-ddc1-4a41-a134-7d11b2ea3a87.asp,教你如何實作Atomic Transaction/Compensation/MSDTC...
About this Entry
May. 23rd, 2005 @ 03:13 pm Windows Server 2003 SP1 & BizTalk SQL Adapter

Windows Server 2003 SP1Security Policy更嚴謹,例如MSDTC安全性加強,內建Firewall(Windows XP sp2一樣)等,因此若上了Windows Server 2003 SP1後,若你的BizTalk專案中有用到SQL Adapter,因SQL Adpater會用到MSDTC,一些安全性設定需調整,整理方法如下,

 

  1. Turning Off Remote Procedure Call Security on Windows 2003 Server  - 方法在此 - http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cossdk/html/8287866d-1944-4b47-85ce-b80a01af1555.asp
  2. Windows 2003那台的MSDTC相關安全屬性打開,並且設定Firewall允許MSDTC通過,方法如下。 原文在此 - http://msdn.microsoft.com/library/en-us/cossdk/html/2627a956-60b3-4d26-bc04-e0676ec97786.asp

 

What works differently?

After installing Windows Server 2003 Service Pack 1, all network communication coming out of or getting in to DTC is disabled. For example, if a COM+ object attempts to update a SQL database on a remote computer using a DTC transaction, the transaction fails. Conversely, if your computer is hosting a SQL database that components from remote computers try to access using a DTC transaction, their transactions fail.

How do I fix these issues?

If your transactions fail because of network connectivity, you can use MSDTC security properties, as described previously in this document, select the Network DTC Access check box, and then select the Allow Inbound and Allow Outbound check boxes, as appropriate.

If you want to change these setting programmatically as part of your Windows Server 2003 Service Pack 1 deployment, you can directly change the registry values that correspond to your desired setting as described in the table in “Securing all network communication by default,” earlier in this document. After you have changed the registry settings, you must restart the MSDTC service.

If you are using Windows Firewall to protect the computers in your organization, you must add MSDTC into the exception list in the Windows Firewall settings. To do so, use the following steps:

1.      In Control Panel, open Windows Firewall.

2.      Click the Exceptions tab, and then click Add Program.

3.      Click Browse, and then add c:\windows\system32\msdtc.exe.

4.      In Programs and Services, select the Msdtc.exe check box, and then click OK.

  1. 設完上述選項,重新開機並用dtctester測試MSDTC是否運作正常。
About this Entry
May. 6th, 2005 @ 10:51 am [技術] 一些BizTalk不錯的白皮書

Risk Scoring with BizTalk Server 2004 and the Business Rules Framework - 若你想深入了解BizTalk的Business Rule Engine如何深入應用,這會是一篇很好的文章。

Developing Integration Solutions with BizTalk Server 2004  - 快速了解如何使用BizTalk完成一個整合專案,包含Sample Codes。

BizTalk Server 2004 Convoy Deep Dive  - 很多人問我什麼是Convoy,只要你是BizTalk2004的深度使用者,一定要看這篇,包含Sample Codes。

 

 

About this Entry
Mar. 14th, 2005 @ 01:41 pm 如何驗證收進來的文件內容是否符合Schema?(Document Contents Validation)
1. 自訂一個Receive Pipeline,拉一個XML validator元件,選取你要驗證的Schema,當收進來的Message不符合Schema時,BizTalk會Suspend該Message並且Event Log會出現錯誤,詳細說明可以看一下這篇文章,http://martijnh.blogspot.com/2005/03/document-
contents-validation.html
2. 上述方法是當發現Message一旦不符合Schema時,會在第一個遇到的錯誤就丟出到Event Log。你可以自行擴充XML validator元件,讓它驗證完整份文件後,一次將全部錯誤丟出到Event Log。這篇文件有詳細說明,http://martijnh.blogspot.com/2005/03/xmlcompletevalidator-pipeline.html
About this Entry
Feb. 24th, 2005 @ 06:07 pm [進階] 如何用Stored Procedure快速刪除Suspended Message/Orchestration

透過HAT的介面Terminate所有Suspened Message/Orchestration較不方便較速度較慢,在BizTalk 2004 SP1安裝後,提供了一支Stored Procedure快速刪除所有Suspened Message/Orchestration,請參考http://dallas.sark.com/SarkBlog/mholdorf/archive/2005/02/22/917.aspx

About this Entry
Feb. 24th, 2005 @ 04:18 pm [資源] BizTalk 2004 & HIS 2004 Enterprise Single Sign-On白皮書

這是了解BizTalk 2004 & HIS 2004內建的Enterprise Single Sign-On 服務架構及應用的白皮書,建議進階開發人員閱讀了解架構。A New White Paper on Enterprise Single Sign-On for BizTalk Server 2004 & Host Integration Server 2004 has been released at http://www.microsoft.com/biztalk/techinfo/whitepapers/2004/default.asp.

Single Sign-on Services for Microsoft Enterprise Application Integration Solutions
Host Integration Server and BizTalk Server both support an extension of Windows Enterprise Security integration called Enterprise Single Sign-On (SSO). Learn how SSO can help solve a key problem that many enterprise organizations experience. Download this paper from the Download Center for the details.

 

About this Entry
Feb. 18th, 2005 @ 12:12 am [技巧] BizTalk Orchestration Patterns

什麼是Pattern? Pattern就是一種可以重覆利用的模式,這個模式已經過許多專家的驗證,找出解決某個問題的最佳方案。你在實作BizTalk專案時,是否有遇到某個問題時,不知如何設計Orchestration?例如如何做Message First-In First-Out,呼叫外部元件失敗時如何做Retry。事實上許多BizTalk家已經整理了許多Pattern,也包括了Sample建議所有BizTalk進階開發者都要熟悉這些Pattern

About this Entry
Feb. 17th, 2005 @ 10:55 am [工具] BizTalk 2004 Adapter for MSMQ 已提供下載
下載連結 - Microsoft BizTalk Adapter for MSMQ。BizTalk 2004原本就內建一個MSMQT Adapter,此MSMQT是一種Database Queue,與既有Windows內建的MSMQ 2.0/3.0不同,現在有了這個新的MSMQ Adapter,若你既有的AP是設計在MSMQ的架構上,這個Adapter可以讓你容易的整合你既有的AP。而BizTalk 2004也提供了完整的Message Queueing整合方式,包括IBM MQ/MSMQ/MSMQT。

The BizTalk 2004 Adapter for MSMQ provides support for sending and receiving messages using MSMQ 2.0 and 3.0, and takes advantage of the new features in MSMQ 3.0. Major features of the adapter include support for:

• MSMQ 2.0 and 3.0
• Multi-threading option for faster performance
• Guaranteed delivery when using transactional queues
• Reading from remote non-transactional queues
• Dynamic send ports
• Support for messages up to 2 Gigabytes in size

MSMQ有4MB大小的限制,如何利用BizTalk 2004 Adapter for MSMQ讓Message的大小可支援到2G的詳細說明如下,

  • The adapter uses two methods to handle the message. When a message is less than 4MB, the adapter uses the .NET Framework Class Library. If the size were greater than 4MB, it uses the large message extensions shipped with BizTalk Server 2004.
  • Yet, please be advised that, the adapter will send the message larger than 4MB in chunks. For example, if you were sending a 6MB message to a MSMQ private queue, you'll be end of seeing 6 of 1MB messages in the queue. The segmentation size is customizable and it's up to 4095KB (4MB).
  • Vice versa, if you polled the private queue through MSMQ Adapterthe adapter will assemble these 6 messages into one XML file for further processing.
About this Entry
Feb. 16th, 2005 @ 12:12 am Schema中MaxOccurs及GroupMaxOccurs的差別

在Schema Editor中,你可以設定某個Record的MaxOccurs及GroupMaxOccurs,這兩個設定有什麼差別呢?看下面說明馬上就可以了解。

Suppose you have a schema as follows:

<Root>
     <Record> groupMaxOccurs =2 maxOccurs=3
          <Field1>
          <Field2>
          <Field3>


The groupMaxOccurs indicates the number of times the sequence group can occur.  The maxOccurs indicates the maximum number of times the record can occur.  If you look at the XML below you’ll see the record repeats 3 times (maxOccurs).   The <Field1><Field2><Field3> repeats 2 times (groupMaxOccurs).

<Root>
     <Record>
          <Field1>…
          <Field2>…
          <Field3>…
          <Field1>…
          <Field2>…
          <Field3>…
     </Record>
     <Record>
          <Field1>…
          <Field2>…
          <Field3>…
          <Field1>…
          <Field2>…
          <Field3>…
     </Record>
     <Record>
          <Field1>…
          <Field2>…
          <Field3>…
          <Field1>…
          <Field2>…
          <Field3>…
     </Record>
</Root>

About this Entry
Feb. 14th, 2005 @ 08:17 pm [工具] BizTalk Adapter for Web Services Enhancement (WSE) v2.0已提供下載

這個Adapter是以WSE 2.0 framework實作的, 並且使用了下列新的Web Services Security相關標準,

  • WS-Security
  • WS-Trust
  • WS-SecureConversation
  • WS-SecurityPolicy
  • WS-Policy

功能 - The Adapter for WSE can be used for securely calling Web services and publishing BizTalk orchestrations as Web services.

  • When calling Web services, the Adapter for WSE provides the means to add Web service type definitions to BizTalk Projects and configuring send ports for calling Web services.
  • When publishing BizTalk Web services, the Adapter for WSE provides a version of the BizTalk Web Services Publishing Wizard that creates Web services that utilizes the WSE 2.0 framework for Microsoft .NET. The Adapter for WSE takes advantage of the framework’s support of policy files. This allows you to add or modify the security requirements without writing a single line of code.

下載 - Microsoft BizTalk Adapter for Web Services Enhancement (WSE) v2.0.

About this Entry
Feb. 5th, 2005 @ 02:00 am [技巧] Mapping Many Messages to One Inside the Mapper in BizTalk 2004
這個技巧一定要會,常會用到。BizTalk 2004 Mapper除了1對1的Mapping之外,也可以多對1,1對多,請看這篇文章
About this Entry
Feb. 4th, 2005 @ 10:20 am 新版的BizTalk 2004 Product Document已提供下載
新版的BizTalk 2004 Product Document/Information Worker Document/Tutorial已提供下載,在這裏(http://www.microsoft.com/biztalk/downloads/versions/default_2004.asp),請各位安裝以得到最新的產品文件。
About this Entry
Jan. 31st, 2005 @ 04:45 pm BizTalk Server Adapter Migration Toolkit 提供下載

若各位有BizTalk 2002的系統想Migrate到BizTalk 2004上,並且在BizTalk 2002上開發了許多AIC/Preprocessor元件,這個工具提供了,

  1. 將BizTalk 2002 Application Integration Components (AIC元件)包裝,以提供給BizTalk 2004的adapters/pipeline使用。
  2. 將BizTalk 2002 custom preprocessors 包裝,以提供給BizTalk 2004 pipeline元件使用。
  3. 可透過BizTalk 2002提供的IInterchange元件直接Submit Messages到BizTalk 2004中。
About this Entry
Jan. 31st, 2005 @ 04:26 pm BizTalk 2004 SP1已提供下載!

BizTalk 2004 SP1下載在此!SP1除了提供一些問題修正外,修正列表在此。也新增了一些功能,

  1. 新的Performance Counters
  2. FTP adapter可設定同時連線數
  3. Transaction handling for pipeline components
  4. Provides more information in SQL Adapter error messages
  5. 支援 GB18030 字元集
  6. 某些Scenario的Performance約可增加10%

SP1安裝前,需先安裝下列軟體,並詳細閱讀Readme再行安裝。

  1. Microsoft .NET Framework 1.1 Service Pack 1
  2. BizTalk Server 2004 SP1 Update for .NET Framework 1.1 - (下載位置:若你的BizTalk 2004安裝在Windows XP/2000,或BizTalk 2004安裝在Windows Server 2003).
  3. 若你的BizTalk 2004安裝在Windows XP,Windows XP Service Pack 2 需事先安裝
  4. 注意你的BizTalk 2004是中文版或英文版,需安裝相同語言版本的SP1
  5. 請先在測試環境中安裝SP1並經測試你開發的專案沒有問題後,再將SP1安裝至上線環
About this Entry
Jan. 20th, 2005 @ 04:59 pm BizTalk 2004 安裝需知
提醒一下各位在安裝BizTalk 2004的注意事項,
  1. 依照Installation Guide先安裝好一些HotFix & Component,另外若用不到BAS(Business Activity Services)的功能,可以不裝WSS
  2. 若一些服務你用不到,例如BAS/BAM/EDI/HWS,可不用安裝以避免佔用Server Resources
  3. 安裝好BizTalk 2004後,一定要再安裝BizTalk 2004 SP1,SP1的下載及安裝需知參考我的另一篇文章
  4. 另外Product Document Update/SDK Refresh,也需安裝至最新版,以提供最新產品文件及SDK供開發人員參考。在此下載-http://www.microsoft.com/biztalk/downloads/versions/default_2004.asp
  5. SQL Agent Startup - 注意安裝BizTalk相關DBSQL ServerSQL Agent服務是否設為開機後自動啟動,因為BizTalk安裝好後會在SQL Server建立幾個SQL Job。當Message流入BizTalk時,會有一些MetaData留在DB,啟動SQL Agent後,相關的Job會定期自動執行清除一些沒有用的資料,如此BizTalk DB才不會成長的太快。
  6. SSO Master Key Backup – 有沒有發現Event Log15分鐘會有一個Enterprise Single Sign-On的錯誤訊息呢?因為你沒有將SSO Master KeyBackup,因此系統每15分鐘會警告你一次,這完全不會影響BizTalk Server正常運作,但你可以將它備份就不會再出現此訊息了。如何備份,可以查BizTalk Help或是看線上版 - http://www.msdn.microsoft.com/library/en-us/deploying/htm/ebiz_depl_sso_mtta.asp?frame=true

請安裝BizTalk Server時注意上列事項,供你參考!

About this Entry
Jan. 13th, 2005 @ 12:00 am [進階] BizTalk的架構設計要點....
在實作上設計BizTalk架構時,你一定要考量到下列幾點,
1: Error/Exception Handling如何處理?
2: Suspended Messages如何處理?
3: 發生失敗時如何Retries: 是人工還是自動? 是由一般End User來重送還是IT人員來重送?
4: 是否提供監控/管理機制給系統管理?
5: 當訊息傳送成功或失敗時,有何Notifications的機制?可以用設定的方式來修改該機制嗎?

總之一定要考量所有可能的例外狀況,當這些狀況發生時,能有一個人工/自動的機制可以處理。
About this Entry
Jan. 6th, 2005 @ 07:31 pm [進階] 如何在Orchstration中呼叫外部的Web Services時Catch SOAP Fault Message

若你將Orchestration發佈成Web Services供外部的AP呼叫,當Orchestration發生錯誤時你可以送回一個SOAP Fault Message,你的AP可以Catch到這個SOAP Fault Message,就可做進階的Exception Handling,方法如下,

HOWTO: Recommended Method to Manually Throw a SOAP Exception from BTS04 Orchestration

 

The following steps describe a straight-forward, robust way to return SOAP exception information from orchestrations as a SoapException.  In summary, the process involves adding a fault message and operation to your SOAP port.  If you want to throw an exception, create a custom fault message or just use a simple type (e.g., string), set the appropriate exception text and Send the fault message via the port’s fault operation.  This fault message is wrapped and returned as a SoapException to the client.

 

Here are the steps involved:

 

  1. Use the XML Editor to create an XSD schema that describes the structure of your fault message.  Any XSD compliant XML structure is valid to be returned as a SOAP exception, because the engine will wrap the message in a SoapException block before returning.  This fault message schema is just like any other document schema you create.  You can promote properties, set distinguished fields, etc.

    NOTE: If you just want to return a string with error information as a SoapException, you can use the simple type string instead in the steps below.
  2. Add a fault message to the PortType.  The caveat here is that the MessageType of the fault message cannot be the same as the response message type.  This can be a complex message type like an XSD schema or a simple type like string.
  3. In your orchestration when you are ready to return a SoapException, create the fault message as you would create any other message in orchestration (Message Construction, transformation, assignment, expression shapes, etc.).
  4. To return this fault message back using the SoapException mechanism do the following.  When you add this fault message to the port type above you will get a corresponding operation in the SOAP port.  When the error condition makes itself known in your orchestration, create the fault message.  Next, make sure a Send shape is linked to the fault operation in the SOAP port.  That Send shape will then send the fault message back via the fault operation.  This fault message being returned will get wrapped in a SOAP exception by the engine.
  5. Conversely, if your orchestration processes everything successfully (i.e., no errors), use a different Send shape to send the standard SOAP response message back via the usual response operation.
About this Entry
Jan. 5th, 2005 @ 10:39 am [資源] BizTalk 2004 Virtual Lab on MSDN

想體驗一下BizTalk 2004的功能又不想花時間自行安裝BizTalk 2004在你的電腦上,現在你有新的選擇了。MSDN提供了各種技術的Virtual Lab,包括BizTalk 2004, C#, ASP.NET, Smart Client等,現在就試試看。https://msdn.demoservers.com/default.aspx?o=dashboard&m=User&session_focus=0&profile_focus=0&t=group_detail&group=biztalk

About this Entry
Jan. 3rd, 2005 @ 06:12 pm [進階] BizTalk Receive Pipeline中的Exception Handling

BizTalkReceive Pipeline有一個元件叫Validator,可以讓你驗證輸入的訊息是否符合某個Schema,若不符合則會SuspendMessage。你可以再配合另一個技巧,BizTalk 2004 Handling Schema Validation Errors,自行開發新的Validator元件,在發生驗證錯誤時送出一個Error MessageBizTalk Message Box,再由另一個專門處理Error MessageOrchestration訂閱該Error Message,這個Orchstation 中可以做Send Mail, Log To File/DB/EventLog等動作,你也可以將這個技巧實作在任何一個自行開發的Pipeline Component上,當執行Pipeline Component發生錯誤時,就送出一個Error MessageMessage Box。這個Pipeline Component Exception Handling的技巧常會用到,值得研究一下。

About this Entry