<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>designer clothes,shoes, watches, jeans ...</title>
	<atom:link href="http://www.0728web.net.cn/feed" rel="self" type="application/rss+xml" />
	<link>http://www.0728web.net.cn</link>
	<description>wholesale handbags, watches from our online store free shipping!</description>
	<lastBuildDate>Wed, 01 Feb 2012 08:12:43 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>promote technological progress and innovation</title>
		<link>http://www.0728web.net.cn/archives/642</link>
		<comments>http://www.0728web.net.cn/archives/642#comments</comments>
		<pubDate>Wed, 01 Feb 2012 08:12:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.0728web.net.cn/?p=642</guid>
		<description><![CDATA[at!vat!promote technological progress and innovation, moncler jacka online, the development of resource-saving and environment-friendly society, to further accelerate the implementation of reform and opening up and These developments have a historic opportunity for Hong Kong. For example, Hong Kong, with the experience and knowledge in the service sector can play to promote the development of [...]]]></description>
			<content:encoded><![CDATA[<p>at!vat!promote technological progress and innovation, moncler jacka online, the development of resource-saving and environment-friendly society, to further accelerate the implementation of reform and opening up and These developments have a historic opportunity for Hong Kong. For example, Hong Kong, with the experience and knowledge in the service sector can play to promote the development of national service capabilities.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.0728web.net.cn/archives/642/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>the fruit for the production</title>
		<link>http://www.0728web.net.cn/archives/641</link>
		<comments>http://www.0728web.net.cn/archives/641#comments</comments>
		<pubDate>Wed, 01 Feb 2012 08:12:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.0728web.net.cn/archives/641</guid>
		<description><![CDATA[with the term to express “guarantee” means, so “good, I promise” can be said: It guaranteed. athletes before the start of the game get the “margin” is the guarantee money. familiar with the term to express “guarantee” means, so “good, I promise” can be said: It guaranteed. athletes before the start of the game get [...]]]></description>
			<content:encoded><![CDATA[<p>with the term to express “guarantee” means, so “good, I promise” can be said: It guaranteed. athletes before the start of the game get the “margin” is the guarantee money. familiar with the term to express “guarantee” means, so “good, I promise” can be said: It guaranteed. athletes before the start of the game get the “margin” is the guarantee money. the fruit for the production of 800-year life date product. Ling</p>
]]></content:encoded>
			<wfw:commentRss>http://www.0728web.net.cn/archives/641/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Chapter WCF contract defined class hierarchy</title>
		<link>http://www.0728web.net.cn/archives/638</link>
		<comments>http://www.0728web.net.cn/archives/638#comments</comments>
		<pubDate>Fri, 16 Dec 2011 13:58:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[stockprice]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[<Currency Xmlns="http://EssentialWCF/Price"> Dol]]></description>
			<content:encoded><![CDATA[<p>list 2.18 XML metadata defined class hierarchy<br />
complex type in the code to the general form of the class implementation. Complicated further by increasing the special structure of the class inheritance relationship is defined. In this way, a common type such as &#8220;price&#8221; can be derived for a more specific type, such as &#8220;stock price&#8221; or &#8220;house price&#8221;. WCF supports the WSDL through the appropriate representation of the class hierarchy, the class structure and between XML serialization and deserialization are also removed from the properties of each class and add to a collection.<br />
2.17 in the list, the class of Price by the three elements and a sub-classes. StockPrice, inherited from Price. Namespace applied to the two classes so they perfectly legal in XML by the name of. Each element retains its own namespace.<br />
list 2.19 SOAP message body serialization class hierarchy</p>
<p>namespace Stock<br />
XML metadata to generate these two lists are used to support the basis for the relationship shown in 2.18. Price XML metadata displayed first, followed by shows StockPrice XML metadata. Note StockPrice Import Price metadata. Note that in the XSD, all elements are defined with minOccurs = 0, because they are not in the code using [isRequired = true] to define a property.<br />
2.17 using data contract defines a list of the class hierarchy</p>
]]></content:encoded>
			<wfw:commentRss>http://www.0728web.net.cn/archives/638/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Chapter II data contract.</title>
		<link>http://www.0728web.net.cn/archives/637</link>
		<comments>http://www.0728web.net.cn/archives/637#comments</comments>
		<pubDate>Fri, 16 Dec 2011 13:58:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[stockprice]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Bytes array, DataTime, TimeSpan, Guid, Uri, XmlQua]]></description>
			<content:encoded><![CDATA[<p>Bytes array, DataTime, TimeSpan, Guid, Uri, XmlQualifiedName, XmlEle ment and XmlNode <br /> class members m_CurrentPrice, m_CurrentType and m_ticker symbol will certainly, however m_dailyVolume and m_dailyChange not. Non-class members will certainly exist in the XML instance can be based on negligence, and they are still being felt XSD is legal. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Runtime.Serialization; using System.ServiceModel; namespace EssentialWCF {[DataContract (Namespace = "http://EssentialWCF", Name = "StockPrice")] public class clsStockPrice {[DataMember (Name = "CurrentPrice", Order = 0, IsRequired = true)] public double theCurrentPriceNow; [DataMember (Name = "CurrentTime", Order = 1, IsRequired = true)] public DateTime theCurrentTimeNow; [DataMember (Name = "Ticker", Order = 2, IsRequired = true)] public string theTickerSymbol; [DataMember (Name = "DailyVolume", Order = 3, IsRequired = false)] public long theDailyVolumeSoFar; [DataMember ( Name = "DailyChange", Order = 4, IsRequired = false)] public double theDailyChangeSoFar;} [ServiceContract] public class StockService {[OperationContract] private clsStockPrice GetPrice (string ticker) {clsStockPrice s = new clsStockPrice (); s.theTickerSymbol = ticker; s.theCurrentPriceNow = 100.00; s.theCurrentTimeNow = DateTime.Now; s.theDailyChangeSoFar = .012345; s.theDailyVolumeSoFar = 450000; return s;}}} Svcutil.exe t: metadata called for the use of classes defined in the [DataMember] elements generated XSD. The list 2.15 2.16 reveals a list of the code generated XSD. Beware of the order is based on the temperature of the element name in the code attribute definition. Must also beware of non-class members will certainly be defined in the XML metadata into a minOccurs = 0. <? Xml version = "1.0" encoding = "utf-8"?> <Xs: schema xmlns: tns = "http://EssentialWCF "elementFormDefault =" qualified "targetNamespace =" http://EssentialWCF "xmlns: xs =" http://www.w3.org/2001/XMLSchema "> <xs:complexType name="StockPrice"> <xs:sequence> <xs:element name="CurrentPrice" type="xs:double" /> <xs:element name="CurrentTime" type="xs:dateTime" /> <xs: element name = "Ticker" nillable = "true" type = "xs: string" /> <xs:element minOccurs="0" name="DailyVolume" type="xs:long" /> <xs: element minOccurs = "0" name = "DailyChange" type = "xs : double "/> </ xs: sequence> </ xs: complexType> <xs:element name="StockPrice" nillable="true" type="tns:StockPrice" /> </ xs: schema> Example class to ensure its height and width values ??stored always non-negative jiao.jiaoxuefa.com, <br /> class member name in the code are used m_ prefix. Class member name is overloaded so m_notation no need to introduce the service interface defined in the XSD. <br /> symbol [Serializable] types, members did not help with [NonSerializable] symbol <br /> symbol [CollectionDataContract] <br /> symbol types [Serializable] types and end the ISerializable interface <br /> symbol [ DataContract] and [DataMember] attribute list of the types <br /> 2.15 shows a class definition, StockPrice, 5 Columbia public data members. Three, ticker, theCurrentPrice and theCurrentTime certainly have, because they use isRequired = true symbol. Some additional [DataMember] personality revealed in the following: <br /> array and aggregation, such as List <T>, Dictionary <K,V> and Hashtable <br /> in a service within the functional use by the end of the code . Surface in the service, functional services defined in WSDL. In a WCF service, easy to use and process data in mixed types of representation; while in the service surface, using process data from the XML metadata defines said. WCF data contract for the supply of the code definitions. NET CLR types and definitions used in the service the W3C XML metadata surface communication between the definitions irradiation. <br /> using WCF, developers spend more effort in the code and interface semantics, syntax in the XSD and WSDL will spend less effort. XSD and WSDL is not to say that grammar is not important; they are cross-platform interoperability held a monopoly on essential prerequisite. However, the compiler also revealed by the in the. NET language translation of the generated data structure with cross-platform interoperability of XSD and WSDL monopoly that advantage. <br /> [DataContract] attribute, defined in the System.Runtime.Serialization explained in the description of a class deserve to XSD in the WSDL service leaked out. If a class has not [DataContract] attribute, it will not show the current WSDL. The default, XML metadata names and class names and metadata in the target namespace is the same: http://schemas.datacontract.org/2004/07 (by. NET namespace description). Both can be overloaded. You might want to override them to curb the surface leak in the service name. For example, regOrder an internal class name in the Order in the XSD can leak out. 2.16 reveals a list of the names in case of overload and XSD namespace. <br /> [DataMember] attribute, also defined in the System.Runtime.Serializationwww.yinbiao.org, will determine the [DataContract] attribute defines the members included in the XML metadata. In case a member of the class did not help with the [DataMember] to define the attributes, not included in the XML metadata, although it is a class member. By default, class members are not included in the XML metadata definition, this is a choice model. . NET class member of the range, whether public or private, does not affect whether it is included in the XML metadata; be decided by the [DataMember] to severely limited. <br /> built initial CLR types, such as int32 and string <br /> class members of the order by the [DataMember] attribute. In case the order is not [hot] credit card no annual fee for life can be? Bank is somewhat non-permissive _ credit card information has been determined, the element will be in the XSD arranged in alphabetical order. Order is unimportant trivial, but to curb the monopoly of the order is very important for each other. In case you are looking to send a message to a specific measure in order to receive service messages, to curb this property to XML text encoding sequence elements. <br /> a. NET class definition XML metadata <br /> DataContractSerializer serialization type and speak in the WSDL contract leaked them, if they are Italian the following conditions: <br /> inherited from the type <br /> pieces IXmlSerializable For <br /> at the design stage, [DataContract] attribute is used to indicate which class and deserve to be expressed in XSD in the WSDL service leak. [DataMember] attributes which further define the XSD class members deserve included in the surface representation. Run-time, DataContractSerializer class to use [DataContract] and [DataMember] legal to serialize an object into XML. 2.7 reveals a picture. NET ended with each other to end the monopoly system and other XML metadata that. <br /> 2011 年 07 月 22 日 <br /> 2.8 also reveals the picture depicted in the same translation of 2.7, while also revealing to determine the C # and XSD syntax. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.0728web.net.cn/archives/637/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Chapter II equivalent data contract</title>
		<link>http://www.0728web.net.cn/archives/636</link>
		<comments>http://www.0728web.net.cn/archives/636#comments</comments>
		<pubDate>Fri, 16 Dec 2011 13:57:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[stockprice]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[2.27 a server from the list to expose a collection]]></description>
			<content:encoded><![CDATA[<p>2.27 a server from the list to expose a collection using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Runtime.Serialization; using System.ServiceModel; namespace EssentialWCF {[DataContract (Namespace = " http://EssentialWCF ")] public class StockPrice {[DataMember] public double CurrentPrice; [DataMember] public DateTime CurrentTime; [DataMember] public string Ticker;} [CollectionDataContract] public class StockPriceCollection: List <StockPrice> {} [ServiceContract] public class StockService {[OperationContract] private StockPriceCollection GetPriceAsCollection (string [] tickers) {StockPriceCollection list = new StockPriceCollection (); for (int i = 0; i <tickers.GetUpperBound (0)   1; i    ) {StockPrice p = new StockPrice (); p.Ticker = tickers [i]; p.CurrentPrice = 94.85; p.CurrentTime = DateTime.Now; list.Add (p);} return list;}}} <br /> list 2.26 shows two an equivalent data contract. Service contract by the end of the first exposure; second category described by the client. These two contracts are equivalent and generate a unique XML metadata definition. In the server, by default, WCF will be on the XML elements in alphabetical order, so the metadata will force the second data element in alphabetical order. Because the name is &#8220;StockPriceSvc&#8221; and the name of &#8220;Currency&#8221; of the existence of separate property items defecate annual fee credit card machine consumers of new rules in the DataContract and DataMember, XSD to survive in the second contract and the contract first the same. <br /> list 2.27 shows a collection of data using the contract and operation. This collection uses [CollectionDataContract] property to qualify, it is especially used to provide this purpose a special property of the WCF. This property is any guide WCF to support the IEnumerable interface and implements the Add method of an array type sequence into XML. StockPriceCollection class inherits from the List class, List class inherits from the base class interface to implement ICollection serialization. equivalent data contract <br /> If you are using WCF to expose service and use svcutil.exe to create access service code, under normal circumstances you do not care about the client and service side of the line between the transmission of messages said. To know a WCF data contract. NET type sequence into an XML message set and talk about a sequence of XML information sets into a counter. NET type. XML Information Set be online to file or binary code, which depends on the communication process used in the binding, but again,. NET code is not aware of the existence of coding. This way you like to use in your code. NET type, but a set of standards-based XML encoding of that information on the specific transmission line. <br /> 2010 年 10 月 21 日 <br /> collection is. NET is very convenient data structure, which focused on the dynamic memory allocation, point to enumerate and list the advantages. Although useful, but there is no XSD or a set of standards and WCF equivalent. So, say a collection of serialized XML, WCF needs to be set in accordance with an array of treatment. In fact, a collection of online serialization level is consistent with an array. In addition to the collection (the type that inherits from ICollection <T>), this is the same, because it inherits from IEnumerable <T> type or IList <T>. <br /> List 2.26 equivalent data contract using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Runtime.Serialization; namespace EssentialWCF {[DataContract (Namespace = "http://EssentialWCF")] public class StockPriceSvc / / V1 {[DataMember] public double CurrentPrice; [DataMember] public DateTime CurrentTime; [DataMember] public string Ticker; [DataMember] public string Currency;} [DataContract (Namespace = "http://EssentialWCF", Name = "StockPriceSvc")] public class StockPrice / / V2 {[DataMember (Order = 2)] public double CurrentPrice; [DataMember (Order = 3)] public DateTime CurrentTime; [DataMember (Order = 4)] public string Ticker; [DataMember (Order = 1, Name = "Currency ")] public string Money;}} to use set <br /> However, there are many cases when you want the client and server use different types. If the client and server are developed by different organizations, then it is likely, or just the communication is the use of unilateral WCF. In fact, if you do not apply, or add a service reference svcutil.exe to generate the client proxy, the client will be a great member of a member name and server name different situations may occur. However, by using the [DataMember] attribute to control these names, you can let them in the XML representation is the same. As long as the client and server use an equivalent XML representation of the WCF, the deserialize the XML into a different message. NET type is possible. If the two sequences into the same class of XML metadata, data contracts that these classes can be considered the same. Contract for the data to be consistent, they must have the same namespace, name and members. XML data members must be the same name and in the same position. Brief that they have online are indistinguishable. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.0728web.net.cn/archives/636/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Examples of CLR</title>
		<link>http://www.0728web.net.cn/archives/635</link>
		<comments>http://www.0728web.net.cn/archives/635#comments</comments>
		<pubDate>Fri, 16 Dec 2011 13:57:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[stockprice]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Roughly as follows: Since the database design is n]]></description>
			<content:encoded><![CDATA[<p>Roughly as follows: Since the database design is not very reasonable, and EPS through stock price to calculate the PE, so the first time is more like a function, this function as a column, can be displayed easily. <br /> using (SqlConnection conn <br /> SqlDataReader datareader = cmd.ExecuteReader (); <br />} <br /> string columnName = &#8220;&#8221;; <br /> conn.Open (); <br /> tableName = &#8220;StockPriceSZ_SP&#8221;; <br />} <br /> using System.Data; <br /> 1: VS2008 to create a database SqlServer project <br /> string tableName = &#8220;&#8221;; <br /> {<br / > so similar, but the exec function does not allow food and other kind of statement. so at a loss. remorse original design table is too casual. <br /> 2: Create a class code code code that makes up the stock by judge Remove the corresponding SQL statement date stock price <br /> RECONFIGURE; <br /> {<br /> public partial class UserDefinedFunctions <br /> columnName = &#8220;sz&#8221;   StockCode; <br /> decimal result = 0; <br /> However, due to improper design database, this function needs to generate the statement that I need to write the function in EXEC SP_EXECUTESQL @ STR <br /> CREATE FUNCTION [dbo]. [ufn_StockPrice] (@ StockCode nvarchar (6 ), @ ReportTime nvarchar (10)) <br /> FROM : \ Chengxu \ Modules.dll &#8212; dll location for <br /> result = Convert.ToDecimal (datareader.GetValue (0). ToString () ); <br /> public static SqlMoney ufn_StockPrice (string StockCode, string ReportTime) <br /> 4: Use the time you can use this function select StockCode, ReportTime, [dbo]. [ufn_StockPrice] (StockCode, ReportTime), * FROM *** <br /> sp_configure lr enabled 1; &#8211; open database CLR <br /> 3: (can be deployed to the corresponding database, provided that the solution properties of the configuration, the connection string) <br /> GO <br /> <img src = "http://b.bst.126.net/style/common/tuijian.png" onClick = "window.open ( ttp://b.bst.126. net / style / common / tuijian.png "onerror =" this.src = http://cache.soso.com/img/blog/p1.gif quot;onload =" addjustimg (this) "TYPE =" audio / mpeg "> <br /> AS <br /> using Microsoft.SqlServer.Server; <br />} <br /> &#8212; Custom number of rows bound to dl the corresponding method. <br /> = new SqlConnection (&#8220;context connection = true&#8221;)) <br /> drop ASSEMBLY [Modules] <br /> else <br /> solve the problem. <br /> EXTERNAL NAME [Modules]. UserDefinedFunctions.ufn_StockPrice <br /> {<br /> using System.Data.SqlTypes; <br /> [Microsoft.SqlServer.Server.SqlFunction (DataAccess = DataAccessKind.Read)] < br /> if (prex == &#8220;6&#8243;) <br /> tableName = &#8220;StockPriceSH_SP&#8221;; <br /> columnName = &#8220;sh&#8221;   StockCode; <br /> 2010 年 06 月 20 日 <br /> GO < br /> CREATE ASSEMBLY [Modules] <br /> out when the program encounters a problem. Environment VS2008   SQL2005 <br /> {<br /> SqlCommand cmd = new SqlCommand [original] credit card no annual fee for life can be? Bank is somewhat non-permissive _ credit card information (&#8220;SELECT ISNULL (["   columnName   "], 0) FROM ["  tableName  "] WHERE PDATE = quot;  ReportTime  &#8221; &#8220;, conn); <br />}; <br /> also be able to compile. The compiled dll file saved to a location <br /> by using C # CLR can solve the database can not solve the problem. <br /> {<br /> RETURNS money <br /> prex = StockCode.Substring (0, 1); <br /> Pan brother later found a solution. <br />} <br /> using System.Data.SqlClient; <br /> if (datareader.Read ()) <br /> return result; <br /> string prex = &#8220;&#8221;; <br />} <br /> WITH PERMISSION_SET = SAFE <br /> {<br /> using System; <br /> Note: If an error occurs, increase the database compatibility mode, then run, then compatibility mode to change back to OK . </p>
]]></content:encoded>
			<wfw:commentRss>http://www.0728web.net.cn/archives/635/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQLSERVER 2005 batch file into the database from</title>
		<link>http://www.0728web.net.cn/archives/634</link>
		<comments>http://www.0728web.net.cn/archives/634#comments</comments>
		<pubDate>Fri, 16 Dec 2011 13:57:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[stockprice]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Date Open High Low Close Volume Turnover <br /> <F]]></description>
			<content:encoded><![CDATA[<p>Date Open High Low Close Volume Turnover <br /> <FIELD ID="1" xsi:type="CharTerm" TERMINATOR="\t" MAX_LENGTH="24"/> <br /> WHILE @ @ FETCH_STATUS = 0 <br /> &#8211; all of the stock price into the temporary table <br /> StockPrice.xml file: <br /> GO <br /> FROM OPENROWSET (BULK #39;D: \ Merchants Securities accessible information \ T0002 \ export \ CASE WHEN @ StockCode LIKE % THEN H ELSE Z END   @ StockCode   TXT #39;, FORMATFILE = #39;D: \ StockPrice. xml #39;) AS t1 <br / > <img src = "http://b.bst.126.net/style/common/tuijian.png" onClick = "window.open ( ttp://b.bst.126.net/style/common/ tuijian.png "onerror =" this.src = http://cache.soso.com/img/blog/p1.gif quot;onload =" addjustimg (this) "TYPE =" audio / mpeg "> < br /> FETCH NEXT FROM CUR_TMP INTO @ StockCode; <br /> <COLUMN SOURCE="6" NAME="Volume" xsi:type="SQLDECIMAL" PRECISION="19" SCALE="2"/> <br /> Step Three: <br /> SELECT @ SQL = lt;br /> &#8211; define a list of current stock market cursor <br /> END <br /> <COLUMN SOURCE = "2" NAME = "Open" xsi: type = " SQLDECIMAL "PRECISION =" 9 "SCALE =" 2 "/> <br /> D: \ StockPrice.xml defined xml file <br /> <COLUMN SOURCE =" 7 "NAME =" Amount "xsi: type =" SQLDECIMAL "PRECISION =" 19 "SCALE =" 2 "/> <br /> <FIELD ID="3" xsi:type="CharTerm" TERMINATOR="\t" MAX_LENGTH="41"/> <br /> D: \ Investment Securities Mastery letter \ T0002 \ export \ SZ000001.TXT is the data source file path <br /> StockCode, TradingDate, [Open], [Close], High, Low, Volu me, Amount <br /> <FIELD ID = "7" xsi: type = "CharTerm" TERMINATOR = "\ r \ n" MAX_LENGTH = "41" /> <br /> &#8211; per share to take the first right to re-price <br /> CLOSE CUR_TMP; <br /> OPEN CUR_TMP; <br /> Sql server2010-09-21 09:19:08 Read 2 Comments 0 Word Count: Example: The 1892 stock price into the database, format: a stock accessible information from a senior export file Export data formats (non-data line skip) <br /> FROM OPENROWSET (BULK : \ Merchants Securities Mastery letter \ T0002 \ export \ SZ000001.TXT FORMATFILE = : \ StockPr ice.xml AS t1 <br /> <COLUMN SOURCE="5" NAME="Close" xsi:type="SQLDECIMAL" PRECISION="9" SCALE="2"/> <br /> FETCH NEXT FROM CUR_TMP INTO @ StockCode; <br /> </ RECORD> <br /> key statement: <br /> INSERT INTO tempdb.dbo.StockPriceForward (<br /> <FIELD ID = "4" xsi: type = "CharTerm" TERMINATOR = "\ t" MAX_LENGTH = "41" /> <br /> <FIELD ID="6" xsi:type="CharTerm" TERMINATOR="\t" MAX_LENGTH="41"/> <br /> </ ROW> <br /> < FIELD ID = "2" xsi: type = "CharTerm" TERMINATOR = "\ t" MAX_LENGTH = "41" /> <br /> DEALLOCATE CUR_TMP; <br /> <ROW> <br /> as follows <br /> ) <br /> INSERT INTO information.StockPriceForward (<br /> Step 1: According to the data source file defines an XML file <br /> <COLUMN SOURCE = "1" NAME = "TradingDate" xsi: type = "SQLDATETIME" / > <br /> <RECORD> <br /> <COLUMN SOURCE="4" NAME="Low" xsi:type="SQLDECIMAL" PRECISION="9" SCALE="2"/> <br /> the temporary table data into the target <br /> DECLARE @ StockCode nvarchar (6), @ SQL nvarchar (max); <br /> SELECT 00001 TradingDate, [Open], [Close], High, Low, Volum e / 100, Amount <br /> BEGIN <br /> TRUNCATE TABLE information.StockPriceForward; <br /> EXEC (@ SQL); <br /> can be achieved using the cursor to import all of the stock price, <br /> Step two: <br /> FROM information.uv_Stock <br /> 2010 年 09 月 21 日 <br /> SELECT #39; StockCode   #39; TradingDate, [Open], [Close], High, Low, Volume/100 , Amount <br /> DECLARE CUR_TMP CURSOR LOCAL FAST_FORWARD FOR <br /> for the environment: the price is updated daily, before the right to re-price more special, know that the stock of knowledge should know, such as a stock sent shares after the price of the previous need a fresh calculation again. <br /> <? xml version = "1.0"?> <br /> WHERE IssuingDate IS NOT NULL AND ListingDate IS NOT NULL AND DelistingDate IS NULL; <br /> 2008-01-02 22.09 22.96 21.59 22.32 13158390 709842240.000 <br /> 2008-01-03 22.09 22.32 20.65 2 SMS credit card fraud due to the new annual fee bait 1.19 21134656 1065804736.000 <br /> StockCode, TradingDate, [Open], [Close], High, Low, Volu me, Amount <br /> data source: <br /> </ BCPFORMAT> <br /> <FIELD ID="5" xsi:type="CharTerm" TERMINATOR="\t" MAX_LENGTH="41"/> <br / > Create a job, you can bulk import data, daily from accessible information to do is download the latest software on the stock ex-dividend data. <br /> <COLUMN SOURCE = "3" NAME = "High" xsi: type = " SQLDECIMAL "PRECISION =" 9 "SCALE =" 2 "/> <br /> as SZ00001.TXT &#8230;.. <br /> <BCPFORMAT xmlns =" ??http://schemas.microsoft.com/sqlserver/2004/ bulklo ad / format "xmlns: xsi =" http://www.w3.org/2001/XMLSchema-instance "> <br /> SELECT StockCode <br />) </p>
]]></content:encoded>
			<wfw:commentRss>http://www.0728web.net.cn/archives/634/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Package from the PostgreSQL database using RODBC to query data and weekly data on stock prices</title>
		<link>http://www.0728web.net.cn/archives/633</link>
		<comments>http://www.0728web.net.cn/archives/633#comments</comments>
		<pubDate>Fri, 16 Dec 2011 13:57:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[stockprice]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[ORDER BY <br /> WHERE <br /> public.stockprice <br]]></description>
			<content:encoded><![CDATA[<p>ORDER BY <br /> WHERE <br /> public.stockprice <br /> # connect to the database <br /> sz <- sqlQuery (channel, "<br /> FROM <br /> database a total of 7.086 million lines, data 388MB , index 213MB total 600MB. check the first week of data queries commercial banks scramble for unlimited credit card charges can not waiver on the cake 587 years line with 281ms, after several times of 47ms and 63ms, check on the data line 2846, spending 125ms. <br / > <img src = &#8220;http://s16.sinaimg.cn/middle/04f7e6c1g9f081c1823ef</p>
]]></content:encoded>
			<wfw:commentRss>http://www.0728web.net.cn/archives/633/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Chapter VII hosted in a WCF IIS hosted service on ASMX features</title>
		<link>http://www.0728web.net.cn/archives/632</link>
		<comments>http://www.0728web.net.cn/archives/632#comments</comments>
		<pubDate>Fri, 16 Dec 2011 13:57:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[stockprice]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[And, like ASMX, WCF also provides a robust expansi]]></description>
			<content:encoded><![CDATA[<p>And, like ASMX, WCF also provides a robust expansion model. But in addition to using the HTTP pipeline, it also uses the channel stack. WCF in the channel is very flexible. They understand the transport protocol such as HTTP, but also to understand other elements such as security and transaction protocol. Channel stack in the third chapter, &#8220;channel&#8221; and Chapter IV &#8220;binding&#8221; in the description. <br /> Table 7.1 WCF service in a feature set allows ASMX <br /> list ASMX 7.5 session state access and configure settings using System.ServiceModel; using System.Runtime.Serialization; using System.ServiceModel.Activation; using System . Web; using System.Configuration; namespace Services {[DataContract] public class StockPrice {/ / [DataMember] public string source; [DataMember] public double price; [DataMember] public int calls;} [ServiceContract] public interface IStockService {[ OperationContract] StockPrice GetPrice (string ticker);} [ServiceBehavior (InstanceContextMode = InstanceContextMode.PerSession)] [AspNetCompatibilityRequirements (RequirementsMode = AspNetCompatibilityRequirementsMode.Required)] public class StockService: IStockService {public StockPrice GetPrice (string ticker) {StockPrice p = new StockPrice ( ); int nCalls = 0; if (HttpContext.Current.Session ["cnt"]! = null) {nCalls = (int) HttpContext.Current.Session ["cnt"];} HttpContext.Current.Session ["cnt" ] =     nCalls; p.calls = nCalls; p.price = 94.85; / / p.source = ConfigurationManager.AppSettings ["StockSource"]; return p;}}} <br /> 1. HTTPContext.Current. in ASP.NET HTTP pipeline set to null. In a WCF service, you can use OperationContext.Current object to achieve a similar purpose. <br /> WCF support IIS in a special boarding model: ASP.NET compatibility mode. When running in this mode, time, ASP.NET for WCF services hosted environment. Thus, in <system.web/hostingEnvironment> and <system.web/compilation> is legal. However, not all of the ASP.NET HTTP features are enabled in this mode: <br /> list of 7.7 on the client configuration file manipulation to Cookies <? Xml version = "1.0" encoding = "utf-8"?> <configuration> <system.serviceModel> <bindings> <basicHttpBinding> <binding name = "BasicHttpBinding_IStockService" closeTimeout = "00:01:00" openTimeout = "00:01:00" receiveTimeout = "00:10:00" sendTimeout = "00:01:00" allowCookies = "true" bypassProxyOnLocal = "false" hostNameComparisonMode = "StrongWildcard" maxBufferSize = "65536" maxBufferPoolSize = "524288" maxReceivedMessageSize = "65536" messageEncoding = "Text" textEncoding = "utf-8" transferMode = "Buffered" useDefaultWebProxy = "true"> <readerQuotas maxDepth = "32" maxStringContentLength = "8192" maxArrayLength = "16384" maxBytesPe CITIC Bank that pits father, buried by an annual fee to upgrade CITIC credit card trap rRead = "4096" maxNameTableCharCount = " 16384 "/> <security mode="None"><br />
<transport clientCredentialType="None" proxyCredentialType="None" realm=""> <extendedProtectionPolicy policyEnforcement="Never" /> </ transport> <message clientCredentialType =" UserName "algorithmSuite = "Default" /> </ security> </ binding> </ basicHttpBinding> </ bindings> <client> <endpoint address = "http://localhost/StockService.svc" binding = "basicHttpBinding" bindingConfiguration = "BasicHttpBinding_IStockServi ce "contract =" localhost.IStockService "name =" BasicHttpBinding_IStockService "/> </ client> </ system.serviceModel> </ configuration> <br /> 2010 年 12 月 27 日 <br /> 4. session state <br / > (2) globalization. You can set the thread culture in the region to access international <system.web> part. <br /> <img src = "http://images.cnblogs.com/cnblogs_com/danielWise/201012/201012271737588887.png" onClick = "window.open ( ttp://images.cnblogs.com/cnblogs_com/danielWise / 201012/201012271737588887.png "onerror =" this.src = http://cache.soso.com/img/blog/p1.gif quot;onload =" addjustimg (this) "width = 507 height = 323 TYPE = "audio / mpeg"> <br /> in ASP.NET compatibility mode is turned on, the service can take advantage of ASP.NET features. 7.5 in the list, we use two ASP.NET features. First, we use the ASMX-SessionState feature to store session layer state. Instance can be set to PerCall, PerSession or Single. The fifth chapter in the &#8220;behavior&#8221; was further defined. In this example, we use PerSessino, so many times if a client calls the service using the same proxy, session state will be preserved between different calls. WCF has a lot of other ways to store session layer data, but for those who are familiar with ASMX, this is a convenient framework. Second, we use the familiar in web.config AppSettings section to store application-specific configuration data. In the service-side code, ConfigurationManager object AppSettings collection to collect these values. <br /> WCF and ASP.NET impersonation in the open. NET 1.X implementation in the same way. By <system.web> section of the web.config file contains <identity impersionate="true"> achieve. When you do this, the client-side validation is automatically sent to the server, the server uses client-side validation to perform the operation. <br /> before the WCF, ASMX is ASP.NET Web Service in a common approach. It needs a public Web service, and excellent support provided by the ASP.NET HTTP pipeline robust expansion capabilities. In WCF, the service is designed to separate transmission and do not understand their boarding model. So WCF service can not rely on the implementation of the HTTP pipeline within such HTTP.SYS. <br /> 5. <system.web/Globalization> <br /> 3. imitate <br /> 3. imitation. WCF supports the use of behavior in the service layer and the operation layer. This is the additional implementation of ASP.NET. If the service through the WCF imitation, will override settings in ASP.NET. If the service does not implement imitation, ASP.NET will use the rules. <br /> list 7.8 enables simulation using System.ServiceModel; using System.Runtime.Serialization; using System.ServiceModel.Activation; using System.Web; using System.Configuration; using System.Security.Principal; namespace Services {[DataContract ] public class StockPrice {[DataMember] public double price; [DataMember] public string requestedBy;} [ServiceContract] public interface IStockService {[OperationContract] StockPrice GetPrice (string ticker);} [ServiceBehavior] [AspNetCompatibilityRequirements (RequirementsMode = AspNetCompatibilityRequirementsMode.Required) ] public class StockService: IStockService {[OperationBehavior (Impersonation = ImpersonationOpti on.Required)] public StockPrice GetPrice (string ticker) {StockPrice p = new StockPrice (); p.requestedBy = WindowsIdentity.GetCurrent (). Name; p.price = 94.85; return p;}}} <br /> list of 7.6 in the service configuration to enable ASP.NET compatibility <? xml version = "1.0" encoding = "utf-8"?> <configuration> <system.serviceModel> <serviceHostingEnvironment aspNetCompatibilityEnabled = "true" /> <behaviors> <serviceBehaviors> <behavior name="MEXServiceTypeBehavior"> <serviceMetadata httpGetEnabled="true" /> </ behavior> </ serviceBehaviors> </ behaviors> <bindings /> <services> < service behaviorConfiguration = "MEXServiceTypeBehavior" name = "Services.StockService"> <endpoint address="" binding="basicHttpBinding" bindingConfiguration="" contract="Services.IStockService" /> <endpoint address = "mex" binding = "mexHttpBinding" bindingConfiguration = "" contract = "IMetadataExchange" /> </ service> </ services> </ system.serviceModel> </ configuration> <br /> 4. session state. This is entirely inherited from the ASP.NET configuration implementation. You can use the process, service or continuous structure to hold the SQL state. <br /> <img src = "http://pic.cnblogs.com/face/u157655.jpg" onClick = "window.open ( ttp://pic.cnblogs.com/face/u157655.jpg "onerror =" this.src = ttp://cache.soso.com/img/blog/p1.gif "onload =" addjustimg (this) "TYPE =" audio / mpeg "> <br /> List 7.8 shows the operational level simulation setting, assuming it is not allowed in the web.config of the service layer. When a client access server, the user is logged in as a member in RequestedBy return. If the operation behavior is removed, RequestedBy members default to wind back the network services. Simulations in Chapter 8, &#8220;Security&#8221; details. <br /> 7.7 shows how to list the client configuration file to enable cookies. this list by the Add Service Reference in Visual Studio generates. Note that the default allowCookies set to true. <br /> In order to run in ASP.NET compatibility mode on the ASP.NET feature, you need to change two settings. In the application layer, you have to set in web.config <system.serviceModel> / <serviceHostingEnvironment> / to true. Because the service layer ASMX is a choice to enter the mode, you must not set in the service layer AspNetCompatibilityRequirements to Allowed. With these two settings, almost all of the ASP.NET features can be used in a WCF service. Table 7.1 describes the relationship between these two settings. <br /> work to make PerSession instance, the client must identity in order to save a session from the client to the server in the order calling the session ID can be returned to the server. For ASP.NET, which is transmitted through the HTTP header in a client cookie to achieve. In order to work through the ASMX-PerSession instance, the client must open the cookies. Because the standard HTTP bindings, basicHttpBinding and wsHttpBinding, by default does not allow cookies, you must define a client app.config AllowCookies = true binding configuration . 7.6 shows the list of server enable aspNetCompatibility. <br /> 6. ConfigurationManager.AppSettings. You can only root node in the web.config or the application of the above to obtain a virtual set, because httpContext is empty. <br /> 2. File / Url certification <br /> However, there are some need further explanation. <br /> 1. HTTPContext.Current. ConfigurationManager.AppSettings and ConfigurationManager.GetSection simultaneously. HttpContext.Current flow between threads in the WCF. <br /> so that you can use to mimic any one of two ways. In order to set it in the service layer, the use of the service behavior impersionateCallerForAllOperations = true, the operation behavior using ImpersionationOption.Allowed. In order to open it in the operating level, the operation behavior using ImpersonationOption.Required, while not in service behavior in reference to anything. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.0728web.net.cn/archives/632/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Chapter news contract</title>
		<link>http://www.0728web.net.cn/archives/631</link>
		<comments>http://www.0728web.net.cn/archives/631#comments</comments>
		<pubDate>Fri, 16 Dec 2011 13:57:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[stockprice]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[[MessageContract] attribute defines the SOAP messa]]></description>
			<content:encoded><![CDATA[<p>[MessageContract] attribute defines the SOAP message structure. This property is not too much sugar, because its purpose is to define the boundaries of the message rather than the message content itself. The only modification is the body of the message on how many parcels into a single SOAP message, determine whether to include all, if that is the case, also need to determine Warpper name and namespace. <br /> 2010 年 10 月 22 日 <br /> In order to use [MessageContract] types of messages generated on behalf of the client proxy code, you need to check the Add Service Reference dialog box is always senior to generate a message contract options, as shown in picture 2.9. 2.31 <br /> list typed messages using a non-contract the client initiates the communication <br /> Whether you are using a typed or untyped messages, you may want to transfer the SOAP message header information and is not a SOAP message body. A common requirement is sent with the message session state or context information. Therefore, in addition to creating additional packaging information, SOAP message header is a convenient and easy to understand the structure of the transmission of messages. <br /> types of messages using a non-SOAP message header <br /> type of news you might want to define a lot of message header or message body if they are different levels of the client software to use. For example, a level of need associated with the SOAP message header to the message as a request message generated Response. Also another level may want to determine the message so that it can be appropriate to forward the message. In this case, the first two messages have their own purpose, there is no reason to merge them into a structure to go. <br /> <img src = "http://hi.csdn.net/attachment/201010/22/0_1287713245gHGp.gif" onClick = "window.open ( ttp://hi.csdn.net/attachment/201010 / 22/0_1287713245gHGp.gif "onerror =" this.src = http://cache.soso.com/img/blog/p1.gif quot;onload =" addjustimg (this) "TYPE =" audio / mpeg "> <br /> typed messages using [MessageHeader] and [MessageBodyMember] attribute to describe the SOAP message headers and body structure. Client and server can use the sequence of object references this data. SOAP message headers associated with additional information such as name and namespace, regardless of whether the message will be delayed, or which side is the final end and the recipient. Additional information can also be associated with the SOAP message body, such as name and namespace. If you use more than one message body, MessageContract can define the order of these parts. Message header and message body can have simple or complex type definition. <br /> 2.30 shows a list using the message type as input and output operations contract. Note that the message GetBody method is a common anti-serialized into the message body types. This method uses an XMLReader to read the SOAP message <body> elements. Because it uses an XML reader, <body> make can be read once; if you want to read more than once <body> elements, you should use the message CreateBufferCopy method. Re-side SOAP operation name is the name of the requested action followed by the &#8220;Response&#8221; suffix. This can be [OperationContract] attribute (ReplyAction =) to reload. <br /> 2.34 client list to a non-typed message into the message header <br /> contract through using direct access to the SOAP message header and message body sent to a service providing a service and to receive from the SOAP message complete control. This allows the use of simple or complex type to define the precise content of the SOAP part. Like when you need full control of data serialization when you convert from DataContractSerializer to XmlSerializer, when you need full control of the SOAP message when you convert from DataContracts to MessageContracts. <br /> Message class by a number of create, read and write the message content. Client is responsible for the message sent to the server before the server is responsible for creating the message and creates a return message. Before sending the message, the content must be placed in the message body. This can be CreateMessage, WriteMessage or WriteBody methods. <br /> <img src = "http://hi.csdn.net/attachment/201010/22/0_1287713391P2xX.gif" onClick = "window.open ( ttp://hi.csdn.net/attachment/201010 / 22/0_1287713391P2xX.gif "onerror =" this.src = http://cache.soso.com/img/blog/p1.gif quot;onload =" addjustimg (this) "width = 552 height = 128 TYPE = "audio / mpeg"> <br /> list 2.35 shows the code generated by the client-side SOAP message. Note inserted into the appropriate namespace the TimeZone element in the message header. 2.32 <br /> list messages using a non-contract type of the SOAP response message list 2.33 <br /> typed messages using a non-contract services to access the message header [ServiceContract] public class StockService2 {[OperationContract] private Message GetPrice ( Message req) {string timeZone = OperationContext.Current.IncomingMessageHeaders.Ge tHeader <String> (&#8220;TimeZone&#8221;, &#8220;http://EssentialWCF/&#8221;); string ticker = req.GetBody <String> (); Message resp = Message. CreateMessage (req.Version, req.Headers.Action   &#8220;Response&#8221;, timeZone   &#8220;|&#8221;   ticker   &#8220;|&#8221;   &#8220;94.85&#8243;); return resp;}} list 2.34 describes how a client adds a SOAP message head to the side that will be sent to the service untyped messages. First, create a message using CreateMessage, use the constructor to put the data message. Then a type of MessageHeader is created; in this case it is a string data into the message header by the constructor. Next, an untyped MessageHeader MessageHeader be created from the type of the last type of non-MessageHeader to be added to the message sent to the service. <br /> untyped messages untyped operating lease allows the client and server almost in the SOAP message body can transmit any content, as long as the content of communication can be used to encode the binding stack. WSDL message content is absolutely transparent for the mercy of no XSD to define the data. Client and server use System.ServiceModel.Channels.Message class to create, read and write messages. <br /> non-news type of contract does not use any property of a message to describe their contents. It is completely run-time code used to make the content meaningful. This is the direct use of XML message set is very useful information, in which case you may want to while away completely lost in the WCF code using the Document Object Model programming (Document Object Model). Used in conjunction with non-service operation type of the message receiver and returns the information set of XML message types. <br /> 2.33 shows a list of non-realization of a type of the message header in the operation and then read data from the service contract. Note that the message header data, timeZone, is a line of code access. <br /> <img src = "http://hi.csdn.net/attachment/201010/22/0_128771340165OT.gif" onClick = "window.open ( ttp://hi.csdn.net/attachment/201010 / 22/0_128771340165OT.gif "onerror =" this.src = http://cache.soso.com/img/blog/p1.gif quot;onload =" addjustimg (this) "TYPE =" audio / mpeg "> <br /> messages sent to a contract describes the services and services received from a SOAP message structure, and allows you to detect and control the SOAP message headers and body in most of the details. And data contract allows use of XML metadata definition (XSD) standard for interoperability between systems, the message contract that enables any system to communicate via SOAP interoperability. <br /> <img src = "http://hi.csdn.net/attachment/201010/22/0_1287713296Gjgb.gif" onClick = "window.open ( ttp://hi.csdn.net/attachment/201010 / 22/0_1287713296Gjgb.gif "onerror =" this.src = http://cache.soso.com/img/blog/p1.gif quot;onload =" addjustimg (this) "TYPE =" audio / mpeg "> <br /> <img src =" http://hi.csdn.net/attachment/201010/22/0_1287712995Lrq2.gif "onClick =" window.open ( ttp://hi.csdn.net/attachment / 201010/22/0_1287712995Lrq2.gif "onerror =" this.src = http://cache.soso.com/img/blog/p1.gif quot;onload =" addjustimg (this) "TYPE =" audio / mpeg "> <br /> If you are using typed messages, WCF 2.28 through the list described in [MessageHeader] attribute to explicitly support it. If you use an untyped messages, however, you need to explicitly add an untyped message header. <br /> 2.28 shows a list of typed message contract, StockPrice. the message header contains a simple type, DateTime, the message body contains a complex type, PriceDetails. PriceDetails class must be serializable, or by using a [ DataContract] attribute, or, as here shown, use the [Serializable] attribute. This example is only a message header and a message body, but can have a lot of message header and message body. <br /> If you want to leave the operation signatures to the transmission of information, then transmit the message through the SOAP message header is useful. For example, session, or related information can be passed in the message header, rather than to add additional operating parameters or add the data itself as an attribute of information. Another example is the safe, when you want to implement a custom security protocol (bypassing the WS-Security) and the custom SOAP header to pass the certificate or certificates. The third example, is about the safe, you may want to sign, encrypt some or all of the local header of the SOAP message header to sign and encrypt. All of these situations can be handled using a message contract. The disadvantage of this technique is the client and server must be added manually from the SOAP message headers and collect information, rather than operating lease contracts and associated data serialization classes for you to achieve. <br /> Note service operation to receive and send message type. When using a message contract, the input and output parameters must be marked [MessageContract] property of the message. More specifically, the operation must include a precise input parameter and must return to determine the unique result, they are news, because the request from the operator to send out and receive a reply message to directly map their SOAP said. Additional message-based programming and parameter-based programming can not be confused, so you can not put a data contract as an operation input parameters and returns a message that it contracts as a result of, or identify a message as an operating lease and the input parameters it returns a data contract as a result. You can tell the type of message is mixed and non-typed messages, but not the message contract and data contract. In the end you generate the WSDL from the service contract and data contracts to mix the message will cause a runtime error. <br /> 2.32 shows the list returned by the server to the list of 2.31 in the SOAP message request. Note that the operation of the SOAP message header in the back there is a &#8220;Response&#8221;, SOAP message body is a non-XML format string. <br /> <img src = "http://hi.csdn.net/attachment/201010/22/0_1287713280tctm.gif" onClick = "window.open ( ttp://hi.csdn.net/attachment/201010 / 22/0_1287713280tctm.gif "onerror =" this.src = http://cache.soso.com/img/blog/p1.gif quot;onload =" addjustimg (this) "TYPE =" audio / mpeg "> <br /> In some scenarios, the design stage you may not know the client and server transmit the message structure. For example, the information will be incorporated into the message itself, such as in the design stage to determine the routing information and services operations. Or the client and service side of a software (or hardware) level to operate the SOAP message and look forward to a special data format. Of these cases, the non-contract type of operation will be very useful. <br /> 2.35 client list into the message header to an untyped message <br /> corresponding, you can use svcutil.exe / messageContract or / mc option. This makes the svcutil.exe to generate proxy with a public method to receive typed messages, so clients can call for the method of approach. If you are using without / mc option of svcutil.exe way or you did not use the add service reference is always selected to generate a message contract will be used to receive parameter method to generate a public agency, and will be called message-based operating within . In any case, the line will send the same XML message. 2.28 to define a typed list of news contract namespace EssentialWCF {[Serializable] public class PriceDetails {public string Ticker; public double Amount;} [MessageContract] public class StockPrice {[MessageHeader] public DateTime CurrentTime; [MessageBodyMember] public PriceDetails Price;} [ MessageContract] public class StockPriceReq {[MessageBodyMember] public string Ticker;} [ServiceContract] public interface IStockService {[OperationContract] StockPrice GetPrice (StockPriceReq req);} public class StockService: IStockService {# region IStockService Members public StockPrice GetPrice (StockPriceReq req) { StockPrice resp = new StockPrice (); resp.Price = new PriceDetails (); resp.Price.Ticker = req.Ticker; resp.Price.Amount = 94.85; return resp;} # endregion}} list 2.29 shows when a SOAP message returned from the server to the client when the transmission of XML messages. Note [MessageHeader] elements, CurrentTime, in the SOAP message header and [MessageBodyMember] elements, Price, in the SOAP message body. 2.29 to generate a list of typed messages using the SOAP Response <br /> contract list 2.30 definitions and implementation of non-news type of contract [ServiceContract (Namespace = "http://EssentialWCF")] public class StockService2 {[OperationContract] private Message GetPrice ( Message req) {string ticker = req.GetBody <String> (); Message resp = Message.CreateMessage (req.Version, req.Headers.Action   &#8220;Response&#8221;, ticker   &#8220;|&#8221;   &#8220;94.85&#8243;); return res CITIC Bank that pits father, buried by an annual fee to upgrade CITIC credit card trap p;}} code similar to the services the client-side code, use CreateMessage to create a message, use the appropriate version to match the binding, then use GetBody method to read the server the returned results. Note CreateMessage method uses three parameters: version, operating, and string messages. When you create a message, the message version must be used to communicate with the server bindings compatible MessageVersion property through the channel definition. Operations, such as http://EssentialWCF/StockService/GetPrice, are SOAP and WCF based server used to forward the message to the appropriate action. 2.31 shows the list with 2.30 in the service code list to communicate with the client code. <br /> <img src = "http://hi.csdn.net/attachment/201010/22/0_1287713080hV7e.gif" onClick = "window.open ( ttp://hi.csdn.net/attachment/201010 / 22/0_1287713080hV7e.gif "onerror =" this.src = http://cache.soso.com/img/blog/p1.gif quot;onload =" addjustimg (this) "TYPE =" audio / mpeg "> <br /> <img src =" http://hi.csdn.net/attachment/201010/22/0_12877133644o5J.gif "onClick =" window.open ( ttp://hi.csdn.net/attachment / 201010/22/0_12877133644o5J.gif "onerror =" this.src = http://cache.soso.com/img/blog/p1.gif quot;onload =" addjustimg (this) "TYPE =" audio / mpeg "> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.0728web.net.cn/archives/631/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

