.Net Slideshow

  1. <?xml version="1.0"?> 
  2. <CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"
  3.     <CodeSnippet Format="1.0.0"
  4.         <Header> 
  5.             <Title>Access webservice</Title> 
  6.             <Shortcut /
  7.             <Description>creates a Webservice proxy and uses webservice</Description> 
  8.             <Author /
  9.             <SnippetTypes> 
  10.                 <SnippetType>Expansion</SnippetType> 
  11.             </SnippetTypes> 
  12.         </Header> 
  13.         <Snippet> 
  14.             <Declarations> 
  15.                 <Literal> 
  16.                     <ID>param1</ID> 
  17.                     <ToolTip>Webservice URL</ToolTip> 
  18.                     <Default>http://www.webservicex.net/WeatherForecast.asmx</Default> 
  19.                 </Literal> 
  20.                 <Literal> 
  21.                     <ID>param2</ID> 
  22.                     <ToolTip>Proxy source code name</ToolTip> 
  23.                     <Default>WeatherForecast</Default> 
  24.                 </Literal> 
  25.                 <Literal> 
  26.                     <ID>param3</ID> 
  27.                     <ToolTip>Instance name</ToolTip> 
  28.                     <Default>weatherService</Default> 
  29.                 </Literal> 
  30.             </Declarations> 
  31.             <Code Language="PowerShell" Kind="59"><![CDATA[wsdl.exe '$param1$?WSDL' 
  32. csc /t:library $param2$.cs 
  33. [Reflection.Assembly]::LoadFrom("$pwd\$param2$.dll"
  34. $$param3$ = new-object $param2
  35. $forecast = $$param3$.GetWeatherByZipCode(80526) 
  36. $forecast 
  37. ]]></Code> 
  38.         </Snippet> 
  39.     </CodeSnippet> 
  40. </CodeSnippets> 
 
Loading...
Concentrated Tech NSoftware Dell Compellent Sponsored by Idera and Concentrated Tech and NSoftware and Dell Compellent
Copyright 2011 PowerShell.com. All rights reserved.