web-services

Web Service URL Problem

H!, I have a solution in which there is several other sub projects (windows application). in every project I have some web services added. Now the problem : how can i set the URL of each web service individually from the app.Config file?? is there a setting I missed to set ? can it be automatically done or I have to code for it ? Than...

Find if InputStream of DataHandler is empty

In my application I develop web service that get attached file. The file is mapped to DataHandler object via JaxB, and I have access to the file via DataHandler.getInputStream() My problem is this: When the file attribute exist in the web service request, but no file is attached, I still get the DataHandler object, and its getInputStrea...

Expose a web service (wsdl) as a webform

Hello all, Just wanted to ask if anyone knows of a reliable & easy way to expose a webservice (wsdl) as a webform to end-users. Our team develops a lot of software for external contacts, which often involve creating a web service and exposing it as both a wsdl and a website. We'd like to automate this last step as much as possible (esp...

How to use Silverlight objects in web service?

I'm developing a web application that is supposed to display a HUGE amount of vector data using Silverlight on client side. Imagine something like google maps but using vector graphics only, so DeepZoom is not an option. I was planning to generate a huge XAML in web service and then return only small regions to clients using built-in SL...

Distributed Application Environment and Web Services - What/How to learn?

I want to learn how to create distributed application environments and web services using spring, aspectj, hibernate, etc. rather than EJBs. Can anyone recommend a book or set of books that can help me (a single all-in-one book would be preferable)? Also, any advice regarding learning/creating distributed app environments and web serv...

Error 403: Forbidden. The HTTP request was forbidden with client authentication scheme 'Anonymous'.

I'm getting this error when calling a java web service. I'm using the same source as the rest of my team and they're all able to call it no problem? This is the stack trace: 30 Nov 2009 16:38:50,970 [4] ERROR - Error calling web service: System.ServiceModel.Security.MessageSecurityException: The HTTP request was forbidden with client au...

WCF - use same type across multiple services

We are starting to build a common entity model using Entity Framework v1. The goal is to expose various common operations as services that can be used by several different clients. The problem we are running into is reusing the types across multiple services. Example: Service1 (at http://example/service1/service.svc) returns a List S...

How to POST an XML file to webservice using Asp.net

I know how to POST regular data, but not sure how to POST an XML file to a public web service that requires it. Using Asp.net. Are there several ways? Choose best practice. ...

Any tools or techniques to enrich NetBeans code generation (web services)?

Hello. I'm working on a project that involves the creation of numerous web services. Top-down/contract-first and model-driven design strategies are utilized (WSDL -> codegen). NetBeans (6.7) + JAX-WS + GlassFish comprise the chosen tooling stack. The web services will be EJBs deployed as Composite Applications in the Glassfish JBI cont...

Web services API design: XML elements vs. attributes

I'm designing an API for a web service and I can't decide between using XML attributes, elements or a mixed architecture. Let me show you an example. Let's assume I have an object called Domain. This model has 3 properties (tld, sld, trd and the name itself) and a method valid? that returns true if the domain is valid. # I'm using ruby...

Using flag to identify spoken language

Hello, In the webapp I am doing, I need to identify language people are speaking. I wanted to use flag to do that. But I have some problems. For example, if you speak French, you can put the French flag. But if you speak English you can put either the US or UK flag or a mix of both. Which flag to choose for Arabic language ? Saudi Ara...

Rails and actionwebservice: SOAP version 1.1 and 1.2

I am using SOAP web services with a Rails application. The rails application is the server in this instance; clients are mixed platforms. I am using datanoise-actionwebservice 2.3.2 and Rails 2.3.5. I want to know how to alternate between publishing a SOAP 1.1 and SOAP 1.2 web service, or even if this is possible. Help appreciated. ...

Create web service consumerprogram for test purposes automatically?

I find that when Im building a lot of webservices I tend to create thousands of small "testprograms" whos only purpose is to test the webservice. Yes, if your webservice only takes integers and strings you can use the built in testpage that the webservice serves up, but often you have booleans, userobjects or strongly typed datasets that...

Consuming WCF REST service in multiple ways (.Net, plain XML)

I have become quite frustrated of WCF as I just want to use this simple scenario: Provide a webservice using REST, with a UriTemplate like /method/{param1}/{param2}/ and a 3th parameter that is sent to the service as XML as POST data. Use just plain XML, no SOAP overhead. Be able to generate a proxy in Visual Studio so a .Net using cli...

How to choose between Web Service or Page PostBack?

Let's consider that I have an asp.net page which will go to the server after a client-side event and will do "some stuff" and show a return value of this process on the UI afterwords. My question is, if I am working in the same domain, how should I decide between creating a web-service and calling that AND simply raising a post-back and...

Calling Web-Service / Website from Java

Writing some additional classes for an existing GWT project. I need to: Request a URL Read in the webpage returned, in order to perform operations on. The returned page is in very simple HTML, therefore parsing it shouldn't be very difficult, I just need to get the data first. How do I do this in Java? What packages am I best lookin...

web services/object-oriented question

Hi, I just recently started with object oriented programming, using java. Before I was programming in old visual basic which wasn't object oriented and in old php which wasn't object oriented .. Now my question : Where can I learn about webservices and object oriented programming through concrete examples? (real life examples not hello...

how to call a web service (described by a wsdl) from java

Knowing nothing of web services, I'm just trying to call some "isAlive" service that is described by a wsdl. This seems to me like something that should take more then 2-5 lines of code but I can't seem to find anything but huge long examples involving 3rd party packages etc. anyone has any ideas? If it is always suppose to be long mayb...

Websphere - What is the best way to hide wsdl's from end user?

Hi all, I think there are several ways to hide wsdl's from end users for WebSphere (6.1). We use axis to publish Web Services and I currently updated the custom Servlet class (which extends AxisServlet) and override the service method to throw 404 error for urls like: http://xxxx/services/MyService?wsdl. The other option may be adding f...

Extjs to call a RESTful webservice

Hello, I am trying to make a RESTful webservice call using Extjs. Below is the code i am using: Ext.Ajax.request({ url: incomingURL , method: 'POST', params: {param1:p1, param2:p2}, success: function(responseObject){ var obj = Ext.decode(responseObject.responseText); alert(obj); }, failure: function(responseObj...