Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Axis message-style web service with Eclipse 3.2 + WTP 1.5
Axis message-style web service with Eclipse 3.2 + WTP 1.5 [message #176341] Sun, 06 August 2006 23:28 Go to next message
No real name is currently offline No real nameFriend
Messages: 19
Registered: July 2009
Junior Member
Is there a documented way to creae an Axis message-style web service
within a dynamic web project? This is a web service whose WSDL can be
declared as document-literal wrapped, but the deployed web service uses
the DOM directly instead of creating domain specific Java objects.

I had to drop out of Eclipse to produce this web service -- I can readily
create and deploy such a web service outside of Eclipse using Axis, but in
Eclipse 3.2 + WTP 1.5 with a dynamic web project, the deployment doesn't
work consistently.

It appears that the document-literal default setup keeps wanting to stuff
an apachesoap:Document into the wrapped element instead of treating the
entire request/response as a Document.

By the way there is a good example of such a web service documented at:

http://hobit.gsf.de/wiki/display/wiki/Message+Doc+Style

A simple example of a message-style web service is included here for
reference:

MyServiceImpl.java:
--------------------

package org.example;

import java.rmi.RemoteException;
import org.w3c.dom.Document;

public class MyServiceImpl {

public Document myOperation(Document request) throws RemoteException {
// do stuff to implement web service here:
Document response = ....
return response;
}
}

deploy.wsdd
------------

<deployment xmlns="http://xml.apache.org/axis/wsdd/"
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java"
xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance">

<service name="MyService" style="message">
<parameter name="className" value="org.example.MyServiceImpl" />
<parameter name="allowedMethods" value="myOperation" />
<wsdlFile>MyService.wsdl</wsdlFile>
</service>
</deployment>
Re: Axis message-style web service with Eclipse 3.2 + WTP 1.5 [message #176463 is a reply to message #176341] Tue, 08 August 2006 15:18 Go to previous message
Andrew Mak is currently offline Andrew MakFriend
Messages: 41
Registered: July 2009
Member
Hi Pat,

The support for creating Axis message-style web services is not available
in WTP 1.5. It is not supported currently because the primary focus of
WTP has been on providing support for standards (JAX-RPC) compliant
styles; The message-style is specific to Axis and falls outside of the
JAX-RPC spec. This is an area where contributions from the general
community would be of great help.

Andrew
Previous Topic:Schema XSD-To webservice
Next Topic:web services explorer and http authentication
Goto Forum:
  


Current Time: Fri Apr 19 21:39:05 GMT 2024

Powered by FUDForum. Page generated in 0.04881 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top