Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Web service "holder" classes not mapping to out params
Web service "holder" classes not mapping to out params [message #207542] Mon, 28 January 2008 02:44 Go to previous message
Eclipse User
Originally posted by: steven.churchill.ootao.com

Can anyone shed some light:

I'm using Eclipse Europa (3.3.1.1) and trying to generate a bottom up Web
Service using the same approach I used successfully under Eclipse 3.2 (but
now using Axis 1.4 which comes with Europa rather than 1.3 in Eclipse 3.2.)

Now web service generation doesn't do the correct thing for Holders as out
parameters. For example, My code looks like this:

---
import javax.xml.rpc.holders.StringHolder;
import java.rmi.RemoteException;

public class A1 implements java.rmi.Remote {

public String getFoo(
String str, StringHolder outStr) throws RemoteException {
outStr.value = str;
return str;
}
}
---

When I do "Create Web Service", I get a dialog that states:

The service class "A1" does not comply to one or more requirements of
the
JAX-RPC 1.1 specification, and may not deploy or function correctly.

The method "getFoo" on the service class "A1" uses a data
type, "javax.xml.rpc.holders.StringHolder", that is not supported by
the
JAX-RPC specification. Instances of the type may not serialize or
deserialize correctly. Loss of data or complete failure of the Web
service
may result.

It then goes on to generate the WSDL, but the WSDL maps the StringHolder
to up an xsd:anyType in the input paramerters (rather that an xsd:string
in the Response, as it should.)

This problem has me flabbergasted. Anyone have any ideas?

Thanks in advance.

~ Steve

<import namespace="http://holders.rpc.xml.javax"/>
<element name="getFoo">
<complexType>
<sequence>
<element name="str" type="xsd:string"/>
<element name="outStr" type="xsd:anyType"/>
</sequence>
</complexType>
</element>
<element name="getFooResponse">
<complexType>
<sequence>
<element name="getFooReturn" type="xsd:string"/>
</sequence>
</complexType>
</element>
 
Read Message
Read Message
Previous Topic:Eclipse J2EE Environment
Next Topic:could not remove module
Goto Forum:
  


Current Time: Sat May 18 17:31:10 EDT 2013

Powered by FUDForum. Page generated in 1.55303 seconds