web-services

What to choose to store just one integer? Sqlite? or Text file?

I've build a small web-service in PHP. I want to control the number of calls to a specific API method. I thought at first of using a text file, because it's just an integer. But after taking a good look at SQLite it seemed much more convenient. So the code is just: get the "counter" from SQLite and increment it when that method is calle...

How to sketch out a high-level architecture for a project uses web services?

Using Web Service technology, we want to design and implement an online bookshop business. At the minimum, it should allow customers to browse the catalogue and order books, it should process credit card details, and coordinate shipping of books. Sketch out a high-level architecture for this system. The architecture should include key co...

Invoking a TCP SoapService using TcpClient

I have a demo soap service which echos back the request public class EchoWebService : SoapService { [SoapMethod("Echo")] public string Echo(string request) { Console.WriteLine("Request: {0}", request); return DateTime.Now + Environment.NewLine + request; } } Service is h...

.asmx web services with ssl

Hi, Are there any special configuration settings you have to do to make a web service work with SSL? Is there a way to force the service methods to authenticate using a username/password like I can do with a WCF service? ...

How to lookup documentation for ASMX web services in MSDN?

Hi, What term do I use to lookup documentation for old school .asmx web services in MSDN? I want to add authentication (username/password) so that each web method is authenticated before executing. Since everything is WCF I can't find anything hehe. ...

Calling .asmx service from a .net 3.5 application

Hi, I am trying to call a .asmx (WSE) web service from a .net 3.5 application. This is possible correct? It seems when I add a web reference the API is completely different than when I add a reference in a .net 2.0 app. ...

Where is IPasswordProvider for WSE services?

Hi, I can't find IPasswordProvider interface in my WSE project. I want to create a custom password provider so I have to implement this interface. Which namespace is it in? In VS.NET, I can't find Microsoft.Web.Services.Security anywhere? Update I found Microsoft.Web.Services3, is that .net 3.5 or it still works in .net 2.0? But I...

Should a web service return an exception or an empty result when data is not found?

Should a web service return an exception or an empty result when data is not found? ...

Limiting access to a WCF REST (webHttpBinding) Service using the ASP.NET Membership Provider?

I have found a lot of material on the web about using the ASP.NET Membership Provider with the wsHttpBindings, but I haven't seen any reference to using it with webHttpBindings. I am looking for a system that will work in two scenarios: The user is logged into an asp.net website and the website is making calls to the service. The user...

Generated exception classes with Axis2

I have several web services in the same package that throw a custom exception. The problem is that the generated exception class contains a reference to the web service that generated it, so I can't use the same exception name across multiple web services. Is there a way to make Axis2 generate the exception classes inside the web servi...

Why do some API providers require an API key?

Several web service APIs have you sign up for an API key. For example, UPS Web services requires a key, which is included in calls to their service -- In addition to the username and password. What is this key used for by the provider? Perhaps UPS is the only one to require both API key and username/password? One idea is that they use ...

SetClientCredential visible in vs.net 2005 but not 2008

I add a web reference to my wse 3.0 service in Visual Studio 2005 and my intellisense shows the name of my service like MyServiceWse (it adds the WSE extension to the name). I also have access to SetClientCredentials() where I pass in my UsernameToken, everything works fine. In Visual Studio 2008 I don't have the proxy class with MySer...

Calling a Webservice with ASP.NET AJAX Clientside-only Script from a ASP.NET MVC App?

hi, i am looking for a basic example that shows how i could call a webservice with the client side javascript that comes with the ASP.NET Ajax Toolkit. i already found some example that shows how you do it with ASP.NET WebForms but i am using ASP.NET MVC so no fancy ScriptManager for me :( does somebody know a insightful blog posting ...

File Extension to MIME Type Web Service?

Are there any web services which will allow me to provide a file extension and it would return a list of possible MIME types? For example: http://mimetype.com/getMime/doc Which could return: application/msword,application/docappl/text,application/vnd.msword,application/vnd.ms-word,application/winword,application/word,application/x-...

How do I properly set up a Silverlight-Enabled WCF Service?

EDIT: I started a closed vote on this question because I resolved the issue. I was doing everything fine, but a reference to an ASP URL rewriter that I downloaded and uninstalled a while ago still had a reference in IIS. This forum post by Waclaw Stypula (the one with the steps) helped me track this down, by accident. When I launched t...

Choose 'using' namespace at runtime

I have a web service client application that connects to a 3rd party's web service. The 3rd party has updated their web service so now my client app fails with SOAP exceptions. Unfortunately, I can't simply update my app to work with the new web service since some of my users will still be using the old web service. So basically I'd l...

SharePoint Web Part Parameters Mysteriously Disappearing

Ok I've got a weird one, I have a SharePoint WebPart in WSS 3.0 right now that's querying Yahoo Traffic's REST interface using VB.NET and the HttpWebRequest object. However I kept getting an error message from Yahoo that was saying I'm unauthorized, upon further examination, I noticed it's passing the following URL to yahoo: http://loca...

Do we absolutely need a STS for SAML?

I am trying to implement SAML enabled SOAP services for the first time and I have some conceptual questions regarding the role of a Secure Token Service (STS) in a SAML implementation. User ---> Web Application ---SOAP/SAML--> Messaging Application Basically the scenario is that the user logs into the Web application using his user na...

ASP.NET WebService without Complex Types

I'm trying to build a webservice with ASP that will be given three parameters: a string, a date/time and another string. After making the method, the wsdl contains this: <s:element name="TimesheetAudit"> <s:complexType> <s:sequence> <s:element minOccurs="0" maxOccurs="1" name="employeeNumber" type="s:string"/> <s:element minOccurs="1" ...

Java applet using web services over ssl

I need to have my java applet use a soap based web service over ssl. I know that you can have a servlet act as a go-between/proxy, but I want to have the applet use the web service directly over SSL. The problem is supplying the certs to the web server hosting the web services. I supplied these Java Applet Runtime Settings via the Java C...