SQL Server Performance

  • Home
  • Articles
  • Forums
  • Tips
  • Training
  • FAQ's
  • Blogs
  • Software
  • Books
  • About Us
RSS Feeds
Sign in | Join


Article Topics

All Articles
Performance Tuning
Audit
Business Intelligence
Clustering
Reporting Services
SQL Azure
Developer
General DBA
ASP.NET / ADO.NET
SQL Azure

USEFUL SITES :

ASP.NET Tutorials
Windows and SQL Azure Tutorials
Cloud Hosting Magazine
SharePoint Tutorials
Windows Server Help

Write for Us

Share your SQL Server knowledge with others and raise your profile in the community More...
Latest Articles

A High Level Comparison Between Oracle and SQL Server - Part ...
A High Level Comparison Between Oracle and SQL Server - Part ...
A High Level Comparison Between Oracle and SQL Server - Part ...
A High Level Comparison Between Oracle and SQL Server

More     
 
Latest FAQ's

Add Node to A SQL Server failover Cluster failed with invalid ...
SQL Server Destination remote server error
Setting Up Data And Log Files For SQL Server
Will Check Constraints Improve Database Performance?

More     
   
Latest Software Reviews

dbForge Review
Spotlight on ApexSQL Diff - Server-based database comparison tool ...
Spotlight on ApexSQL Data Diff - Server-based database comparison tool ...
Spotlight on ApexSQL Doc 2008

More     

articles >> business intelligence >> Using Web Service and XML Tasks in ...

Using Web Service and XML Tasks in SQL Server 2008 Integration Services

By : Ashish Kumar Mehta
Mar 31, 2009

Page 2 / 3


9.       Drag and drop Web Service Task from the toolbox to the Control Flow window and rename it as “Web Service Task - Get Google StockQuote”. Then double click the Web Service Task to open up the editor window as shown in the snippet below.

Within the Web Services Task Editor, click on General tab in the left panel and then from the right side panel under Connection choose HttpConnection value as “HTTPConnectionToWebService”. Next, provide the path for WSDLFile as “C:\StockQuote\StockQuote.wsdl”. Next, set the value as “True” for OverwriteWSDLFile option. When the value is set to “True” it means each time the package executes it will download a new copy of StockQuote.wsdl file and store it locally. Click Download WSDL button to manually download the StockQuote.wsdl file.

10. Select Input tab on the left side panel of Web Service Task Editor and choose StockQuote as the value for Service. Similarly, select GetQuote as the value for Method option from the dropdown list.

As highlighted in the snippet above choose “User::StockQuote” as the value from the drop down list and also enable the checkbox. This variable holds the input parameter “GOOG”.

11.    Select output tab on the left side panel of the Web Service Task Editor and choose OutputType as File Connection, and for File option choose the path as “C:\StockQuote\StockQuote.XML”. Click OK to save the Web Service task.

12. Create a StokeQuote.XSD schema file by copying the below XML code and save the file in the “C:\StokeQuote” folder. This schema file will be used by the XML task to validate the resulting XML received once the GetQuote method of the StockQuote web service has executed successfully.

 

<?xml version="1.0"?>

<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">

 <xs:element name="string" type="xs:string" />

</xs:schema>

 

13. Drag and drop  “XML Task” from the toolbox to the Control Flow window. Then double click the XML Task to open up the editor window and set the properties under general tab as shown in the snippet below.

 

The XML Task Editor should be configured with the details as shown in the below table.

 

Input

OperationType

Validate

SourceType

File Connection

Source

StockQuote.XML

(Browse the file from C:\StockQuote folder)

System

True

Output

SaveOperationResults

True

OperationResults

     DestinationType

File Connection

     Destination

Evaluate.txt

(Create a blank file with name Evaluate.txt within the C:\StockQuote folder. This file will store the output once the resulting StockQuote.XML from the web service is validated against the StockQuote.XSD file)

     OverwriteDestination

True

Second Operand

SecondOperandType

File Connection

SecondOperand

StockQuote.XSD

(Browse the file from C:\StockQuote folder)

Validation Options

ValidationType

XSD

FailOnValidationFail

False


<< Prev Page     Next Page>>    








C# Help and Tutorials | PHP MySQL Tutorial | Sharepoint Tutorial | Azure Tutorial | Cloud Hosting Magazine | ASP.NET Tutorials | Windows Server Help | Windows Phone Pro | Silverlight Ace | Visual Studio Tutorials | Home | Peformance Articles | Audit Articles | Business Intelligence Articles | Clustering Articles | Developer Articles | Reporting Services Articles | DBA Articles | ASP.NET / ADO.NET Articles | SQL Server Training Videos | DBA FAQ's | Developer Peformance FAQ's | DBA Peformance FAQ's | Developer FAQ's | Clustering FAQ's | Error Messages | Audit Tool Reviews | Backup Tool Reviews | Coding Tool Reviews | Compare Tool Reviews | Documentation Tool Reviews | Design Tool Reviews | Monitoring Tool Reviews | Log Tool Reviews | Reporting Tool Reviews | Clustering Tool Reviews | Security Tool Reviews | Change Management Tool Reviews | Remote Access Tool Reviews | Book Reviews | Security Tool Reviews | ADO.NET / ASP.NET | Administration | Analysis/OLAP Services | Application Development | Configuration | Components | ETL | Hardware | High Availability | Hints | Index | Misc | Operating Systems | Performance Tuning | Replication | T-SQL | Views


              © 2010 Jude O'Kelly. All rights reserved