Windows Process Activation / Windows Service - wpas

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

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.

Call a web service outside firewall from EAR installed on websphere via Interface Perimeter

We have WebSphere 7 installed on server abc which is within my organization's firewall. We are deploying a new WAR file on this WebSphere which will call a web service (let's call it xyz) that's outside firewall and the solution offered is proxy server which forwards any requests sent to it to the Internet using perimeter interface.
How do I configure this in Websphere 7?
So far, I tried adding Generic JVM arguments using -Dhttp.proxy.host and port but the WAR file still calls xyz webservice directly without hopping on the proxy server.
I also tried using apache http server by calling the http server from WAR file and the HTTP server was forwarding the request to Proxy server but it dint work as expected.
PS: We can't open firewall for xyz as xyz is on cloud and has dynamic IPs and transaction end points. While my organization whitelists Web service only on the basis of IP.
Appreciate any of suggestions/ideas you can think of. Thanks.

What is the external web address to my webjob?

I have deployed an Azure webjob that is running as a web socket server. I can see by the webjob log that it is running and waiting for sockets to connect. I cannot figure out what the external web address is to that socket server.
Let's say my azure site is http://abc.azurewebsites.com and my webjob is called abc-server within the azure portal.
I've tried ws://abc.scm.azurewebsites.net and ws://abc.scm.azurewebsites.net/abc-server
I assume this is possible based of this post:
https://mikewaniewski.wordpress.com/2015/06/14/websocket-client-as-azure-webjob/
This is not possible with WebJobs. The blog post is talking a WebSockets client, not a server. You can't run a server in the webjob and expect it to be able to listen to external traffic. In fact you can't listen to external traffic on ports other than 80 and 443, and the IIS worker process w3wp is already listening on both. If you want to run a WebSockets server then you'll need to deploy a normal WebApp, not a WebJob. It depends on what stack you're using, but Azure WebApps supports WebSockets and it should work with most stacks like ASP.NET, NodeJs, etc.

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

Calling a Web Service in a Console Application Using Windows Task Scheduler

I need to sync a sql server database with data hosted on another web server. I wrote a C# console Application to call a web service to give me the data hosted on the other web server. I set up a job to run every 10 minutes in task scheduler in "Server Manager" for Windows Server 2008 R2 Enterprise Edition.
If I run the console application myself then everything works as it should. If I run it in the Task Scheduler using my username it also runs as it should. However if I run it using the NETWORK SERVICE user, which is what I need to do, then the app stops running once I try to contact the web service.
Where do I give NETWORK SERVICE the permissions to call a web service?
It turns out that the their is the local services on my company servers are not allowed to call web services. I need to make a new internal account. Thanks Rene for your help.