forked from Shared/esg
21 lines
3.0 KiB
HTML
21 lines
3.0 KiB
HTML
<HTML lang="en"><HEAD><link rel="alternate" type="text/xml" href="http://reinsure.centinsur.ir/shahkarinqOut?disco"/><STYLE type="text/css">#content{ FONT-SIZE: 0.7em; PADDING-BOTTOM: 2em; MARGIN-LEFT: 30px}BODY{MARGIN-TOP: 0px; MARGIN-LEFT: 0px; COLOR: #000000; FONT-FAMILY: Verdana; BACKGROUND-COLOR: white}P{MARGIN-TOP: 0px; MARGIN-BOTTOM: 12px; COLOR: #000000; FONT-FAMILY: Verdana}PRE{BORDER-RIGHT: #f0f0e0 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #f0f0e0 1px solid; MARGIN-TOP: -5px; PADDING-LEFT: 5px; FONT-SIZE: 1.2em; PADDING-BOTTOM: 5px; BORDER-LEFT: #f0f0e0 1px solid; PADDING-TOP: 5px; BORDER-BOTTOM: #f0f0e0 1px solid; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e5e5cc}.heading1{MARGIN-TOP: 0px; PADDING-LEFT: 15px; FONT-WEIGHT: normal; FONT-SIZE: 26px; MARGIN-BOTTOM: 0px; PADDING-BOTTOM: 3px; MARGIN-LEFT: -30px; WIDTH: 100%; COLOR: #ffffff; PADDING-TOP: 10px; FONT-FAMILY: Tahoma; BACKGROUND-COLOR: #003366}.intro{display: block; font-size: 1em;}</STYLE><TITLE>ShahkarInq Service</TITLE></HEAD><BODY><DIV id="content" role="main"><h1 class="heading1">ShahkarInq Service</h1><BR/><P class="intro">You have created a service.<P class='intro'>To test this service, you will need to create a client and use it to call the service. You can do this using the svcutil.exe tool from the command line with the following syntax:</P> <BR/><PRE>svcutil.exe <A HREF="http://reinsure.centinsur.ir/shahkarinqOut?wsdl">http://reinsure.centinsur.ir/shahkarinqOut?wsdl</A></PRE><P>You can also access the service description as a single file:<BR/><PRE><A HREF="http://reinsure.centinsur.ir/shahkarinqOut?singleWsdl">http://reinsure.centinsur.ir/shahkarinqOut?singleWsdl</A></PRE></P></P><P class="intro">This will generate a configuration file and a code file that contains the client class. Add the two files to your client application and use the generated client class to call the Service. For example:<BR/></P><h2 class='intro'>C#</h2><br /><PRE><font color="blue">class </font><font color="black">Test
|
|
</font>{
|
|
<font color="blue"> static void </font>Main()
|
|
{
|
|
<font color="black">ShahkarInqClient</font> client = <font color="blue">new </font><font color="black">ShahkarInqClient</font>();
|
|
|
|
<font color="darkgreen"> // Use the 'client' variable to call operations on the service.
|
|
|
|
</font><font color="darkgreen"> // Always close the client.
|
|
</font> client.Close();
|
|
}
|
|
}
|
|
</PRE><BR/><h2 class='intro'>Visual Basic</h2><br /><PRE><font color="blue">Class </font><font color="black">Test
|
|
</font><font color="blue"> Shared Sub </font>Main()
|
|
<font color="blue"> Dim </font>client As <font color="black">ShahkarInqClient</font> = <font color="blue">New </font><font color="black">ShahkarInqClient</font>()
|
|
<font color="darkgreen"> ' Use the 'client' variable to call operations on the service.
|
|
|
|
</font><font color="darkgreen"> ' Always close the client.
|
|
</font> client.Close()
|
|
<font color="blue"> End Sub
|
|
</font><font color="blue">End Class</font></PRE></DIV></BODY></HTML> |