[jboss-user] [JBossWS] - WS4EE - Error while generating WSDL and jaxrpc mapping

ybh6336 do-not-reply at jboss.com
Fri Jul 28 17:50:10 EDT 2006


Hello all,

This is mainly a question about how to use wscompile.bat provided by JWSDP. I'm using JBoss 4.0.2/4.0.3 and using WS4EE to create a WSDL and jaxrpc mapping for my EJB SEI. I'm using Sun's JWSDP 1.4 to do so and my interface has simple String datatypes as arguments. I'm getting the following error when I try to use wscompile.bat:


  | error: only one configuration file can be specified: config.xml
  | Usage: wscompile [options] configuration_file
  | Use "wscompile -help" for a detailed description of options.
  | 

I'm using the command as follows:

  | wscompile -cp C:\temp\lib\client.jar;C:\jboss-4.0.2\server\all\lib\jboss-j2ee.jar -gen:server -f:rpcliteral -mapping jaxrpc-mapping.xml config.xml
  | 


(client.jar contains the interface, and since it extends javax.ejb.EJBObject, I also included jboss-j2ee.jar in the CLASSPATH). My config.xml looks as follows:

  | <?xml version="1.0" encoding="UTF-8"?>
  | <configuration xmlns="http://java.sun.com/xml/ns/jax-rpc/ri/config">
  |   <service name="MyInterfaceService"
  |   	targetNamespace="http://webservice.interfaces.test.com"
  |   	typeNamespace="http://webservice.interfaces.test.com"
  |   	packageName="com.test.interfaces">
  |   	<interface name="com.test.interfaces.MyInterface"/>
  |   </service>
  | </configuration>
  | 

What am I doing wrong here? Would really appreciate any help.

Thanks.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3961652#3961652

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961652



More information about the jboss-user mailing list