web-services

Web services out there for mobile

Hi, I'm prolly going to make an app for mobile that uses web services. I have my scope of interest what I want to do yet I would like to get some overview of it. Is there are some list of available web services that I am allow to use (with example in C# would be best). I saw an app which uses it to recognize the sound (name of song etc....

What is a good way to write functional tests for website email functionality?

Websites involve email functions, such as sending registration information, password reminders, etc. I try to routinely run functional tests of complete websites from outside the website, and need a way to receive these test emails from an httplib based test script. Previously, I have used anonymous email services, where the email cont...

Ignore fatal errors and DB exceptions in a PHP web service

I have a web service written in PHP, that returns JSON results. It works well and has been thoroughly tested. I needed to add logging to the service calls (who called and when). I implemented this using a SQLite database (for very small amount of data) and PDO. The one condition to the logging was that it should not harm the web servic...

Could not authenticate user.

Hi, I'm having problem on using soap I get an error: Fault code: soap:Server Fault string: Server was unable to process request. ---> ERROR: Could not authenticate user. How to fix this? I dont know why this error appears. the last time i check my code its ok but now i got that error. thanks ...

problem with Java web service

hi all i have implement a simple web service the method signature of web service is: public OperationResult createUser(int systemId, int refId, String name, String password, int planId, BigDecimal amount) the OperationResult class is as follows: public class OperationResult implements Serializable { private static f...

Distributed Database Communication

Hello, I am a junior software engineer,I like this site and people in it.So,I want to ask my problems to see your answers and suggestions.Then,please don't mad at me for asking without searching. My problem is about Distributed database communication(MSSQL Server 2008).In picture,I need a Main Server in center of star topology and othe...

What's the ASP.NET Webservice request lifecycle?

On a regular aspx page, I have events such as Page_Init, Page_Unload, etc., which occur in a well-defined order. I have an asmx page providing [WebMethod()]s. Do similar events exist? In particular, some events that allow me to initialize some data (like Page_Load) and do some clean-up (like Page_Unload) would be extremely useful. (As ...

Error connecting to Web Service in C#

I am trying to access a web service and calling a method to pass my request parameters. I am programmatically setting my credentials, using: service.Credentials = new NetworkCredential("username", "password", "domain_url"); When in the above code, I pass domain_url, I get this Web Exception, Unable to automatically step into t...

Designing a system with a presentation layer and a web service-based API

Hello, We are designing a system that has functionality that is essentially the same at the presentation layer and the exposed API layer. My question is what technique / strategy to use so we can get the most reuse out of our code with performance in mind? Here's a simplified example: A user can add a Customer via a web form. This wil...

Create a SOAP header?

How do you add create a SOAP web service header? Example <soap:Header> <myHeader xmlns="https://www.domain.com"&gt; <Username>string</Username> <Password>string</Password> </myHeader> </soap:Header> source code using System; using System.Collections.Generic; using System.Web; using System.Web.Services; using ...

Print XML content of SOAP message

I am using Apache CXF for my webservices. I've created an instance of AbstractSoapInterceptor. In its public void handleMessage(SoapMessage message) throws Fault method I would like to print the XML content of the intercepted message to the console. How can I achieve that? ...

How to build a WS with CXF and Spring?

I'm trying to build a WS with CXF. I'm following this article http://www.ibm.com/developerworks/library/ws-pojo-springcxf/ But I have 2 questions: 1) http://stackoverflow.com/questions/3969268/which-maven2-artifacts-are-necessary-to-build-a-ws-with-cxf-and-spring 2) I'm getting this error: FileNotFound: META-INF/cxf/cxf.xml. I don't ...

Custom HTTP headers with XmlRpcClient

I was wondering if anyone knows how to send custom HTTP headers using an XmlRpcClient in Java? I see a custom header can be set using XmlRpcHttpTransport.setRequestHeader() but I don't see a way of tying this in with the XmlRpcClient itself. ...

SOAP header: why authenticate in the header and not the body?

SOAP header: why authenticate in the header and not the body? whats the differences between putting the user's credentials (username/password) in the header vs the user's credentials (username/password) in the body? ...

Object reference not set to an instance of an object.??? in soap?

Got an error while trying to invoke the webservice "System.NullReferenceException: Object reference not set to an instance of an object." Error on this line if (Authentication.Username == "x" && Authentication.Password == "y") what does this mean? [WebService(Namespace = "https://domain.com")] [WebServiceBinding(Confor...

How to use java.util.Date in Axis2

I'm using Axis2 1.5.2 to pass Dates between client/server. But when using java.util.Date Axis2 throws this error: date string can not be less than 19 characters. Anyone knows a workaround or how to fix it? ...

Google App Engine (Java) web service authentication/authorization/security.

I currently have a Google App Engine app consisting of two parts: A website using old school JSPs A RESTful service implemented in Jersey I've been trying to figure out how to shoehorn authentication into the web service but am rather lost since I've never used Spring before, and it sounds like that's the way to go. Must I use Spring,...

How to show error info in web methods?

I have an ASMX web service and I have a couple of methods that in their original implementation were of return type bool. What would the proper way of returning an error to the client? Currently they just return false. Is there a way to return a more complex type that would inform the client of an issue such as a null value passed for a...

Accessing All Sharepoint 2010 User Profiles

I'm attempting to iterate through all User Profiles in SharePoint 2010 from a Silverlight application that will be added to a SharePoint page. Based on what I've learned, the User Profile Service is different than the SharePoint Website's store of a list of users who are "members" of the site or have ever visited it. To get that list of ...

Online syncing between iPhone, iPad, Mac, etc.

I have plans to set up a website where people can create an account and create their own content. This content consists of text, images and likely audio. Users should also be able to download an iPhone, iPad, Mac or even a Windows app that syncs with their online content, so they can view their content offline, possibly make changes to ...