web-services

JAX-WS get soap without actually sending to a web-service

Using JAX-WS and a custom WSDL, is there a way to get the message that would be sent to a web-service without actually making a call to the service? I need to generate a soap message conforming to a WSDL, but that soap message is actually embedded into another message. I was thinking I could create a local web-service that just echos bac...

Create Valid XML from XSD Loaded at Runtime (without xsd.exe)

Possible Duplicate: Programmatically Create XML File From XSD XML instance generation from XML schema (xsd) How to generate sample XML documents from their DTD or XSD? Here's the scenario: I've created an application that hooks into a commercial CRM product using their web service API, which unfortunately has a di...

What is the easiest way to populate an object's attributes from an XML response message?

I have a fair bit of experience working with the iPhone SDK. I have a couple fully developed apps including a utility application for tracking data and a board game. I would consider myself a novice on the iPhone SDK. I also have no issues with reviewing documentation and examples for hours until I understand something, as long as the do...

How to config WebService to return ArrayList instead of Array?

Hi * I have a web service in java that implemented on jax-ws. This web service return an generic list of User. It's working very good :). @Stateless(name = "AdminToolSessionEJB") @RemoteBinding(jndiBinding = "AdminToolSessionRemote") @Remote(AdminToolSessionRemote.class) @WebService public class AdminToolSessionBean implements AdminTo...

Help! me with "AJAX"

I am working around AJAX for few months now and i see Ajax request as following, Pass parameters to background page (PHP/ASP/HTML/TXT/XML ... what else can be here?) Do some processing on server Get back the results and show to client (HTML/XML/JSON ... what else can be here?) If there is something else to add on Request lifecycle ...

Are there any Objective-C web frameworks?

Are there any Objective-C web frameworks? The only frameworks I've found is frothkit. I'm primary looking for a way to write RESTful json web services in Objective-C. ...

Is there a Web Service API to the Google Product Search?

I want to call the Google product search and get back a parse-able XML file rather than having to scrape the HTML. I'm not looking for a SOAP based service, but a service that returns XML based on a URL passed in. ...

Google Search that Returns XML

I want to do a Google search that returns an XML document (instead of html). Is that possible? ...

Get location of visitor, using GPS if available?

I'm making a website and I want to sort some search results by distance from the user. I suspect many of my users will want to access my site "on the road" due to the nature of my site, with their iPhones, BlackBerries, or what have you. Some of these devices might have GPS's, which I assume is more accurate than an IP-address lookup. Is...

Json Value undefined when converting datatable into json format

I want to retreive the data from database and assign it to dropdownlist. For that I'm using the following jquery in the onclick event function getcountry() { try { $.ajax({ type: "POST", url: "/JsonWebServiceWithJQuery/jsonwebservice.asmx/getcountry", ...

Testing a WSDL in Eclipse Web Services Explorer

Hello, I have a WSDL file for a web service which i want to test. Im using the Web Services Explorer in Eclipse to test the webservice. The webservice defines a login operation,containing a loginRequest message. The definitions are as shown below. Login Operation <wsdl:operation name="login" parameterOrder="in0"> <wsdl:input...

Why does my .NET webmethod return a complete HTML document instead of just the return value?

Hi, I'm trying to get more familiar with AJAX, and web services, so I have created the simplest of webservices with VS2008, hello world, with a webmethod GetPaper, and am trying to get the return value "hello world". <%@ WebService Language="C#" Class="HelloWorld" %> using System; using System.Web; using System.Web.Services; using Sys...

Get rid of JAXBElement in classes generated by wsimport called from ant

Hi, I have the following problem: I'm using the wsimport ant task to create a webservice client (for salesforce.com). Everything's working fine but the generated classes all use this strange JAXBElement class for all bean properties. Eg: public void setLastName(JAXBElement<String> value) { this.lastName = ((JAXBElement<String> ) ...

Exposing a web service, Security concerns

Hi, I created a webservice based on https which I am sharing with my friends. I am worried about the security of the webservice, because username and password will work if there are making the request from the server side. However, if I want to provide a widget like twitter, I am worried about having the authentication code in the html....

Validating WCF Web Service XML body using a MessageInspector

I have a built a WCF web service against a pre-existing XSD schema which uses the XmlSerializer serializer. I would like to validate incoming requests and outgoing requests against this pre-existing schema. MSDN contains a worked example of how this can be accomplished using WCF MessageInspectors. The technique described involves creati...

Error parsing WSDL message

Hello, I have the following wsdl : http://pastie.org/804441 . I get the following errors with the wsdl. Im using it in a tool called XAware, which is a data integration tool. This question is not about XAware. Just looking at the errors below and the wsdl file,does it indicate some problem with the WSDL im using or is my WSDL fine ? P...

See the SOAP request from Proxy class method calls

I'm using .NET 2.0 web services. If I add a reference to a WSDL and make a proxy class method call, what's the easiest way in VS to see the SOAP being sent? Example, I added the PayPal WSDL Web Service Reference and made a call as so: PayPalAPIAASoapBinding _client = new PayPalAPIAASoapBinding(); ...rest of code and then SetExpre...

Webservice security - What is the best option?

I would like to secure our webserives. However I am not entirely sure how this is done. Needless to say that I am pretty new to this. Here is what I would like to have. I would like to authenticate the user against lets say database/activedirecrtory or even a third party authentication. Now if the user is authenticated, I would like to u...

Handle exceptions in web services with Elmah

Hi Is there a way to globally handle exceptions in regular ASP.NET Web Service (asmx) using ELMAH like we do it in ASP.NET web site ? Thanks ...

Java WebService call - null parameters

I have a Java WS developed with JAX-WS. This service has only one method with two int parameters as input. Every time I try to call this service the parameters are 0. If I change to type to Integer 0 is transformed in null. ...