Generate proxy class for WCF
svcutil http://localhost/MyService/ClassName.svc /Language=c# /t:Code /out:ClassNameProxy.cs /config:ClassNameProxy.config
Generate proxy class for ASMX web service
svcutil http://localhost/MyService/ClassName.asmx /Language=c# /t:Code /out:ClassNameProxy.cs /config:ClassNameProxy.config
Note: This command line use runtime serializer by default. To use other serializer like xml serializer user /serializer: attribute in command line as below-
SvcUtil.exe http://localhost/MyService/ClassName.asmx /serializer:XmlSerializer /out:"d:Projects\ClassNameProxy.cs" /config:"d:\projects\ClassNameProxy.config"
No comments:
Post a Comment