web-services

Web services and methods with array parameters

I'm trying to wrap ReportExecution2005 from SQL Reporting Services so that I can domain authenticate on behalf of a Windows Auth Services login. ReportExecution2005 defines SetExecutionParameters(ParameterValue[] Parameters, string ParameterLanguage) But when I put an array of any sort, even string[], in a method signature, the serv...

Tomcat 6 XFire MTOM web service problem

I'm using XFire 1.2.6 on tomcat as web services implementation. Service is created using XFireProxyFactory and @EnableMTOM annotation. Client is also XFire and is using MTOM. It all worked fine in Tomcat 5.5.20, but fails in tomcat 6.0.20 for some reason. I got the following error cause on client when trying to access web service from c...

Use method parameters names when generating WSDL from Java using wsgen and maven?

I'm generating a WSDL from a Java class using the @WebService annotation and running wsgen, triggered by a Maven build target. The problem I have is the generated WSDL defines the parameters for the web service operations as arg0, ar1, arg2, etc instead of using the parameter names from the code. These names are not helpful to clients ...

Need a java webservice tutorial and how to make a web service secure

I have a web service that is using: Java (familiar) SOAP (new to me) JBOSS (new to me) The web service is currently unsecure. My task is to make it secure using https (ssl or tsl). I am new to web services and web things in general. In the last week have gone through a tone of literature. Much of it which I think was not releva...

How to generate client-side code for multiple WCF services with shared types

I have multiple WCF services that share some data contracts and need to generate client-side code using svcutil.exe. I've run into errors using two most obvious ways to do this and need some help. But first, here are the services: [ServiceContract( Namespace = "http://www.me.com/services/" )] public interface IFooService { [Operati...

Making a web service reference configuarble - ASP.NET?

We inherited some code that makes use of a web service on an external server from a third party. Currently all the references are done in the project directly and thus compiled to that location and such. This issue we have is that there is a test and production server for the web service with different URLs. Is there a simple means to...

Check in C# whether php soap returned soapFault

Hello. I have problem with checking SoapFault response from writen in PHP Soap webservice. Responce looks like this (default "throw new SoapFault("SOAP:CLIENT", "Bad login");" <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"&gt; <SOAP-ENV:Body> <SOAP-ENV:Fault> <faultcode>SOAP:CLIENT</faultcode> ...

Web services error trapping(Jquery + asp.net web service)

I am on the look out for an accepted solution for trapping errors in the following scenario: i have an asp.net web services that interacts with the database. I interact with the web service through jquery's $ajax function. I would like to know what is the accepted stable methodology for error trapping. When the data is received from th...

how to save and retrieve cookies using ajax webservice calls

Hi I have web app which stores certain things on a page in a cookie when the page posts back in case the user doesn't finish what they're doing and come back later. But now I must do a javascript time-out and actively save the info to the cookie rather than wait for the user to postback. All my cookie code is on server side where I use...

BPEL and Java web service

I was asked to create, with Netbeans (glassfish), a Java Web service asynchronos that communicates with a external BPEL process.Is it possible? Can someone help me? give me some examples? thanks sorry for my English, I am Italian. ...

Why should a developer use web services instead of direct connections to a db?

I'm looking for a "top ten" list of reasons why we should be connecting to remote databases via web service instead of directly connecting to the db. This is an internal debate right now and I'm pro-web service but loosing the argument. I have a basic grasp of WCF / web services, no one else does. We can do whatever we want moving forwar...

Multiple Servers with identical services

I have a dozen servers in different locations all running the same web service application but each going against their own SQL Server DB. I am writing a desktop application that consumes the web services. I want to present the user with a drop down of all servers in the network that are running the same wweb service application. Do I ha...

Adding methods to the webservice: do old clients need to update web references?

ProductA uses our only web service, which is a separate deployment from ProductA. We deploy both to production. Later, we're writing ProductB. During that effort, we add a new method to our only web service. That new method wasn't in the WSDL when ProductA shipped. We make no changes to ProductA in development. When we deploy Produ...

Override Glassfish Generated WSDL Service Endpoint Address

I have a web service generated by wsgen through maven. When I deploy the service to Glassfish it places the server URL into the WSDL. Our Glassfish server is fronted by an Apache proxy server. What this all means is when someone accesses our WSDL and looks at the service endpoint and the soap address location they see is http://app...

Problem with web service in IIS vs Cassini

We have a web application written in ASP.NET 2.0 which works fine in Cassini but when we switch it to IIS the 401 authentication seems to go away. We have checked Directory Security in IIS and removed anonymous access but still it does not work in IIS vs Cassini. This project is organized as such: A web application which references a c...

XML Retrieval - through function calls or temp files?

We are creating an application for a client's website. The website will make a function call to our application to generate XML data. The web service then must retrieve this data. Would it be best for us to return the XML data as a part of our function, or would we be better to create temp files? If creating temp files is the better ...

Pattern for designing a scalable web service

I am writing a web service in Java which needs to handle a large number of requests / second. The general flow will be: Web service receives a request from client Returns a 'keep polling me' response to client Calls another web service (or services), and waits for them to respond (with a timeout) Client polls our web service, until it ...

update web reference through commandline

Is there a way to update web reference in a Visual Studio 2008 project through command line? I have a test code that reference to a web service.I want to run this against different servers and trying to write a script for this. ...

Error attempting to access a web service (hosted locally or externally), can't resolve host name

I'm stumped. I've got an asp.net mvc app being hosted on a shared hosting provider. The configuration of their system leaves a little to be desired, but it's cheap (getting what I pay for I suppose...) The problem is this: The application is hosted at the root level of the hosting account. I have a virtual directory established under...

Xstream/HTTP service

We run multiple websites which use the same rich functional backend running as a library. The backend is comprised of multiple components with a lot of objects shared between them. Now, we need to separate a stateless rule execution component into a different container for security reasons. It would be great if I could have access to a...