Use svcutil command line
svcutil yourwsdlfile.wsdl
http://msdn.microsoft.com/en-us/library/aa347733.aspx
ServiceModel Metadata Utility Tool is a newer version than wsdl
Showing posts with label WCF. Show all posts
Showing posts with label WCF. Show all posts
Wednesday, April 16, 2014
Thursday, March 20, 2014
How to solve problem, Only WS-ReliableMessaging messages are processed by this endpoint
Remove reliableSession binding from WCF server side setting.
Or Add reliableSession binding setting into client side as well.
Wednesday, March 19, 2014
How to enable WCF tracing to debug weird problem?
Got a weird WCF timeout exception
The socket connection was aborted. This could be caused by an error processing your message or a receive timeout being exceeded by the remote host, or an underlying network resource issue
The read operation failed, see inner exception.
After tried all of settings related to timeout, decided to enable WCF tracing to see what exactly happened on server side.
Found one serialization exception in the log, solved the problem.
Put following setting to enable WCF tracing:
http://msdn.microsoft.com/en-us/library/ms733025.aspx
The socket connection was aborted. This could be caused by an error processing your message or a receive timeout being exceeded by the remote host, or an underlying network resource issue
The read operation failed, see inner exception.
After tried all of settings related to timeout, decided to enable WCF tracing to see what exactly happened on server side.
Found one serialization exception in the log, solved the problem.
Put following setting to enable WCF tracing:
http://msdn.microsoft.com/en-us/library/ms733025.aspx
Thursday, August 8, 2013
How to install or uninstall Windows Service from CMD command line?
In command line, go to .Net Framework folder:
C:\Windows\Microsoft.NET\Framework\v4.0.30319
Run following line:
installutil C:\folder name\ServiceHost.exe
Uninstall:
installutil /u C:\folder name\ServiceHost.exe
If want to install service with different display name:
sc create "Your Service Name" binpath= "fullpath of your exe file"
C:\Windows\Microsoft.NET\Framework\v4.0.30319
Run following line:
installutil C:\folder name\ServiceHost.exe
Uninstall:
installutil /u C:\folder name\ServiceHost.exe
If want to install service with different display name:
sc create "Your Service Name" binpath= "fullpath of your exe file"
Thursday, December 20, 2012
How to call WCF service in ASP.NET ?
Add following setting in web.config:
http://msdn.microsoft.com/en-ca/library/bb763177(v=vs.90).aspx
Wednesday, December 19, 2012
How to solve "Service has zero application endpoints" in WCF host
Check service name in config file
Make sure it is a full name with all the namespace path
Make sure it is a full name with all the namespace path
Subscribe to:
Posts (Atom)