web-services

Is OMElement mandatory in Axis2 Webservice???

Hi, I am migrating my webservices from Axis1.x to Axis2. I have all the webservices which takes multiple arguments like String, int etc. Also for authentication i have added header part so i have created my own WSDL file. So when i use my WSDL file and try to call WebService it Takes OMElement as Argument. But if i dont specify any W...

Architecture question - call a remote SQL Server directly or thru a service?

In my new WPF/silverlight app, is it better to directly connect to my remote SQL Server (I'm using linq to sql), or is it better to call a WCF service and have the service connect to the database? The SQL Server and a Win2k8 web server are both leased and at the same location. If creating a WCF service, I would run it on the web serve...

ServiceContractGenerator vs ServiceDescriptionImporter

I'm trying to build a light-weight SOAP client without using Add Service Reference. Ideally, this client should work for as many services as possible. Currently, it uses ServiceDescriptionImporter to generate the service assembly. Unfortunately, this doesn't appear to work for WCF services. Someone recommended that I use ServiceContractG...

login credential checking webservice

i created a website which contain 'name' label which has a textbox for entering name.And along with this one i have one more label 'password' which contain a textbox for entering password..Can any one give me a code for a webservice which need to check whether this value is existing in database or not ...

Is there a PHP library to create ASP.Net datasets for use with ASP.Net webservices?

I need to consume a ASP.Net webserice from PHP. So far reading data hasn't been to difficult. I have been able to pars the XML and find the information that I need. The problem I am running into is sending data back to the webservice. It is looking for the XML representation of a dataset. Is there anything out there that can generate the...

Error Consuming a SOAP Web Service

I am trying to consume a web service that is exposed by [Percussion CMS][1] in order to create content items programmatically. When attempting to add the web reference in Visual Studio 2008, however, Visual Studio alerts with me the following: The document was understood, but it could not be processed: The WSDL document con...

Client catching Web Service User Exceptions [Java 6.0.17]

I am trying to send an EXCEPTION from a Web Server to a Client using JAX-WS ... When the exception is thrown by the server the client does catch it ... but the contents are not the expected message... Server.java package pck; @WebService() public class Server { @WebMethod() public function() throws UserException { thro...

Web Services Build Error in Monotouch

My project and web services work fine in the simulator but crash when uploading to an iPhone. It had been working fine before I updated Monotouch from 1.1. Can I revert back to earlier versions of Monotouch? Here is the problem: I have a monotouch app using web services. When I export the project to Xcode, I get a build error statin...

Web service is expecting a DataSet object, how can I provide that via ColdFusion or in raw XML?

I need to make a call to a web service written in .NET. The application making the call is written in ColdFusion. One of the parameters the web service expects is a DataSet object. I can't instantiate a .NET DataSet object in ColdFusion, how can I pass the web service something it will accept? I have no problem writing the SOAP request i...

javax.microedition.xml.rpc.Operation.newInstance returns null - JSR172

I am using the Sun Wireless Toolkit 2.5.2 to generate web services client stubs. When running the generated code, the method Operation.newInstance method always returns null. The generated code is: Operation op = Operation.newInstance(_qname_a, _type_b, _type_c); _prepOperation(op); ... 'op' is null after the call which then caus...

Exception in a Hello World webmethod.

I get an exception in a WS (asmx) which says: System.IndexOutOfRangeException: Index was outside the bounds of the array. at System.Web.Services.Protocols.HttpServerType..ctor(Type type) at System.Web.Services.Protocols.HttpServerProtocol.Initialize() at System.Web.Services.Protocols.ServerProtocol.SetContext(Type type, HttpCon...

Getting "ArrayOf" prepended to arrays of ActiveRecord objects in XML representation returned by asp.net webservice with Mono

ASP.net web method: [WebMethod()] public Data.Subtitle[] GetAll() { return Data.Subtitle.FindAll(); } Here's the Subtitle class: [ActiveRecord("Subtitle")] public class Subtitle : ActiveRecordBase<Subtitle> { [PrimaryKey(PrimaryKeyType.Assigned)] public int SubId {get;set;} [Property()] public int SubStreamId {ge...

Ask jboss if it has a web method?

We have our web services written in Java running on JBoss. Our website is written in .Net 3.5. We've run into an issue where if a web service has a change, sometimes it breaks the website, and they end up having to be deployed at the same time. Right now I changed a web service, and the website code has been changed to match. The o...

Security weak link

I've read a ton of information about hashing and salting passwords, do's, don't etc. The problem I see is this: If a hacker is going to go through the efforts of stealing the list of hashed passwords, doesn't he then have access to all the data that is password protected? It's like storing the combination to a safe, in the safe. Brea...

Techniques to reduce data harvesting from AJAX/JSON services.

I was wondering if anyone had come across any techniques to reduce the chances of data exposed through JSON type services on the server (intended to supply AJAX functions) from being harvested by external agents. It seems to me that the problem is not so difficult if you had say a Flash client consuming the data. Then you could send en...

.NET Webservice doesn't return JSON data anymore

Hello, Last months I've been busy creating a .NET Webservice with several functions and a website written in html and Javascript which acts as the user interface and calls the webservice methods with JSON. The webservice returned JSON responses and it did work very well. Then I concentrated on the webservice to finish all the functional...

Persisting web service passwords

I'm not a security guy so any help on this would be greatly appreciated. I have a large number of third-party field devices that have remote methods that can be called across xml-rpc using ssl. For each method call, a username and password must be transmitted in plain text as parameters along with any other method parameters. I have no ...

Unable to write a file to the server

I have a web service that creates files on the server. It works great locally. As soon as I deploy the service to the shared host, it hangs. No exception is caught in the front end web site. When I inspect the folder where it should have written a file, I see the file written with 0 bytes. Is this a permissions issue? Any help is appr...

How can i process XML doc in javascript bookmarklet?

Can a bookmarklet process the XML result document from a web service once it's displayed in the browser? After calling a web service from the browser, an XML document is returned. I would like to build a bookmarklet to grab some element values from the XML and display them in another window. However, i'm having trouble getting access to...

J2me web service connection problem

hi, i'm trying to connect to a php web service using kxml-rpc api and the code is as simple as this: XmlRpcClient xmlrpc = new XmlRpcClient("http://***ip here***:88/secure/service"); Vector parameters = new Vector(); parameters.addElement("value"); String result = (String) (xmlrpc.execute("functionName", parameters)); Mobile device...