C# Class Thinktecture.Tools.Web.Services.WsdlWizard.WsdlWizardForm

Represents the user interface handler for WsdlWizardForm.
Inheritance: System.Windows.Forms.Form
Mostrar archivo Open project: WSCF/WSCF Class Usage Examples

Public Methods

Method Description
WsdlWizardForm ( string xsdLocation ) : System

Initializes a new instance of WsdlWizardForm class with the specified values.

WsdlWizardForm ( string wsdlLocation, bool roundTripping ) : System

Initializes a new instance of WsdlWizardForm class with the specified values.

The roundTripping parameter must be set to true in order to use the round tripping feature.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

WndProc ( System &m ) : void

Private Methods

Method Description
AddFaultPropertyPane ( PaneNode operationNode, Operation selectedOperation, Message faultMessage ) : PaneNode
DynamicComboBox_SelectedIndexChanged ( object sender, EventArgs e ) : void

Handles the SelectedIndexChanged event of the dynamically created combo box.

This method changes the selected operation's in/out message parameters to the newly selected values.

GetXmlCommentForWSDL ( ) : string

Reads the XML comment from the resource file. Wizard places this XML comment on the top of the WSDL file. XML comment is stored in the resource file with "RT_HEADER" key. Once the XML comment is read, the procedure will replace the substring - @VERSION@ in it with application's current version number.

ImportAdditionalOptions ( ) : void

Imports the additional options from an existing WSDL InterfaceContract.

ImportBasicServiceMetaData ( ) : void

Imports the basic metadata to UI controls from an existing WSDL InterfaceContract.

ImportEmbeddedTypes ( ) : void

Imports the embedded types in the WSDL.

ImportFaultMessages ( PaneNode operationNode, Operation operation, string originalOperationName ) : void
ImportFaultMessages ( PaneNode operationNode, Operation operation, string originalOperationName, OperationsCollection operations ) : void
ImportMessageHeaders ( Operation op, Message msg, ComboBox headersCombo, CheckBox hasHeaders, bool outMessage ) : MessagesCollection

Imports the message headers for a specified message from an existing WSDL. InterfaceContract.

ImportMessageHeaders ( OperationsCollection ops, Operation op, Message msg, ComboBox headersCombo, CheckBox hasHeaders, bool outMessage ) : MessagesCollection

Imports the message headers for a specified message from an existing WSDL. InterfaceContract.

ImportMessageParameter ( OperationsCollection operations, Operation op, bool output, ComboBox parametersCombo, CheckBox chkName, TextBox tbName, PropertyPane messageLabel, TextBox opDocumentation, TextBox msgDocumentation, string originalOperationName ) : bool

Imports the message parameters for a specified operation from an existing WSDL.

ImportMessageParameter ( Operation op, bool output, ComboBox parametersCombo, CheckBox chkName, TextBox tbName, PropertyPane messageLabel, TextBox opDocumentation, TextBox msgDocumentation, string originalOperationName ) : void

Imports the message parameters for a specified operation from an existing WSDL. InterfaceContract.

ImportOperations ( ) : void

Imports the service operations to UI from an existing WSDL InterfaceContract.

ImportSchemaImports ( ) : bool

Imports the imported schema files to UI from an existing WSDL InterfaceContract.

InferOperations ( ) : void

Infers the operations according to the message name patterns in the message contracts.

InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

RemoveInferedOperations ( ) : void

Removes the inferred operations.

SetupOperationsMessagesPanes ( ) : void

Prepares the dynamic controls for the operations-message parameters mapping UI.

UpdateCurrentFolder ( string location ) : void

Updates the current folder, every time the schemaLocation is set.

WSDLWizard_Load ( object sender, EventArgs e ) : void

Performs the actions on loading the WSDL wizard.

If the round tripping mode is on, this method imports the data from the existing WSDL file to the UI.

WsdlWizardForm_Closing ( object sender, CancelEventArgs e ) : void

Performs the actions upon closing the main wizard form.

This method shows the confirmation dialog box , if the form is closed using the "Close" button.

addFaultMessage_Clicked ( object sender, EventArgs e ) : void
cbCodeGenDialog_CheckedChanged ( object sender, System e ) : void

CheckedChanged event handler for the cbCodeGenDialog checkbox control.

This checkbox specifies whether the code generation dialog must start right after the wizard or not. If the user is in the round-tripping mode this checkbox is selected by default and it verifies if the user tries to uncheck it.

cbInfer_CheckedChanged ( object sender, System e ) : void

CheckedChanged event handler for the cbInfer checkbox control.

This checkbox specifies whether to infer the operations or not.

importsListView_MouseMove ( object sender, System e ) : void

Displays a tool tip about the list item underneath the mouse pointer.

llAddImport_LinkClicked ( object sender, System e ) : void

Performs the actions after clicking the "llAddImport" link label.

This allows the user to select the XSD files using a file open dialog box and add them to the importsListView control.

llAddItem_LinkClicked ( object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e ) : void

Adds an operation to the operationsListView.

llRemoveImport_LinkClicked ( object sender, System e ) : void

Performs the actions after clicking the llRemoveImport link label.

This action removes the items from the importsListView control.

llRemoveItem_LinkClicked ( object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e ) : void

Removes an operation from the operationsListView.

This method will remove the first item of the selected items collection. If no item is selected then it removes the last item available in the list.

wsdlWizardCtrl_AfterPageDisplayed ( object sender, WizardPageEventArgs e ) : void

Performs the actions after displaying a wizard page.

wsdlWizardCtrl_BeforePageDisplayed ( object sender, WizardPageDisplayedEventArgs e ) : void

Performs the actions prior to displaying each page on the wizard control.

wsdlWizardCtrl_BeforeSummaryPageDisplayed ( object sender, WizardPageSummaryEventArgs e ) : void

Performs the actions before the summery page is loaded.

wsdlWizardCtrl_Cancelled ( object sender, EventArgs e ) : void

Asks the confirmation question and quits the wizard upon the click of the "Cancel" button.

wsdlWizardCtrl_Finished ( object sender, EventArgs e ) : void

Performs the actions, when the wizard's "Finish" button is clicked.

This method finally wraps up the necessary details and calls the ServiceDescriptionEngine class to generate the WSDL file.

wsdlWizardCtrl_Load ( object sender, EventArgs e ) : void

Performs the necessary initialization when the wizard control loads.

wsdlWizardCtrl_ValidatePage ( object sender, WizardPageValidateEventArgs e ) : void

Performs the validation before navigating to another page on the wizard control.

Method Details

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool
return void

WndProc() protected method

protected WndProc ( System &m ) : void
m System
return void

WsdlWizardForm() public method

Initializes a new instance of WsdlWizardForm class with the specified values.
public WsdlWizardForm ( string xsdLocation ) : System
xsdLocation string /// Location of the XSD file containing the message contract definitions for the WSDL. ///
return System

WsdlWizardForm() public method

Initializes a new instance of WsdlWizardForm class with the specified values.
The roundTripping parameter must be set to true in order to use the round tripping feature.
public WsdlWizardForm ( string wsdlLocation, bool roundTripping ) : System
wsdlLocation string Location of the WSDL file to modify.
roundTripping bool /// Value indicating that the round tripping is required. ///
return System