web-services

Properway to encapsulate Asynchronous Web Service Communications

I usually try to encapsulate my web service calls in my client side apps. Rather than doing this: public Guid FindUserIDSelected(string userName) { MyWebServiceReference service = new MyWebServiceReference(GetEndpointBasedOnEnv(Env)); return service.GetUserIDFromName(userName); } I have a static class that encapsulates the co...

ASP.NET and jQuery AJAX - strange problem

Hi, I've got this strange problem... I've got a web service running against jQuery front-end. When I run it through the integrated web server of VS2008 - it works great. But when I use the IIS itself - I get this error: System.InvalidOperationException: Request format is invalid: application/json; charset=utf-8. at System.Web.Servi...

Easiest/cheapest way to convert C# code on home PC to a web service?

I have lots of code snippets on my pc that do a whole bunch of cool things in C# (not asp.net, these are mainly console apps). I store all my results in a mysql database on my home PC. What is the best way forward for converting this all into an online web service with login portal etc? My asp.net knowledge is limited, so I may have to ...

Connect to Unknown SOAP Web Service

Hello all I would like to build an app in C# that connects to an Apache AXIS web service and performs the following operations via SOAP. Login in to the server. POST string data to server Receive and display server response Here's the tough part. I do not have access to the server, nor do I know where the .JWS file is located on th...

Parser Error: Could not create type 'WebService1.Service1'.

I ran into this very basic problem and saw so much bad advice on the web that I wanted to share the solution. This happens if you create a web service in Visual Studio and then rename the class and the .cs file, but do not update the .ASMX file to point to the new codebehind. So, click "View Markup" on the corresponding .ASMX file and ma...

Trouble debugging asp.net web service

I'm having trouble figuring out why my web service is not working correctly when called from my asp.net application in production only. I am able to run my asp.net application locally, calling the web service (in production) and it completes correctly. I am able to modify the web.config to allow me to use the test form on the producti...

Asynchronous WCF Web Service Load Testing

I see several other questions about load testing web services. But as far as I can tell those are all synchronous load testing tools. (Meaning they send a ton of requests but the go one at a time.) I am looking for a tool where I can say, "I want 100 requests to be launched at the exact same time". Now, I am new to the whole load tes...

How do I make REST calls for a particular Item Amazon.com?

Can somebody please show me resources that would let me make REST calls from my Android Phone to Amazon? I need to get Item details for that Item. I tried to look for documentation but I really couldn't find it. I am sorry if this has been answered before but I couldn't find the answer. Thank you. ...

How to provide a cross platform, asynchronous service interface

What is the best way to provide an asynchronous service interface to multi-platform (primarily java and .net) clients? The backend service is implemented in java. We are looking at asynchronous web service and message queues, but apparently cross platform asynchronous web service* is not supported yet in java (as far as I know) and fo...

Web Service using SOAP WDSL with PHP

I've been trying to use a Web Service which has the WSDL file below. The bit I'm not sure about is what I am supposed to pass or do with the first part of it. It asks for a personaldetails object with a tns type to be passed to it but I don't understand what that means? The actual method I am trying to use is called PersonalDetails_Up...

Exposing the web service using CXF

Hi, I have a requirement to expose a webservice using CXF. I am following this easy tutorial link text and did the following steps Created a service and an implementation with @WebService annotations Added the standard xml snippet of including cxf.xml and other xmls specified Now I need to deploy this webservice in multiple containers....

How to add client filter to dispatch in jersey?

How to add client filter to dispatch in jersey? I want to add gzip filter. I create dispatch object and invoke WS this way. Service svc = Service.create(qname); svc.addPort(qname, HTTPBinding.HTTP_BINDING, server + uri); Dispatch<Object> dispatcher = svc.createDispatch(qname, jaxbContext, ...

Free resources while waiting for remote gate in (PHP, Apache, Nginx)

Hi, My php script waits for remote gate response, normally for ~20 seconds. It causes apache httpd threads to live in memory with opened MySQL connection and finally to exceed MaxClients value. How it can be managed to free idle resources until remote gate reponse. One solution is: 1) run remote gate request and then redirect user to ...

Request format is unrecognised for URL unexpectedly ending in /SomeWebServiceWebMethod

Hi All, Issue : On our web server's event viewer, we get few "Request format is unrecognized for URL unexpectedly ending in /SomeWebServiceWebMethod. [e.g. www.xyz.com/services/contactservice/webmethod?parameter1=abc] Scenario : We are exposing a web service web method to display contact phone numbers on our website via javascript meth...

How to use a WebServices to display Progress Indication?

0 down vote favorite I have a daily launched multi-threaded loading service. I would like to keep tack of the percentage progress of the loader. I was thinking that it would be good to have an update column on a database table that writes the %Progress. However, I have learned that this may not be a good idea as there will there be a ...

RIA Services, how do I organize the services?

I am working on a project that is going to be using RIA services. The visual studio solution file has 2 projects, one for the UI and the other for the domain logic. The initial approach was to have multiple domain service classes inside of the domain logic project (to keep it organized). After receiving a certain compile error I came acr...

Calling a php webservice from .net with a cert

I'm using this code from c# to call a php web service that is secured by user/password and certificate: string wsurl = ConfigurationManager.AppSettings["Url"]; string wsuser = ConfigurationManager.AppSettings["User"]; string wspass = ConfigurationManager.AppSettings["Pass"]; string url = string.Format(wsurl, param1, param2); System.Ne...

Should I be an algorithm developer, or java web frameworks type developer?

So - as I see it, there are really two kinds of developers. Those that do frameworks, web services, pretty-making front ends, etc etc. Then there are developers that write the algorithms that solve the problem. That is, unless the problem is "display this raw data in some meaningful way." In that case, the framework/web developer guy mig...

cannot restart a Service C#

i have this code to restart a service, but this is not working. I can start and stop individually but not restart which involves me to first stop and start the service. try { //service.Stop(); //service.Start(); int millisec1 = Environment.TickCount; TimeSpan timeout = TimeSpan.Fr...

Calling getUserPrincipal() in a Web Service returns ANONYMOUS

Hello everyone I'm trying to use plain SSL between my web service and a client application. They are both running in GlassFish 2.1.1 and are each in seperate domains. The client application is itself web application and I have add the JVM option -Dcom.sun.enterprise.security.httpsOutboundKeyAlias=s1as in order to get it to send it's cert...