perfectxml.com
 Basic Search  Advanced Search   
Topics Resources Free Library Software XML News About Us
home » info bank » .NET XML KB Articles » HOWTO Tue, Jan 15, 2008
.NET XML KB Articles
HOWTO

HOW TO INFO BUG PRB FIX

Page: 1  2  3  4  5  6  7  8  9  

Use XmlDocument Elements When Passed to or Returned from WebMethods by Using Visual C# .NET
KB: 330600
This step-by-step article describes how the XmlDocument object is marshalled into an XmlNode object when it is passed as a parameter to a Web Service method or when it is returned by a Web Service method. Marshaling XmlDocument objects into XmlNode objects poses some restrictions on how client applications must pass XmlDocument parameters and access XmlDocument return values when the applications call Web Service methods.

When XmlDocument objects are passed as parameters to Web Service methods or are returned from Web Service methods, they are marshalled into XmlNode objects. XmlDocument is derived from XmlNode. To use XmlDocument elements that are not exposed by XmlNode, load the data in the XmlNode object into an XmlDocument object. To do this, use one of the following methods:
  • XmlDocument.LoadXml(XmlNode.OuterXml)
  • XmlDocument.ImportNode(XmlNode, true)
View this KB Article...

Format DateTime and Date Values in the XML Extracted from an ADO.NET DataSet by Using Visual C# .NET
KB: 330597
This step-by-step article describes how to format DateTime and Date values in the XML that is extracted from an ADO.NET DataSet object. In ADO.NET, the DateTime and Date values of DataTable columns are written in the XSD DateTime and Date formats when the DataSet is saved as XML. The standard XSD DateTime and Date formats are CCYY-MM-DDThh:mm:ss and CCYY-MM-DD, respectively, because the underlying XSD schema of the DataSet maps the DateTime and Date columns of the database to the DateTime and XSD Date data types.
View this KB Article...

Implement Common MSXML Tasks in System.xml By Using Visual C# .NET
KB: 330589
This step-by-step article describes the features of MSXML and .NET Framework Classes for XML processing. This article also includes samples on how to use MSXML in Microsoft Visual Basic 6.0 and how to use .NET Framework Classes for XML processing.
  • Microsoft XML Core Services (MSXML)
    Using MSXML, you can build XML-based applications. You can easily use MSXML in Visual Studio 6.0 applications as DOM and SAX Parser with support for XSLT and XPath.
  • .NET Framework Classes for XML
    The System.Xml namespace provides standards-based support for processing XML. System.xml is not just the managed version of MSXML; its functionality may overlap that of the MSXML COM library, and it also contains a rich object model and hierarchy.
View this KB Article...

Access protected document in Document Function of XSLT using Visual Basic.Net
KB: 330587
This step-by-step article demonstrates the process of instantiating and supplying a custom XmlUrlResolver to resolve document() references to external XML resources that are located on authenticated Web sites or folders.

XmlTransform class uses the underlying XmlResolver class to read the files referenced in the XSL. You can specify the credentials to the XmlResolver. The XmlResolver class supports three methods for authenticating Web requests: Basic authentication, Digest authentication and Integrated Windows authentication.
View this KB Article...

Access protected document in Document Function of XSLT using Visual C# .Net
KB: 330586
This step-by-step article demonstrates the process of instantiating and supplying a custom XmlUrlResolver to resolve document() references to external XML resources that are located on authenticated Web sites or folders. XmlTransform class uses the underlying XmlResolver class to read the files referenced in the XSL. You can specify the credentials to the XmlResolver. The XmlResolver class supports three methods for authenticating Web requests: Basic authentication, Digest authentication and Integrated Windows authentication.
View this KB Article...

To Create Commerce Catalog Web Services by Using Visual C# .NET
KB: 328883
This article describes how to create Commerce Server catalog XML Web services by using Microsoft Visual C# .NET, and then consume the services by using a Microsoft Visual Basic .NET Client.
View this KB Article...

Add and Remove Web Service Extension Files in IIS 6.0
KB: 328419
This step-by-step article describes how to add Web service extension files such as Internet Server Application Programming Interface (ISAPI) extensions and Common Gateway Interface (CGI) applications to a local or a remote server in Internet Information Services (IIS) 6.0. The article also describes how to remove Web service extension files from a local or remote server in IIS 6.0. The IIS 6.0 metabase contains the Web Service Extension Restriction List (WebSvcExtRestrictionList) property, which is a list of comma-separated strings that describe each Web service extension that is installed on the server and current state (enabled or disabled) of the extension. For IIS to use an extension, it must exist in the Web Service Extension Restriction List. The Iisext.vbs command line script, which is stored in the Sysvol\system32\ (default Windows\System32) directory, can be used to add a single file to or remove a single file from the WebSvcExtRestrictionList property on a local or remote computer that is running IIS 6.0.
View this KB Article...

Change Types Used in Proxy Classes That Are Generated with Wsdl.exe
KB: 326790
The Web Services Description Language tool (Wsdl.exe) generates proxy code for XML Web services. The generated types that are used in the proxy class are based on the contents of the WSDL document that describes the XML Web service. However, the generated types might not be what you want nor what you expect. Wsdl.exe determines the best generated type to use for the objects that are specified in the service description. In some cases, the tool uses a least-common-denominator approach for casting objects to a type. For example, an ArrayList parameter in a WebMethod is described in WSDL as a XML Schema (XSD) sequence. When Wsdl.exe finds this array description in the service description, Wsdl.exe then generates a proxy class that uses an Object Array. You may prefer to work with an ArrayList, which was the original type that was used in the WebMethod. If you do not want to use the generated types, you can change the generated types to more desirable types. To get the appropriate object type, you can open the file that contains the generated proxy class, manually change the generated method parameter, and then return types to the appropriate object types.
View this KB Article...

Implement and Use Custom Extension Functions When You Execute XPath Queries in Visual Basic .NET
KB: 324899
Non-standard user-defined functions that are used in XPath query expressions are referred to as XPath extension functions. You might want to implement a custom XPath extension function when the standard XPath functions do not address a specific requirement. The Microsoft .NET Framework provides interfaces that you can use to implement and to use custom extension functions and user-defined variables in XPath expressions that are used to execute XPath queries in .NET applications. The XsltContext class, the IXsltContextFunction interface, and the IXsltContextVariable interface are all implemented in the System.Xml.Xsl namespace and are the .NET Framework components that you use to address this requirement.

This step-by-step article explains the use of these interfaces and provides a code sample to illustrate their application in implementing and using extension functions and user-defined variables in XPath expressions.
View this KB Article...

Implement and Use Custom Extension Functions When You Execute XPath Queries in Visual C# .NET
KB: 324462
Non-standard user-defined functions that are used in XPath query expressions are referred to as XPath extension functions. You might want to implement a custom XPath extension function when the standard XPath functions do not address a specific requirement. The Microsoft .NET Framework provides interfaces that you can use to implement and to use custom extension functions and user-defined variables in XPath expressions that are used to execute XPath queries in .NET applications. The XsltContext class, the IXsltContextFunction interface, and the IXsltContextVariable interface are all implemented in the System.Xml.Xsl namespace and are the .NET Framework components that you use to address this requirement.

This step-by-step article explains the use of these interfaces and provides a code sample to illustrate their application in implementing and using extension functions and user-defined variables in XPath expressions.
View this KB Article...

Secure XML Web Services with Secure Socket Layer in Windows Server 2003
KB: 324284
This step-by-step article describes how to configure a current XML Web service to use an encrypted channel with a Secure Socket Layer (SSL) connection.
View this KB Article...

Use Extension Objects When You Execute XSL Transformations in Visual C# .NET Applications
KB: 323370
In-line script blocks and external code components can be used to implement custom routines that are invoked during the course of an XSL transformation (XSLT) to perform calculations and process data. Microsoft recommends that you avoid the usage of in-line script blocks, and instead use external code components to implement such custom routines when you design portable XSLT style sheets. External code components that are used by XSLT are referred to as XSLT Extension objects.

This step-by-step article describes how to set up and test sample ASP.NET applications based on a possible real world scenario to demonstrate how to use Extension objects while you execute XSLT in Microsoft .NET applications.
View this KB Article...

Perform Output Caching with Web Services in Visual Basic .NET
KB: 322744
This step-by-step article describes how to create a sample ASP.NET Web service that uses output caching. Output caching caches the output response result of a Web service based on the Duration attribute that is specified for a corresponding WebMethod.
View this KB Article...

Write a Simple Web Service by Using Visual J# .NET
KB: 321863
This step-by-step article describes how to write a simple Web service and provides an example of how to use the Web service.
View this KB Article...

Execute Parameterized XSL Transformations in .NET Applications
KB: 321704
This step-by-step article describes how to execute a parameterized Extensible Stylesheet Language (XSL) transformation in an ASP.NET application by dynamically supplying values for the input parameters that are defined in the referenced style sheet. You can also use these concepts in other types of .NET applications that execute parameterized XSL transformations.
View this KB Article...


Page: 1  2  3  4  5  6  7  8  9  

  Contact Us | E-mail Us | Site Guide | About PerfectXML | Advertise ©2004 perfectxml.com. All rights reserved. | Privacy