1 Reply Latest reply on Jul 31, 2006 9:43 AM by Yogesh Bhardwaj

    WS4EE - Error while generating WSDL and jaxrpc mapping

    Yogesh Bhardwaj Newbie

      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"
       <interface name="com.test.interfaces.MyInterface"/>

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