web-services

JAX-WS: when input soap validation fails

I have created a web service with JAX-WS. When the input SOAP message is not well formed or can not be validated, a soap fault is returned automatically to the caller. I dont want the caller to receive this standard SOAP message but i want to create an own custom SOAP fault. So if the call looks like this (note Envelope1, its not valid)...

Confused about how java annotations (ie @SecurityDomain) work and what they do (do they generate xml? wsdl?)

I have to admit that I am pretty confused how annotations work in java (SOAP) webservices. What does adding a tag do? I think that maybe adding a tag generates some xml or maybe a wsdl? When I build should I see a difference in those files? Any description or link would be great. I have done a lot of searching but I think maybe ...

Locating Businesses by Latitude and Longitude (API?/Webservice?)

I am looking for a free database (csv, tab delimited, xml, etc) or even a web service or API which will allow me to query for business listings within a certain distance of a latitude and longitude. A global scope would be perfect, but I would settle for Canada/US information. Does anyone know of anything like this? ...

Will SharePoint 2010 support Web Service Access?

It's my understanding SharePoint 2010 has introduced a new JavaScript API, a brand new assembly for Silverlight clients, but does anybody know if there will be still support for good old Web Service Access? By old services, I am referring to the old interface http://msdn.microsoft.com/en-us/library/dd878586.aspx ...

Visual Studio does not generate app.config content when "add service reference"

When I add a web service by using "add service reference" in the console app, the app.config does not generate the configuration. How do I generate this app.config with a specific wsdl? Thanks! ...

How can I pass FormsAuthentication.SetAuthCookie from Data Access Layer Class to WebService to Javascript ?

I am using DotNetOpenAuth in my ASP.Net Website. I have modified it to work with Facebook Connect as well, using the same methods and database structures. Now I have come across a problem. I have added a Facebook Connect button to a login page. From that HTML button, I have to somehow pull information from the Facebook Connect connect...

Suggestion for a web service framework for Java

I want a web service framework which is open source & free for commercial use, also security is a main concern too. Please suggest a web service framework for Java using SOAP standard. ...

Connecting a webservice - using IP instead of the machine name

Hello all, I've written a web service and hosted it in my local system using IIS. So when i connect to the webservice using http://localhost/server/service.asmx as the URL i'm getting the desired results (aka everything works like charm). But when i use http://192.168.14.56/server/service.asmx i'm not able to get any of the results. Bu...

Java client program calling a .NET 3.5 web service

i have written a simple java stand-alone program that calls a .net 1.0 web service. no problem. if i take that same program structure and call a .net 3.5 web service, the java program fails. for whatever reason, the parameters passed to the 3.5 service are NEVER received. so can someone point the way to an example or tutorial where i ca...

Deploy .asmx (not WCF) web service on windows 7

I need to deploy an old style .asmx asp.net web service (not WCF) on a windows 7 machine for test reasons. However it seems that just deploying it on a virtual directory or new web site on IIS won't cut like it used to back in xp. What should I do? I need to test the service locally prior to deploying it, and so far it's giving me a har...

JBOSS webservice annotations.

Background I am attempting to make a webservice using SOAP and JBOSS. I know that to make a webservice that you do something like this: import javax.jws.WebService; @WebService public class HelloImpl { /** * @param name * @return Say hello to the person. */ public String sayHello(String name) { return "Hello, " + ...

org.apache.axis2.AxisFault: First Element must contain the local name, Envelope , but found html

What could be the reason for the following exception from Axis... Http verion used was 1.0. Read this could be solved if the following property is set stub._getServiceClient().getOptions(). setProperty(org.apache.axis2.transport.http.HTTPConstants.CHUNKED, Boolean.FALSE); But the above property is applicable only for ...

Can I 'bounce' a file upload posted to one server directly to another?

I've got a Java REST based web service sitting on a server which is accessed via a PHP web application on a separate server. The PHP app delegates the actions performed by browser clients to the web service. I want to perform a file upload function to the web service via HTTP POST and PUT. The browser clients will use POST to upload a f...

Problem with ASP.NET Web Service and JQuery Client

Am I missing something? I am trying to create a web service and consumer in asp.net, using JSON with JQuery, but I'm not having any luck. I can get JQuery to call the service, and get the service to reply, but the response always goes through the "error" callback in JQuery. When I view the response in FireBug, it appears to be XML, not J...

Web Services in Java, beginner question

Hello, Im new to the subject of web services in java, though im familiar with the concept of web services. As im new to this topic,i have the following questions which i would like someone to help me with. 1) How are web services created in Java ?.Ive come across methods like using Eclipe WTP (Web Tools Platform), Sun WSDP (Web Service...

how to select a best book on a particular subject from amazon?

Maybe it's not a specific programming question, that's why I got "The question you're asking appears subjective and is likely to be closed." warning bar once I typed the question title (how stackoverflow achieve this? interesting. by keyword?) Anyway, my question is about Amazon API, because I didn't have previous experiences on that. ...

How to call Webservice through jquery?

Hi! How to call webservice through jquery... I tried following code.. $(document).ready(function() { $("#sayHelloButton").click(function(event){ $.ajax({ type: "POST", url: "C:/Webservice/Service.asmx/HelloToYou", data: "{'name': '" + $('#name').val()...

403 Forbidden Error

When I'm accessing web service from jquery, I'm getting the 403 forbidden error.. I published and created in the virtual directory too. Wat's the cause of this error and how to rectify it? I've added the webservice in the same solution.. This is my following code.. $(document).ready(function() { $("#sayHelloButton").click(f...

Passing an ArrayList to a Web Service using Web Services Explorer in Eclipse

Hi, In Eclipse,im using Web Services Explorer to test a web service, by invoking a WSDL operation . One of the input parameters for the Web Service is an ArrayList. How to enter an ArrayList, in the form in Web Services Explorer ? Please help. Thank You. ...

Use of Exceptions or Strings containing error codes in Software Services

We are creating an application for a client's website. The website will make a function call to our application to generate XML data, which we will return as a String. If something goes wrong during the course of our processing, how should we report this error? Should we throw an Exception for the client's website to catch, or should ...