|
|
|
|
|
Total Hits: 3 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

The Supporting Tokens sample demonstrates how to add additional tokens to a message that uses WS-Security. The example adds an X.509 binary security token in addition to a username security token. The token is passed in a WS-Security message header from the client to the service and part of the message is signed with the private key associated with the X.509 security token to prove the possession of the X.509 certificate to the receiver. This is useful in the case when there is a requirement to ...
|
|
|
|
Total Hits: 4 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

This sample demonstrates how to implement a custom X.509 Certificate Validator. This is useful in cases where none of the built-in X.509 Certificate Validation modes is appropriate for the requirements of the application. This sample shows a service that has a custom validator that accepts self-issued certificates. The client uses such a certificate to authenticate to the service....
|
|
|
|
Total Hits: 4 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

This sample demonstrates how to implement a custom UserNamePassword Validator. This is useful in cases where none of the built-in UserNamePassword Validation modes is appropriate for the requirements of the application; for example, when username/password pairs are stored in some external store, such as a database. This sample shows a service that has a custom validator that checks for two particular username/password pairs. The client uses such a username/password pair to authenticate to the se...
|
|
|
|
Total Hits: 2 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

This sample extends the Pooling sample by defining an interface, IObjectControl, which customizes the initialization of an object by activating and deactivating it. The client invokes methods that return the object to the pool and that do not return the object to the pool....
|
|
|
|
Total Hits: 2 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

HTML form posts are encoded as a series of name-value pairs inside of an HTTP POST entity body with a content type of application/x-www-form-urlencoded. The ParseQueryString method is capable of parsing these values into a NameValueCollection when presented with a raw entity body string. To allow this name/value collection to be passed as a parameter to a WCF service operation, the FormDataProcessor class in the sample uses the IDispatchMessageFormatter extensibility point....
|
|
|
|
Total Hits: 2 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

The CustomChannelsTester is a tool that you can use to test your custom channel implementations against a set of predefined service contracts. You can select the set of service contracts and pass it to the tool using an XML file. The tool then generates the service and client that exercises your custom channel implementations during message exchange....
|
|
|
|
Total Hits: 2 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

As with all other data in JScript, variables can store arrays. Type annotation can specify that a variable must contain an array object or a typed array, but it does not provide an initial array. To store an array in a variable, you must declare an array and assign it to that variable....
|
|
|
|
Total Hits: 2 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

Severak types of arrays can be used in JScript. The following information explains how to use some of these arrays and how to choose an appropriate array for your particular application....
|
|
|
|
Total Hits: 2 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

It is possible to create an array and populate it with other arrays. The base array can be either a JScript array or a typed array. JScript arrays allow more flexibility in the types of stored data, while typed arrays prevent storage of inappropriately typed data in the array.
Arrays of arrays are useful for applications in which each subarray has a different length. If each subarray has the same length, a multidimensional array may be more useful. For more information, see Multidimension...
|
|
|
|
Total Hits: 3 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

Like many programming languages, JScript uses the equal sign (=) to assign values to variables: it is the assignment operator. The left operand of the = operator must be an Lvalue, which means that it must be a variable, array element, or object property....
|
|
|
|
Total Hits: 2 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

Alternation in a regular expression enables you to group choices between two or more alternatives. You can essentially specify "this OR that" in a pattern. Subexpressions enable you to match a pattern in searched text and divide the match into separate submatches. The resulting submatches can be retrieved by the program. Subexpressions also enable you to reformat text, as described in Backreferences (Scripting)....
|
|
|
|
Total Hits: 2 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

Although browsers support most JScript features, the new features that target the .NET Framework, class-based objects, data types, enumerations, conditional compilation directives, and the const statement, are supported only on the server-side. Consequently, you should use these features exclusively in server-side scripts. For more information, see JScript Version Information....
|
|
|
|
|
|