Element tag in the WSDL file.
I have the following interface for the webservice:
public interface DocumentProvider extends Remote {
public void deleteDocument(String documentId) throws
RemoteException;
}
I use the wscompile command to generate the wsdl file and it creates a complex type like this:
<complexType name="deleteDocument">
<sequence>
<element name="String_1" type="string" nillable="true"/>
</sequence>
</complextType>
Is there an option in the wscompile command to change "String_1" to "Document" as it is called in the interface.
I have run out of idea, pls. help if you know how.
TIA
[683 byte] By [
robl29a] at [2007-11-27 7:34:16]

# 1
I suggest, if possible, that you switch from JAX-RPC to JAX-WS. JAX-WS is the latest APIs for doing Web Services. JAX-RPC is no longer actively developed. The JAX-WS RI is an open source project on java.net (http://jax-ws.dev.java.net) that is widely used, actively developed, much faster than JAX-RPC. With JAX-WS you have much more control of the mapping Java <-> WSDL. For example, your interface below could be written like the following to achieve what you want.
@WebService
public class DocumentProvider {
public void deleteDocument(@WebParam(name="Document")String documentId) { ... }
}
Notice that an interface is no longer needed, you can use a POJO directly as long as you annotate it with @WebService. Also, you no longer need to extend Remote or throw RemoteExceptions. Check it out, I think you will really like it.