web-services

Why exactly would I want to use a WSDL to describe a Web service?

I'm having trouble understanding why a WSDL would be so beneficial, when the truth is that the service definition is not that human-readable, and most developers will use automated tools to consume it to generate objects in the application. Why isn't it easier for a service provider to define a simple XML schema, and just tell me in the ...

How to use jQuery to call an asp.net web service?

I'm trying to use jQuery to get data from an ASP.NET web service (SharePoint Server 2007 lists.asmx) but any call to a web service will really help as a first step in that direction. ...

Cancel a webform submit with PHP

I'm using a small site to experiment with the uploading of pictures and displaying them. When someone clicks "add a picture", they get taken to a page with a form on it. They can select a file and click the submit button. But what I want to do now is this: put a second submit button labeled "Cancel" next to the normal confirmation butt...

Find client IP and SOAP call info from a Delphi web service

I have a Delphi Web Server setup and running, publishing Web Services, and I want to know some stuff on the calls to the web services: The IP address of the client who calls the web service. Some SOAP information on the call, such as username and password. How can I get this information from within the service code? My class is inher...

is there any advantage of webservices over web-pages for providing ajax content?

Should my ajax calls talk to webservices or to simple webpages? It seems to be so much easier to simply Response.Write() the content. Are webservices more reliable or secure? ...

How to extracts additional info from SSL certificate to allow access to WebService client on WAS

For explaining my situation, I will start with an example. Let's say there are two WS(WebService) clients A & B with trusted certificates. Now in normal excecution when both A & B make a call to WAS(Websphere application server) through SSL where my WebServices reside, WAS trusts both of them because of their trusted certificates and alo...

Does anyone have any T4 example Templates that can be used to generate a Webservice?

Does anyone have any T4 example Templates (or links to same) that can be used to generate a Webservice? I'm thinking of the fact that I guess the Webservice is not just the Vb or Cs field but also requires an appropriate asmx file. I'm really not sure how to achieve this ...

write a file from webservices

hi I have a webservice using .net c# and I want to write to a text file on the server, but I cannot get this to work I assume it is a permission problem? thanks Stuart I think the problem is I am using System.IO.Directory.GetCurrentDirectory() what should I be using? thanks Stuart ...

How to architect DAL for WebService exposure?

We have a highly specialized DAL which sits over our DB. Our apps need to use this DAL to correctly operate against this DB. The generated DAL (which sits on some custom base classes) has various 'Rec' classes (Table1Rec, Table2Rec) each of which represents the record structure of a given table. Here is a sample Pseudo-class... Public...

Best way to reverse-engineer a web service interface from a WSDL file?

I've inherited a WSDL file for a web service on a system that I don't have access to for development and testing. I need to generate a web service that adheres to that WSDL. The wrapper is .NET, but if there's an easy way to do this with another platform, we might be able to look at that. The production web service is Java-based. What'...

How do I get the current directory in a web service

Hi I am using System.IO.Directory.GetCurrentDirectory() to get the current directory in my web service, but that does not give me the current directory. How do I get the current directory in a web service? Thanks Stuart ...

Calling a WSE web-service though a proxy

Hi. I'm using Web Services Enhancements 3.0 to call a web-service from an ASP.NET application written in C# with Visual Studio 2005. I can call the web-service in Internet Explorer if I change the network connection settings to use a specific SOCKS5 proxy but from the .ASPX page I get an error message that tells me that I should be usi...

Flex cannot deserialize webservice element that contains only attributes

I'm seeing a very strange issue with a .NET webservice being consumed by Flex. I have a very simple class with nothing other than properties with [XmlAttribute('xxx')] attributes. public class OrderAddress { public OrderAddress() {} [XmlAttribute("firstName")] public string FirstName { get; set; } [XmlAttribute("lastN...

Best Framework for PHP and creation of RESTful based web services

Hi All, I'm looking to create a RESTful or pseudo-Restful based web service on a PHP/MySql stack. I'm wondering what some of the frameworks you suggest I look at? I've been looking at Zend with Zend_Rest, but I'm curious to other things out there. Ideally, there's be some form of ActiveRecord based object mapping to the exposed web s...

Where does Websphere get the WSDL from?

I have a java application that has Web Services published using Axis. With the latest release one of the service methods in the WSDL is wrong. It has a field in a complex type with double instead of an array of doubles. I've checked the src WSDL and the generated classes like the data object and the binding stub, but they are all corr...

Cross browser scripting proxy

I am developing some client side javscript that is using some JSON web services on a different domain. I have read that some browsers do not allow cross-domain scripting and that I should create a proxy on my local server to serve the data. Can someone please point me to a simple example of how to do this in ASP.Net? ...

Custom Error Pages in JBoss

Hey all, This is my first question here! I'm trying to setup custom error pages in my JBoss RESTful web service. I'm starting with the 400 error, so in my web.xml I've added <error-page> <error-code>400</error-code> <location>/400.html</location> </error-page> and I've placed 400.html at the root of my war file (I've also tried pl...

Passing a client certificate only works on my machine

I have a web service that is protected by requiring the consuming third party application to pass a client certificate. I have installed the certificate on the providing web service in production and on the client as well. This process is currently working fine for other clients with a similar setup. The current version is written in ...

How to Programatically read the Documentation section of a WSDL in C#

i am using a WSDL file to create a the proxy class file, this service has a big Enumeration. the description for each enum value is in documentation section, how can i programatically read that section? ...

Calling a Webservice from VBA using SOAP

I'm trying to call a web service in an Excel Macro: Set objHTTP = New MSXML.XMLHTTPRequest objHTTP.Open "post", "https://www.server.com/EIDEServer/EIDEService.asmx" objHTTP.setRequestHeader "Content-Type", "text/xml" objHTTP.setRequestHeader "SOAPAction", "PutSchedule" objHTTP.send strXML And I get back the following response: <?xm...