Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Apress
committed
Oct 11, 2016
0 parents
commit 39fe97d
Showing
386 changed files
with
20,988 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,146 @@ | ||
<html xmlns:o="urn:schemas-microsoft-com:office:office" | ||
xmlns:w="urn:schemas-microsoft-com:office:word" | ||
xmlns="http://www.w3.org/TR/REC-html40"> | ||
|
||
<head> | ||
<meta http-equiv=Content-Type content="text/html; charset=windows-1252"> | ||
<meta name=ProgId content=Word.Document> | ||
<meta name=Generator content="Microsoft Word 11"> | ||
<meta name=Originator content="Microsoft Word 11"> | ||
<link rel=File-List href="Errata_6994_files/filelist.xml"> | ||
<title>Errata</title> | ||
<!--[if gte mso 9]><xml> | ||
<o:DocumentProperties> | ||
<o:Author>Nicole Faraclas</o:Author> | ||
<o:LastAuthor>Nicole Faraclas</o:LastAuthor> | ||
<o:Revision>2</o:Revision> | ||
<o:TotalTime>1</o:TotalTime> | ||
<o:Created>2007-05-07T23:22:00Z</o:Created> | ||
<o:LastSaved>2007-05-07T23:22:00Z</o:LastSaved> | ||
<o:Pages>1</o:Pages> | ||
<o:Words>52</o:Words> | ||
<o:Characters>302</o:Characters> | ||
<o:Company>Apress</o:Company> | ||
<o:Lines>2</o:Lines> | ||
<o:Paragraphs>1</o:Paragraphs> | ||
<o:CharactersWithSpaces>353</o:CharactersWithSpaces> | ||
<o:Version>11.6568</o:Version> | ||
</o:DocumentProperties> | ||
</xml><![endif]--><!--[if gte mso 9]><xml> | ||
<w:WordDocument> | ||
<w:SpellingState>Clean</w:SpellingState> | ||
<w:GrammarState>Clean</w:GrammarState> | ||
<w:PunctuationKerning/> | ||
<w:ValidateAgainstSchemas/> | ||
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid> | ||
<w:IgnoreMixedContent>false</w:IgnoreMixedContent> | ||
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText> | ||
<w:Compatibility> | ||
<w:BreakWrappedTables/> | ||
<w:SnapToGridInCell/> | ||
<w:WrapTextWithPunct/> | ||
<w:UseAsianBreakRules/> | ||
<w:DontGrowAutofit/> | ||
</w:Compatibility> | ||
<w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> | ||
</w:WordDocument> | ||
</xml><![endif]--><!--[if gte mso 9]><xml> | ||
<w:LatentStyles DefLockedState="false" LatentStyleCount="156"> | ||
</w:LatentStyles> | ||
</xml><![endif]--> | ||
<style> | ||
<!-- | ||
/* Style Definitions */ | ||
p.MsoNormal, li.MsoNormal, div.MsoNormal | ||
{mso-style-parent:""; | ||
margin:0in; | ||
margin-bottom:.0001pt; | ||
mso-pagination:widow-orphan; | ||
font-size:12.0pt; | ||
font-family:"Times New Roman"; | ||
mso-fareast-font-family:"Times New Roman";} | ||
h2 | ||
{mso-margin-top-alt:auto; | ||
margin-right:0in; | ||
mso-margin-bottom-alt:auto; | ||
margin-left:0in; | ||
mso-pagination:widow-orphan; | ||
mso-outline-level:2; | ||
font-size:18.0pt; | ||
font-family:"Times New Roman";} | ||
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText | ||
{margin:0in; | ||
margin-bottom:.0001pt; | ||
mso-pagination:widow-orphan; | ||
font-size:10.0pt; | ||
font-family:"Courier New"; | ||
mso-fareast-font-family:"Times New Roman";} | ||
span.SpellE | ||
{mso-style-name:""; | ||
mso-spl-e:yes;} | ||
span.GramE | ||
{mso-style-name:""; | ||
mso-gram-e:yes;} | ||
@page Section1 | ||
{size:8.5in 11.0in; | ||
margin:1.0in 1.25in 1.0in 1.25in; | ||
mso-header-margin:.5in; | ||
mso-footer-margin:.5in; | ||
mso-paper-source:0;} | ||
div.Section1 | ||
{page:Section1;} | ||
--> | ||
</style> | ||
<!--[if gte mso 10]> | ||
<style> | ||
/* Style Definitions */ | ||
table.MsoNormalTable | ||
{mso-style-name:"Table Normal"; | ||
mso-tstyle-rowband-size:0; | ||
mso-tstyle-colband-size:0; | ||
mso-style-noshow:yes; | ||
mso-style-parent:""; | ||
mso-padding-alt:0in 5.4pt 0in 5.4pt; | ||
mso-para-margin:0in; | ||
mso-para-margin-bottom:.0001pt; | ||
mso-pagination:widow-orphan; | ||
font-size:10.0pt; | ||
font-family:"Times New Roman"; | ||
mso-ansi-language:#0400; | ||
mso-fareast-language:#0400; | ||
mso-bidi-language:#0400;} | ||
</style> | ||
<![endif]--> | ||
</head> | ||
|
||
<body lang=EN-US style='tab-interval:.5in'> | ||
|
||
<div class=Section1> | ||
|
||
<p class=MsoPlainText><o:p> </o:p></p> | ||
|
||
<p class=MsoNormal>Errata</p> | ||
|
||
<p class=MsoNormal>Pro BizTalk 2006</p> | ||
|
||
<p class=MsoNormal>1590596994</p> | ||
|
||
<p class=MsoNormal><o:p> </o:p></p> | ||
|
||
<p class=MsoNormal>Note from author, George <span class=SpellE>Dunphy</span>:</p> | ||
|
||
<p class=MsoNormal><o:p> </o:p></p> | ||
|
||
<p class=MsoNormal>“For requests related to the database <span class=SpellE>disassembler</span> | ||
in chapter 5, please inform people that we had to remove the code for the | ||
application due to an issue discovered after the book was released. I am | ||
planning on updating the samples when the <span class=GramE>errata is</span> | ||
released in the coming months.”<o:p></o:p></p> | ||
|
||
<p class=MsoNormal><o:p> </o:p></p> | ||
|
||
</div> | ||
|
||
</body> | ||
|
||
</html> |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
Freeware License, some rights reserved | ||
|
||
Copyright (c) 2007 George Dunphy and Ahmed Metwally | ||
|
||
Permission is hereby granted, free of charge, to anyone obtaining a copy | ||
of this software and associated documentation files (the "Software"), | ||
to work with the Software within the limits of freeware distribution and fair use. | ||
This includes the rights to use, copy, and modify the Software for personal use. | ||
Users are also allowed and encouraged to submit corrections and modifications | ||
to the Software for the benefit of other users. | ||
|
||
It is not allowed to reuse, modify, or redistribute the Software for | ||
commercial use in any way, or for a user�s educational materials such as books | ||
or blog articles without prior permission from the copyright holder. | ||
|
||
The above copyright notice and this permission notice need to be included | ||
in all copies or substantial portions of the software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS OR APRESS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#Apress Source Code | ||
|
||
This repository accompanies [*Pro BizTalk 2006*](http://www.apress.com/9781590596999) by George Dunphy and Ahmed Metwally (Apress, 2007). | ||
|
||
![Cover image](9781590596999.jpg) | ||
|
||
Download the files as a zip using the green button, or clone the repository to your machine using Git. | ||
|
||
##Releases | ||
|
||
Release v1.0 corresponds to the code in the published book, without corrections or updates. | ||
|
||
##Contributions | ||
|
||
See the file Contributing.md for more information on how you can contribute to this repository. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Namespace ABC.FulFillment.Common | ||
Public Class AssemblyInfoManager | ||
Public Const Company As String = "ABC Company" | ||
Public Const ProductName As String = "FulFillment Application" | ||
Public Const Copyright As String = "Copyright (c) 2006 ABC Inc." | ||
Public Const Trademark As String = "" | ||
Public Const MajorVersion As String = "1" | ||
Public Const MinorVersion As String = "01" | ||
Public Const BuildNumber As String = "1" | ||
Public Const RevisionNumber As String = "35" | ||
End Class | ||
End Namespace |
112 changes: 112 additions & 0 deletions
112
Samples/Chapter04/Schema Instance Creater/SchemaInstanceGenerator.vb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
Imports System | ||
Imports System.Text | ||
Imports System.IO | ||
Imports System.Collections | ||
Imports System.Xml | ||
Imports System.Xml.Serialization | ||
Imports System.Xml.Schema | ||
|
||
Imports Microsoft.BizTalk.ExplorerOM | ||
Imports Microsoft.BizTalk.Deployment | ||
Imports Microsoft.BizTalk.Component.Interop | ||
|
||
|
||
Namespace ProBizTalk.Samples.PipelineComponents.Utilities | ||
_ | ||
Public Class SchemaRetriever | ||
'/ <summary> | ||
'/ contains a cache of all schemas in the catalog upon first use of Schemas property | ||
'/ </summary> | ||
Private Shared _schemas As SchemaCollection | ||
'/ <summary> | ||
'/ caches created DocumentSpec instances | ||
'/ </summary> | ||
Private Shared _docSpecCache As Hashtable | ||
|
||
|
||
'/ <summary> | ||
'/ initializes used static variables | ||
'/ </summary> | ||
Shared Sub New() | ||
_docSpecCache = New Hashtable() | ||
End Sub 'New | ||
|
||
|
||
|
||
|
||
'/ <summary> | ||
'/ provides access to all schemas within the catalog; initialized upon first use | ||
'/ </summary> | ||
|
||
Public Shared ReadOnly Property Schemas() As SchemaCollection | ||
Get | ||
If _schemas Is Nothing Then | ||
Dim cdb As New ConfigurationDatabase() | ||
|
||
Dim explorer As New BtsCatalogExplorer() | ||
|
||
' assign the connection string, effectively connecting to the database | ||
' TODO: optimize this if used frequently to cache the connection | ||
|
||
If cdb.Database.Length = 0 Then | ||
explorer.ConnectionString = "Integrated Security=SSPI; Persist Security Info=false; Server=(local); Database=BizTalkMgmtDb;" | ||
Else | ||
explorer.ConnectionString = cdb.ConnectionString | ||
End If | ||
_schemas = explorer.Schemas | ||
End If | ||
Return _schemas | ||
End Get | ||
End Property | ||
|
||
|
||
'/ <summary> | ||
'/ retrieves a requested <see cref="C:Microsoft.BizTalk.Component.Interop.DocumentSpec"/> and loads | ||
'/ an example instance, which is returned. | ||
'/ </summary> | ||
'/ <param name="schemaName">the schema to be instantiated</param> | ||
'/ <returns>a sample instance of the retrieved schema</returns> | ||
Public Shared Function GetInstanceForSchema(ByVal schemaName As String) As System.IO.Stream | ||
' defines our return value. null is returned if we fail | ||
Dim retVal As System.IO.Stream = Nothing | ||
|
||
' retrieve the requested schema from the ExplorerOM model | ||
Dim schema As Schema = Schemas(schemaName) ' | ||
|
||
' if the local catalog contains the requested schema | ||
If Not (schema Is Nothing) Then | ||
Dim docSchema As DocumentSpec = Nothing | ||
|
||
If _docSpecCache.Contains(schema.AssemblyQualifiedName) Then | ||
docSchema = _docSpecCache(schema.AssemblyQualifiedName) | ||
End If | ||
|
||
Try | ||
' create a DocumentSpec from it to be able to create a correct instance | ||
docSchema = New DocumentSpec(schemaName, schema.BtsAssembly.DisplayName) | ||
_docSpecCache.Add(schema.AssemblyQualifiedName, docSchema) | ||
Catch | ||
End Try | ||
Dim sb As New StringBuilder() | ||
|
||
' if the DocumentSpec was correctly instantiated (i.e. the schema Assembly was found) | ||
If Not (docSchema Is Nothing) Then | ||
Dim writer As New StringWriter(sb) | ||
Try | ||
' instantiate our return value | ||
|
||
|
||
' create and instance of the schema and load it into our XmlDocument instance | ||
retVal = docSchema.CreateXmlInstance(writer) | ||
Finally | ||
writer.Dispose() | ||
End Try | ||
End If | ||
End If | ||
|
||
' return null if nothing was found or the instance otherwise | ||
Return retVal | ||
|
||
End Function | ||
End Class | ||
End Namespace |
54 changes: 54 additions & 0 deletions
54
...ssages/BizTalkSuspendedMessageHandlerService/BizTalkSuspendedMessageHandlerService.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup> | ||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | ||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | ||
<ProductVersion>8.0.50727</ProductVersion> | ||
<SchemaVersion>2.0</SchemaVersion> | ||
<ProjectGuid>77a3f1aa-2290-4433-a142-b7c24ac5040d</ProjectGuid> | ||
<OutputType>WinExe</OutputType> | ||
<AppDesignerFolder>Properties</AppDesignerFolder> | ||
<RootNamespace>BizTalkSuspendedMessageHandlerService</RootNamespace> | ||
<AssemblyName>BizTalkSuspendedMessageHandlerService</AssemblyName> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | ||
<DebugSymbols>true</DebugSymbols> | ||
<DebugType>full</DebugType> | ||
<Optimize>false</Optimize> | ||
<OutputPath>bin\Debug\</OutputPath> | ||
<DefineConstants>DEBUG;TRACE</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | ||
<DebugType>pdbonly</DebugType> | ||
<Optimize>true</Optimize> | ||
<OutputPath>bin\Release\</OutputPath> | ||
<DefineConstants>TRACE</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Reference Include="System" /> | ||
<Reference Include="System.Data" /> | ||
<Reference Include="System.ServiceProcess" /> | ||
<Reference Include="System.Xml" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Compile Include="Service1.cs"> | ||
<SubType>Component</SubType> | ||
</Compile> | ||
<Compile Include="Service1.Designer.cs"> | ||
<DependentUpon>Service1.cs</DependentUpon> | ||
</Compile> | ||
<Compile Include="Program.cs" /> | ||
<Compile Include="Properties\AssemblyInfo.cs" /> | ||
</ItemGroup> | ||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> | ||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. | ||
Other similar extension points exist, see Microsoft.Common.targets. | ||
<Target Name="BeforeBuild"> | ||
</Target> | ||
<Target Name="AfterBuild"> | ||
</Target> | ||
--> | ||
</Project> |
Binary file added
BIN
+2.5 KB
... Messages/BizTalkSuspendedMessageHandlerService/BizTalkSuspendedMessageHandlerService.suo
Binary file not shown.
Oops, something went wrong.