Copy Code code as follows:
Using System;
Using System.Collections.Generic;
Using System.Linq;
Using System.Web;
Using System.Net;
Using System.IO;
Using System.Web.Services.Description;
Using System.CodeDom;
Using Microsoft.csharp;
Using System.CodeDom.Compiler;
Using System.Reflection;
Namespace HTTPS
{
public class Wshelper
{
To invoke a Web service dynamically
public static object Invokewebservice (string URL, String methodname, object[] args)
{
Return wshelper.invokew
, MethodName is to invoke the service method name, args is the parameter to invoke the Web service, and the return value is the result of the Web service's return. Public Static ObjectInvokewebservice (stringUrlstringMethodNameObject[] args) { returnInvokewebservicemy (URL,NULL, MethodName, args); } Public Static ObjectInvokewebservicemy (stringUrlstringClassNamestringMethodNameObject[] args) { string@namespace ="EnterpriseServerBase.WebService.DynamicWebCalling"; if(
I. Method InvokeWebservice
///
/// Call the remote WebService Method Based on the specified information
///
///
///
///
///
///
///
///
/// If the call fails, an Exception is thrown. During the call, an exception is intercepted as appropriate.
/// Exception information may occur in two places:
/// 1. CompileAssembly fails when a WebService is dynamically constructed.
/// 2. the WebService itself fails to be executed.
///
///
///
/// Object obj = InvokeWebservice ("http: // localhost/
using the "Windows Complete PC" tool is very large (who makes Vista so big). If you want to reduce the space occupied by it, you can use the special "compress disk space" function of NTFS partition. After all, this file is not often called.
Restore data
If you use the "Windows Complete PC restoration" function on the Vista installation disc every time, it is very inconvenient. We can extract the "Windows RE System Repair" tool, and install it in the hard disk for restoration.
Copy the boot.
implementation process of SDI program in VC6The following is an example of an SDI project in VC6, which shows the implementation process of the SDI in MFC by setting a breakpoint after each function. Record the following and hope to be helpful to those who have doubts about MFC's execution. 1) Csdiapp theapp; //sdi.cpp2) CSdiApp::CSdiApp () //sdi.cpp3) BOOL csd
);//Create and format a WSDL document using the XmlTextReader object XmlTextReader reader =New XmlTextReader (URL +"? wsdl"); ServiceDescription SD =Servicedescription.read (reader); ServiceDescriptionImporter SDI =NewServiceDescriptionImporter (); Sdi. Addservicedescription (SD,"",""); CodeNamespace cn =NewCodeNamespace (@namespace);//Generate the client proxy class code CodeCompileUnit CCU =NewCodeCompile
Remember to reference system. Web. Services
Public class transferwebservice{/// /// Call the remote WebService Method Based on the specified information/// /// /// /// /// /// /// /// /// If the call fails, an exception is thrown. During the call, an exception is intercepted as appropriate./// Exception information may occur in two places:/// 1. compileassembly fails when a WebService is dynamically constructed./// 2. the WebService itself fails to be executed./// /// /// /// Object OBJ = invok
Serialized data
--Example program: memo
Create a new single-document SDI application. Select cformview for the View class so that you can enter it in the window. Create three edit boxes on the page, and then add three corresponding edit box variables. These three variables are member variables of the View class. to exchange data, three corresponding variables must be created in the document class. Then, both the document class and View class should in
Code
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> Using System; Using System. Collections. Generic; Using System. text; Using System. xml; Using System. net; Using System. Web. Services. description; Using System. codedom; Using System. codedom. compiler; Using System. reflection; Namespace Windowsservicewebdefaulthotcity{ /// /// WebService proxy /// Public Class Webserviceagent{ Private Object
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.