web-services

Java custom SOAP processor for web services

I want to build a custom framework that expose a web service by using J2SE lightweight inbuilt HTTP server for already running large socket based swing client server application. Business functionality exposed through heavy weight object which has a method to get XML string and build object using XML string. The framework should expose...

Vector of Vector in a Java webservice

I am writing a webservice method to return the values of a table.I am using two Vectors one for the column and another for the values of the table.The Vector used for Values of the table contain each row as a Vector.These methods are written inside an EJB and the webservice is deployed in Weblogic 10.3. I am able to hit the webservice an...

Handling UTF8 strings in C# web service

Hi, I created a simple web service client using the C# tool wsdl.exe. It works fine except for one thing. It seems that UTF8 strings returned in response are converted to ascii. Using SOAPUI I can see normal UTF8 encoded strings being returned by the web service. But when I debug the response I received the UTF8 content seems to have al...

connection pooling webservices axis2

Hi Guys, here is my code on how I have implemented connection pooling for a webservice stub. package com.arcot.integrations.frontend.tasks.custom.utils; import java.util.Stack; import org.apache.axis2.client.Options; import org.apache.axis2.client.ServiceClient; import com.tpf.mdm.tpf.service.TPFServiceStub; //import com.arcot.ws.w...

Concuming Web services from Apple PAstry Kit

Hi there, I'm about to implement a web app with pastry kit but I'd like to have it fetching data from a backend hosted on the net. This backend is reacheable via a Web service... IS there a method in PAstry kit allowing me to call directly a web service and parse response data to update my page ? ...

jquery ajax call custom web service asmx

Hi, i need to access custom web service based on Sharepoint 2007 with jQuery. This web service has some operations (oper_get_smt1(), oper_get_smt2() ... ) I should probably use .ajax() function. But i don't know how to correctly define URL parameter. $.ajax({ type: "POST", url: "http://site/_vti_bin/w...

Passing an image through as webservice

Hi, how would I go about passing an image from an ASMX webservice, through to my silverlight front end? I am using .Net 4.0 and Silverlight 4 front end, and SQLServer 2008 to store the image. ...

why GlassFish and JBoss present different WSDLs?

Hi. I have a web service built by Java, and deployed on two application servers named "GlassFish" and "JBoss". now when we get the WSDL from them, each application server produce different format of WSDL, that .NET wsdl.exe tool generates different object models and proxy classes. so i can't use same client .NET codes to invoke both app...

dotnet json webservice for vfp program to pass data as solution?

I am searching for a solution to pass a large dataset from visual foxpro(vfp) to a .net web service. The data is personal information such as names, address, phone numbers, etc. with 7 more columns containing id's and other parameters. We tried cursor to xml dataset but the file size is very large. So my idea is to pass json formatted...

WCF Callback: Is it interoperable with Java?

Currently I implement all my webservices in the "normal" fashion... that is, I create a WSDL file in Eclipse and then use WSCF.blue (A visual studio extension) to auto-generate the necessary code and it is reply/request. However I was hoping to use callbacks instead, so I can have my services become "push" services. Before I jump into r...

sharepoint add list item with axis2 web service

I have generated a stub with the wsdl2java.sh script that comes with Axis2. Does anyone know what the method would look like for me to add a list item to a sharepoint list from a Java class using Axis2? ...

ASP.NET Web Service - How to change Target Location

I have a webservice that works locally but when I publish it to our web server the auto-generated WSDL uses the server's name rather than the host name. I have searched the internet but only found complex answers. There should be a simple web.config change or class attribute setting to change the target location. Basically the aut...

Can't add service reference

Hi, I have started learning WCF. I wrote a simple service to query a SQL relation through LINQ. [ServiceContract] [AspNetCompatibilityRequirements(RequirementsMode = aspNetCompatibilityRequirementsMode.Allowed)] public class Order_WCFService { [OperationContract] public List<Order> getOrders() { List<Order...

Webservice timeout java web service

Hi Guys, I have a webservice stub. I am setting the timeout for the stub like this. stub.getServiceClient().getOptions().setTimeOutInMilliSeconds(timeout * 1 * 1000); But this doesnt work (i.e. the connection is alive even after the timeout period). Can you please tell me why is it so? Thanks in advance. :) ...

How to run unit tests (MSTest) in parallel ?

I am looking for ways to run test suites in parallel. I am aware of .testrunconfig setting. This allows you to multiplex on the number of CPUs. I want to run 1000 tests in parallel. This makes sense because I am testing a web service, so 90% of the time spent in a test is waiting for the service to respond. Any ideeas on how to p...

jqgrid add row and send data to webservice for insert

I have been able to pull data from my DB using jQuery/Ajax from a webservice into the jQGrid. Now I would like to send added/edited data back to the webservice. I've seen some examples by using PHP and the editurl: command. Will that work for webservices as well (like how I pulled down the data originally)? I've looked over the exam...

Is there a way to retrieve the message body when the server returns a 500 internal Server Error?

I have a routine that submits a SOAP request using HttpWebRequest and WebResponse. If the SOAP Request fails the server sends back HTTP/1.1 500 Internal Server Error. When I trap the error I have yet to find a way to view the body of the reply which contains the fault code. Is there a way to retrieve the message body when the serve...

ASP.NET web application project: how to copy a referenced DLL's dependencies to the 'Temporary ASP.NET Files' folder?

I have a web application project WAP that references class library CL. CL needs some xml configuration files in order to work properly. In WAP's csproj, I add a PostBuildEvent to copy the necessary XML files to the TargetDir. When I build, the folder structure is good; the bin folder contains CL and the xml files. When I run the webse...

Database access in a web service

I'm currently working on a web service implementation to a combined web/desktop application (ie. access from different sources). Now there are two questions I can't really find an answer to: How would I access the database in the right way (static class? singleton? DI?)? I didn't find any information on using a Web Service in a DI con...

Invoke SharePoint Web Service With Axis2 client authenticate

Hi, I'm trying to run the following in the main of my java class. The code uses the stub to first authenticate and then bring back the collection of lists in a microsoft sharepoint site. The code is as follows: ListsStub stub = new ListsStub(); HttpTransportProperties.Authenticator auth = new HttpT ransportProperties.Aut...