Questions tagged [webservicehost]

27 questions
1
vote
4 answers

Hosting service for PHP REST API and scheduled service

I have implemented REST API using PHP. This API access to MySQL Database. I was looking for hosting services but I'm not sure where to start, majority of this type of services is referring to Web Hosting, which as I understand is not what I…
aumanets
  • 3,703
  • 8
  • 39
  • 59
1
vote
2 answers

Getting a POST endpoint to work in self-hosted (WebServiceHost) C# webservice?

So, I have been messing around with webservices for a while now, and I keep getting back to some basics, that I never seem to get right. Question 1: When using a WebServiceHost in .NET/C#, you can define a method/endpoint as using GET/POST/etc.…
Ted
  • 19,727
  • 35
  • 96
  • 154
0
votes
1 answer

ChannelFactory with WebHttpBinding always POSTs while executing a ServiceContract OperationContract

I have a service that is hosted via WebServiceHost and I need to delegate some of the calls to other REST services on the web. I built a ClientBase concrete class to handle this. The flow looks like this: http://localhost:8000/users/my@email.com ->…
0
votes
0 answers

How can I stop reply from WCF service WebServiceHost

I have a WCF WebServiceHost with WebHttpBinding. I don't want to reply to IPs that are not whitelisted to hide the presence of the service, rather than answering with a 404 error. I have tried without…
Tofnet
  • 185
  • 2
  • 5
0
votes
0 answers

Two WebServiceHost instances

I am using a library called SwaggerWcf to generate Swagger definitions for my application hosting a WCF REST API. I have finally made it work as I want it with the following code: var swaggerHost = new WebServiceHost(typeof(SwaggerWcfEndpoint)); …
Smith5727
  • 402
  • 4
  • 15
0
votes
0 answers

Unable to Access webservice from a mobile web browser

I am new to webservices and I am creating an android application that will send and recieve data from a webservice. I have created a REST webservice in Eclipse using Java. I have used Tomcat server. I am running the webservice on my localhost (Dell…
AnshX
  • 71
  • 1
  • 1
  • 7
0
votes
1 answer

Search Nearby Location by Coordinate?

i am trying to create a web service for our mobile developers. I have database of coordinates of locations. How do I return the result of nearby coordinates given a coordinate? Lets say within a radius of 100 miles. Any idea?
JayVDiyk
  • 4,277
  • 22
  • 70
  • 135
0
votes
2 answers

Why to keep WCF Implementation and ServiceHost separately?

What is the benefit to keep the WCF project having - WEB HOST PROJECT and Service Implementaiton project separately. Service contract library Service implementation library Service Host project I understand Contract and Implementaiton to keep…
user3711357
  • 1,425
  • 7
  • 32
  • 54
0
votes
2 answers

Implement IDisposable

I have a following class: public class MyClass : IDisposable { private WebServiceHost m_WebServiceHost; // Members public void Dispose() { m_WebServiceHost // how do I dispose this object? } } WebServiceHost implements…
YAKOVM
  • 9,805
  • 31
  • 116
  • 217
0
votes
1 answer

Configuring an ASP.NET hosted WCF 3.5 WebServiceHost programmatically? (i.e. No WebConfig)

I'm having a bit of trouble getting this all running. This is my web.config:
Xorcist
  • 3,129
  • 3
  • 21
  • 47
0
votes
1 answer

WCF webservice needs to listen on 2 ports iisexpress. TCP error code 10061

We have a wcf webservice that an external client will be using to provide requests. This webservice (the webservice) calls another wcf service ( the agent) where the business logic is implemented. The agent also monitors activity in the database…
Dar
  • 383
  • 1
  • 5
  • 16
0
votes
1 answer

C# - WebServiceHost issue with Visual Studio 2012

I am using a WebServiceHost to receive a command object and return a response to a client. I have datacontracts setup for the objects and the client is executed using HttpWebRequest and HttpWebResponse objects. This has all been working fine for two…
1
2