WCF Project type differences - web-services

I'm working on few WCF tutorials and I would like to understand the difference between WCF Service Library, WCF Service Application and WCF Workflow Service Application.
Do you have any examples on when I should use service library and service application?
Thank you

WCF Service Application hosts the service directly in IIS.
WCF Service Library you have to handle the hosting yourself.
WCF Workflow Service Application does the same as the WCF Service Application except for Workflow services (WF).

Related

Do i need a localhost server to invoke a web service

I'm very fresh and beginner in the web services world, I'm trying to learn how to deploy and consume services.
My question: Using any technology (such as Java), when I want to invoke some web service that is deployed in a remote server, do i need to install and configure a localhost server in order to access the web service? or I can access it without install server
Note: I'm asking about consuming a web service not developing a one
Thanks in advance
No. Just as your web browser doesn't require a web server to access other web servers, your code doesn't require a web server to access other web servers.

Windows Process Activation / Windows Service

I currently have a WCF service hosted in IIS and using WPAS to send messages from MSMQ to it. I would like to host the service in a windows service. Will WPAS still send messages to it when it is hosted as a windows service?
I dont think so. WPAS is integrated and work with IIS. If you host your service in Windows Service, then OS will be responsible for starting and stopping your service. But if you want additional functionality, you have to add code for it

how to start Process.start from a web service hosted via a windows service

I am trying to call Proccess.Start("") from a WCF REST service hosted in a Windows Service through its OnStart method. And i am returning a bool as Process.Start(), though it is returning true, the process is not started.
Please provide me a way to solve this issue. and how can i start a process from a web service hosted through a windows service

WSO2 Application Server - REST Service, deploy as Application or Service?

If I have some functionality I want to expose via REST in the WSO2 Application Server and it seems that I have two main choices:
Deploy as a JAX-RS Application
Deploy as a Service
When deploying as a service, it appears that I have options for Quality of Service that don't appear to be available for Applications.
Question: If I am creating a REST based functionality from scratch, should I prefer to design as a service rather than as an application, because the service has more flexibility?
In WSO2 Application Server there are two approaches to create RESTfull services.
Create RESTfull service using Axis2, then you should deploy them as "service"
Create JAX-RS spec based service using CXF, then you should deploy them as "JAX-RS" applications.

In what tier should my web service references be?

I have the following structure in my web solution:
Domain
DataAccess
ApplicationServices
Web
Tests
I have some application services that I am using to abstract some web services that I am using. (Specifically, I am bundling some shipping web services together into a single application service.) Should my Application Services layer reference the web services I am consuming, and the other tiers remain ignorant, or should I reference the web services in the Web and Tests tiers and inject the web services into the application service?
I would use a Service Gateway pattern to work with Web Services, so I would have another project called ServiceGateway as an additional tier to my application and this will be referenced by ApplciationServices, as stated here..