web-services

Can JAX-WS be used to let a server execute web service calls on a client?

Hello! I'm playing around with P2P. I want to use JAX-WS for communication inside a P2P network. Some peers are "behind a firewall", so they can't listen on ports. (They act as clients). Other peers are allowed to listen on ports. (They act as servers (and clients)). Now I want to be able to abstract from the fact, which peers are serv...

What is the easiest way to clone a webservice?

I'm working on a project where we will be connecting to a Oracle webservice using .NET (c#). The only thing is that we will build our client from our office location, but our customer will not give us remote access to their web service (company policy, etc). So our solution was to visit our customer on-site and 'clone' their webservice ...

C#: WCF Method not found after signing an assembly

I have a 3 projects in a solution like such: WCF Service: Hosts a couple of methods Class Library: Acts as a gateway to the WCF service by returning an instance of its Soap client WPF Application: Consumes the service methods via the referenced class library Everything was working perfectly...the application was accessing an instance...

asp.net CacheDuration Attribute and Exception scenario

I am planning on using the CacheDuration Attribute with my WebMethods. I have the webmethod code wrapped in a try/catch and the exceptions are logged to the database. after handling the exception, i return the error message in the response object (lets call it ABCResponseInfo), so the calling client can know about the error. this instanc...

Do I need an AAR file for an Axis web service?

I am getting started with an Axis-based web service, written in Java, which will run on WebSphere. My question is, can I just bundle this up as a web application like I usually do, as a WAR file inside of an EAR file, or do I need an AAR file, inside a WAR file, inside an EAR file? Or are AAR files just for packaging up web service com...

SSIS Webservice Task

Hi If webservice returns No value(return type is Array of Event) am getting an error SSIS Package calling websrvice task and output assigning to xmlfile.If the value is there ,No error,only when no value,then package fails. how to handle webservice task when it fails ...

Simple webserver or web testing framework

Need to testcase a complex webapp which does some interacting with a remote 3rd party cgi based webservices. Iam planing to implement some of the 3rd party services in a dummy webserver, so that i have full controll about the testcases. Looking for a simple python http webserver or framework to emulate the 3rd party interface. ...

Connection closing on web service client

I have a .Net 3.5 app with a web service that inherits from System.ServiceModel.ClientBase<>, and after I make 300 - 400 calls on a webservice method, I get the following exception: System.ServiceModel.CommunicationException: The underlying connection was closed: A connection that was expected to be kept alive was closed by the server. ...

Authenticate a Client connecting to a web service

Hello, I have a WCF web service. This web service should only allow certain client applications (built with technologies like Silverlight, Flex, ClickOnce, etc) to execute it's functionality. In an attempt to accomplish this, I have started each publicly visible method with the following code: if (IsClientValid(...) == false) return;...

Can I connect to a Java API with C#?

I am tasked with writing an application to connect to the DoubleClick DART API and download ad creatives. The API is currently Java only, but they are working on (eventually) releasing a SOAP version. As a C# developer, I'd like to write the application in C# and access the Java API, until the SOAP API is available. Can I do this? I...

Rails POST, PUT, GET

After I generate a scaffold, Rails gives me the ability to POST to items.xml which will create a new item. A GET to items.xml will simply list them all. Where does Rails specify which method in the controller (create or index, respectively) will be called, based on the type of action I am performing? More specifically, POST calls method...

WSDL not interpreting generic properly

Hello All, I am designing a framework for the use of error codes in an already very developed application. There are several web services that handle database interaction and then there is the UI. If an error occurs in the web service the error code will need to be passed to the UI and processed (for showing user friendly error messag...

Converting WSE example code to WCF

I am new to both WSE and WCF and I am trying to consume a web service using WCF but all the example documentation is for VS2005 + WSE. This web service uses WS-Security 1.0. I have added a service reference thru visual studio but I am at a loss on how to do the equivalent of the code below in WCF: // 1. Initialize the web service prox...

Resolve Type Ambiguity When Referencing More Than One Webservice in C#

Hi, I am currently developing a webapp based on c# that calls some webservices. I have imported three different WSDLs from the provider into my WebApplication3 project (references -> add web reference). In the class viewer they appear as: WebApplication3.com.provider.webservices1 WebApplication3.com.provider.webservices2 WebApplication...

Impersonation fails authorization with same credentials on workstation A and B

Case 1. When I browse a little test site from my own PC called JOHNXP (e.g. http://localhost/WebClient ), my .aspx page invokes my ASMX webservice picks up my credentials and passes them across to another webservice on ANOTHER machine (SERVERTRIM) in the same domain. I can see my request resulting in a Security Log entry on the SERVERTRI...

Distributing image processing to multiple Windows servers, file locking Q

I need to process large image files into smaller image files. I would like to distribute the work to many "slave" servers, rather than tasking my main server with this. I am using Windows Server 2005/2008, C#, and ASP.NET. I have a lot of web application development experience but have not developed distributed systems. I had a notion th...

JQuery AJAX syntax

I am trying to find the correct syntax to pass a varible to my JQuery Post. var id = empid; $.ajax({ type: "POST", url: "../Webservices/EmployeeService.asmx/GetEmployeeOrders", data: "{empid: empid}", contentType: "application/json; charset=utf-8", dataType: "json", success: function(result) { alert(resu...

What return types can be serialized by JQuery AJAX?

Hey all.. I have a call (POST) to a web service that returns a type IList<>. I suspect that this type is not serialized properly because I get the following error: "A circular reference was detected while serializing an object of type......" Can I only work with arrays? Make another method that returns only an array? I would rather not...

Hosting a Silverlight compatible Web Service in a Windows Service

Is it possible to create a Windows Service (background apps accessible in services.msc) application and host an ASP.NET WebService or a Silverlight compatible WebService within it? I want to create a WebService that performs COM interop calls to something and decided that a Windows Service that interfaces with COM directly as well as ho...

Error 400 (Bad Request) with WCF Tutorial?

I began using WCF last night to setup a simple client server that will allow me to send game information to the client at the beginning of a session. I followed the microsoft tutorial on WCF and used the VS2008 "WcfSerivce" template to begin and added my methods. I then copied and pasted the address it gives me into the service referenc...