web-services

JAX-WS MarshalException with custom JAX-B bindings: Unable to marshal type "java.lang.String" as an element because it is missing an @XmlRootElement annotation

I seem to be having an issue with Jax-WS and Jax-b playing nicely together. I need to consume a web-service, which has a predefined WSDL. When executing the generated client I am receiving the following error: javax.xml.ws.WebServiceException: javax.xml.bind.MarshalException - with linked exception: [com.sun.istack.SAXException2: u...

Web service failing when installed in seperate project from the website...

I am totally new to web services and cannot get mine to work. My setup is on VS 2008 using IIS. I have one solution file with 3 projects in it: website, code, and services. If I put my webservice into my website and call it locally then it will work fine (it's just a hello world web service). I want to put the service into a diff...

Webservice won't accept JSON requests

Hi, The main issue is that I cannot run a webservice that accepts requests in JSON format. I keep getting a 500 Server error stating that the "request format is invalid." My ASP.NET AJAX extensions are installed. My server is running Plesk Control Panel 8.6 which is undoubtedly causing these problems. The default handler for this s...

How to handle SOAP XMLResponse c#

Hi I want to handle xmlresponse from standard c# soap (or other c# soap) and replace within some argument, because PEAR PHP Soap was incorrected sending WSDL file (wsld without typed definitions). How i can do this?? ...

How to log communication of a WebService running on IIS 6.0?

I'm running an ASP.NET WebService on IIS 6.0 that shows a lot of HTTP 500 (probably just exceptions from the WebService) inside the log at %systemroot%\System32\LogFiles\W3SVC1 on a customers site. Is it possible to log the content of those HTTP responses and there requests without modifying the WebService using IIS or a plug-in for I...

How do I set a dependency on Spring Web Services in my POM.xml

I get this on a lot of Maven dependencies, though current source of pain is Spring. I'll set a Spring version and include it like so: <spring-version>3.0.0.RELEASE</spring-version> <!-- Spring framework --> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-core</artifactId> <version>${spring-version...

Can nusoap return array of string ?

Hi all, I would like to return an array of string in my web services I've tryed : <?php require_once('nusoap/nusoap.php'); $server = new soap_server(); $server->configureWSDL('NewsService', 'urn:NewsService'); $server->register('GetAllNews', array(), array('return' => 'xsd:string[]'), 'urn:NewsService', 'urn:NewsService#GetAllNe...

Architect desperately wants to use SOAP over JMS

Hello, I have used JMS in the past to build application and it works great. Now I work with Architects that would love to use the Spec : SOAP over Java Message Service 1.0. This spec seams overly complicated. I do not see many implementation (Beside the vendors pushing for the spec). Does anyone here is using this specification in a p...

CXF Client Side Duplication of targetnamespace

I am hosting a webservice and a webapp on the same server, generated from wsdl2java. I can contact the service just fine through SoapUI and it returns a single namespace declaration when posted to the live server, but when I am working locally and use SoapUI it generates two instances of xlmns="" instead of a single one in my xml. I ha...

Using the same class in both server and web service

I have classes that are needed in both my web service and my server. For example, I have a class named Order that I'd like to send from my server to the web service and vice-versa. Problem is that the class in the server is Order and the one on the web service is localhost.Order, and it is impossible to convert between them, even though...

How to update document's metadata in Sharepoint? (Linux -> WebServices -> Sharepoint)

Hi I managed to upload a file (crud PUT khe khe :) from Linux to Sharepoint. The absolute path of the file is: http://myhost/mysite/reports/2010-04-13/file.txt Now, I'm trying to add some metadata to the file: from suds.transport.https import WindowsHttpAuthenticated url='http://myhost/mysite/_vti_bin/lists.asmx?WSDL' n=WindowsHttpA...

Having trouble binding a ksoap object to an ArrayList in Android

I'm working on an app that calls a web service, then the webservice returns an array list. My problem is I am having trouble getting the data into the ArrayList and then displaying in a ListView. Any ideas what I am doing wrong? I know for a fact the web service returns an ArrayList. Everything seems to be working fine, just no data in t...

working with a folder outside the webservice folder

I have a asp.net webservice running in windows server 2003, i want it read/write to other folder that is in other machine, i have granted to this folder full acess to Network Service, IIS_user, IIS_IWAM accounts but the process fail, this is the error: System.UnauthorizedAccessException: Access to the path '\machineIp\ServerDataStore\Pru...

JQuery: is it possible to instantiate a class on client and pass it to $.ajax to post?

what i mean by that is: i have a class called Customer: public class Customer { private string _firstName; private string _lastName; public string FirstName { get { return _firstName; } set { _firstName = value; } } public string LastName { get { return _lastName; } set { _...

Silverlight and PHP nuSOAP communication problem

I am writting a silverlight application in which I want to call the php webservice written using NuSOAP. here is the WSDL of webservice <?xml version="1.0" encoding="ISO-8859-1" ?> - <definitions xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/20...

Issue with JSON and jQuery

I'm calling a web service and returning the following data in JSON format: [{"OrderNumber":"12345","CustomerId":"555"}] In my web service success method, I'm trying to parse both: $.ajax({ type: "POST", url: "MyService.asmx/ServiceName", data: "{}", contentType: "application/json; charset=utf-8", dataType: "json",...

Why would a WebService return nulls when the actual service returns data?

I have a webservice (out of my control) that I have to talk to. I also have a packet-sniffer on the line, and (SURPRISE!!!) the developers of the webservice aren't lying. They are actually sending back all of the data that I requested. But the web-service code that is auto-generated from the WSDL file is giving me "null" as a value. UP...

Starting a new process in a asp.net web service

I have the following code: public void BeginConvert(object data) { ConverterData cObject = (ConverterData)data; string argument = string.Format("-i \"{0}\" -b {1} \"{2}\"", cObject.Source, compression, cObject.Destiny); Process converterProcess = new Process(); converterProcess.StartInfo.FileName = ffPath; converterProcess.St...

How can I limit access to a particular class to one caller at a time in an ASMX web service?

I have a web service method in which I create a particular type of object, use it for a few seconds, and then dispose it. Because of problems arising from multiple threads creating and using instances of this class at the same time, I need to restrict the method so that only one caller at a time ever has one of these objects. To do thi...

What is UDDI in the context of webservices ?

Hi , What is UDDI in the context of Webservice ? Thanks J ...