XslGenerator Override

Overview

The following methods of the XslGenerator may be overridden:

/// Runs the HttpWebRequest and returns the Xml response.  May be overridden if needed.
/// </summary>
/// <param name="szPostUrl">URL address of web service or post</param>
/// <param name="szPostData">Querystring of data to send</param>
/// <returns></returns>
public virtual string GetRequest(string szPostUrl, string szPostData)
/// <summary>
/// Sends HTTP request to URL and returns string response. May be overridden if necessary.
/// </summary>
/// <param name="url">Full URL to send</param>
/// <returns></returns>
public virtual string httpRequest(string url)
/// <summary>
/// Instantiates facade object for parsing values
/// </summary>
public virtual void InitializeObject()


/// <summary>
/// Manipulates Post Data just before sending to web service.
/// May be overridden when needed, for example, to encrypt values.
/// </summary>
/// <param name="szPostData">Querystring to send to web service</param>
/// <returns></returns>
public virtual string ManipulatePostData(string szPostData)
   

The GetRequest( ) and httpRequest( ) methods can be overridden to write your own call to a web service. You may choose to add a web reference and use the interface in the web reference. Note that the GetRequest method calls the httpRequest method, so you will probably want to override the GetRequest method. The GetRequest method must return a string of well-formed XML that can be then loaded into an XmlDocument.

If posted values need to be encrypted in some manner, then you could override the ManipulatePostData( ) method. This method currently performs no action; it has been added in anticipation of being overridden.