web-services

Using strings with "general purpose" XML in WS - good or bad?

We're working now on the design of a new API for our product, which will be exposed via web services. We have a dispute whether we should use strict parameters with well defined types (my opinion) or strings that will contain XML in whatever structure needed. It is quite obvious that ideally using a strict signature is safer, and it will...

Web Services Training with PHP

I would like to get some good training on how to publish and consume web services using PHP. My employer is allowing me a budget to do this for next year. I was wondering if anyone new of some good web service training using PHP as the tool to do so. Edit: Just to clarify a little. I have been using PHP for about 4 years now and am fair...

How can I determine what WebMethod was called in a webservice

The situation is this. I have an asp.net webservice application...say a page called api.asmx In the code behind I have several methods, for example: [WebMethod(Description="Method1")] public int GetSomething(int num1, int num2){ try{ return SomeObject.DatabaseCall.DoSomething(num1, num2); } catch(Exception ex){ object[] ...

What is the best way to have Authenticate for a Web Service

Hi folks, We have a .NET web service API. Currently, people use the SOAP definition to consume the API, because we require authentication through a custom Authentication element in the SOAP header. Works perfectly. fine. SOAP requires the request to be a POST. We want to allow the users to use a the GET verb (so it can be cacheable). ...

Https WebService message: Message did not contain a valid Security Element

I am using axis 2 webservice client. The first https call to the webservice throws a exception with the message: "Message did not contain a valid Security Element". I think that the problem could be the security mode: maybe it has to be message level security. In this case, how can I configure it in axis?. The code: System.setPropert...

.Net 3.5 WebService can't be called by .Net 1.1 Windows App

I have a weird issue. I had a web service that was compiled under the 2.0 framework that was being consumed by a windows app that was compiled with the 1.1 framework. This worked just fine. Now, after upgrading the web service to the 3.5 framework, the windows app is no longer able to call it. Creating a little windows app in 3.5 as a t...

Consuming a REST service from WCF

I'm not that familiar with WCF, but I thought I'll learn while trying to consume an existing service. One of the REST APIs I thought of was the Twitter API. I thought of developing a WPF client that will just output to the screen the last 5 tweets by a certain Twitter user. I was wondering if someone could please briefly outline the st...

Testing Web Services Consumer

Here are some tools that I have found to test web services consumers: http://www.soapui.org/ https://wsunit.dev.java.net/ Are there any others? I would prefer testing frameworks that are written in Java or Python. ...

What is the most elegant and efficient way to provide AAA to web services using a WS gateway and LDAP?

Hi, I'm looking for the best way to provide authorization, authentication, and auditing to web services. I'll be using a web service gateway appliance deployed to the DMZ, and there will be an LDAP instance as a user store behind the firewall. How should it be built? Cheers KA Update As pointed out in an answer below, LDAP isn't idea...

Reporting Services WS from Java - Getting (401)Unauthorized

We're writing a web application that is trying to replace all ReportManager functionality using calls to Reporting Services SOAP API. We started working with SSRS 2008 and had our Java code working correctly. We've since had to downgrade to SSRS 2005 and now we're having problems connecting to the Server to get the list of reports avai...

How to publish our Webservices

I have created an web service I need to publish this service. I need to host and authenticated users need to access my services using ASP.net 2.0 ...

Using WCF to send a signed Request and receive an unsigned Response

I'm working with a .NET dev team who are trying to interface with a web service that uses WS-Security, and although the service requires signed requests it only returns unsigned responses. The team knows of a way to call the service using WSE, but they're required to use WCF, so can anyone suggest how to configure WCF to send signed req...

wsdl2java Error: Emitter failure. Invalid endpoint address in port

I am trying to run the wsdl2java command on a WSDL file that was given to me from another group in my company. I know wsdl2java works because I can run the examples but when I try it on the wsdl given to me it fails. The one big difference is that the WSDL given to me uses SSL. I’m using Java 1.4 (checked it a few time) and made sure ...

How to get College football scores?

I'd like to be able to get scores for the top 25 teams in college football in a usable format. I don't need them to be realtime but would like to avoid writing a screen scraper if possible. Does anyone know of a webservice or other API to do this? ...

Why is SSRS ignoring data from certain columns returned by a web method?

I'm using the XML data source feature in Reporting Services 2005 but having some issues with missing data. When there is no value for the first column in a row, it appears that the entire column is ignored by SSRS! The web method request is very simple: <Query> <Method Name="GetIssues" Namespace="http://www.mycompany.com/App/"&gt; ...

Where best to instantiate and close a Silverlight-enabled WCF Service from the Silverlight app?

When using a Silverlight-enabled WCF service, where is the best place to instantiate the service and to call the CloseAsync() method? Should you say, instantiate an instance each time you need to make a call to the service, or is it better to just instantiate an instance as a variable of the UserControl that will be making the calls? T...

How to invoke a C# web service through PHP?

I've written a web service using ASP.NET (in C#) and I'm attempting to write an example PHP client using NuSOAP. Where I'm tripped up on are examples of how to do this; some show soapval being used (and I don't quite understand the parameters - for example passing false as string types, etc.), while others are just using straight arrays...

Empty HttpContext when calling WCF webservice

I recently wrote a webservice to be used with Silverlight which uses the ASP.net membership and roles. To validate the client in the service I look at the HTTPContext.Current.User (Which works when the service is called from Silverlight) However, I've been trying to call the same service from an asp.net postback. But when I step-thru t...

Open Source Web Service/WCF media streamer

Does anyone know of an open source web service/wcf service that can stream media content to clients? In particular I am looking for something that could access my music collection and stream it to a client (could be a client browser, win mobile app or even iphone application). I guess it would have to be WCF based as I'm not sure that w...

Where can I get free real-time stock data?

Does anyone know of a way to obtain free real-time stock data or near real-time stock data? I'd like to do this since I'm interested in the financial market, not for use in investment applications which is why I'm looking for something free. I've tried the Perl module Finance::YahooQuote but some of the fields such as last trade time a...