axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Akacem Mohammed <>
Subject AW: generated classes directory
Date Wed, 10 Jul 2002 14:49:03 GMT
Hi Russel,
would please give me a hint how I could change my wsdl file to achieve this.
I have the SteaServer interface in the package, the holder class in the
package. I want to put the generated file SteaServerService SteaServerServiceLocater and SteaServiceSoapBindingStub
in the package and the files SteaServiceSoapBindingSkeleton and SteaServiceSoapBindingImpl
in the package
I want to do this because I want to deploy on the client machine only the classes need by
the client.
I downloaded  a document from <>
 but I didn't understand much.
thank you for any help
hier is my file:
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="" 
xmlns:impl="" xmlns:intf="" 
xmlns:tns2="" xmlns:wsdl="" 
  <schema targetNamespace=""    
     <complexType name="Status">
         <element name="errorMessage" nillable="true" type="xsd:string"/>
         <element name="errorCode" type="xsd:int"/>
     <element name="Status" nillable="true" type="tns2:Status"/>
   <wsdl:message name="transferResponse">
 <wsdl:part name="info" type="tns2:Status"/>
   <wsdl:message name="transferRequest">
      <wsdl:part name="xmlAsString" type="SOAP-ENC:string"/>
      <wsdl:part name="dienstellennummer" type="xsd:int"/>
      file:// <file://<> <wsdl:part name="info" type="tns2:Status"/>
   <wsdl:portType name="SteaServer">
      <wsdl:operation name="transfer" parameterOrder="xmlAsString dienstellennummer info">
  <wsdl:input message="intf:transferRequest"/>
  <wsdl:output message="intf:transferResponse"/>
   <wsdl:binding name="SteaServiceSoapBinding" type="intf:SteaServer">
      <wsdlsoap:binding style="rpc" transport=""/>
      <wsdl:operation name="transfer">
         <wsdlsoap:operation soapAction=""/>
  <wsdlsoap:body encodingStyle=""      
namespace="transfer" use="encoded"
  <wsdlsoap:body encodingStyle=""       
namespace="" use="encoded"/>
   <wsdl:service name="SteaServerService">
      <wsdl:port binding="intf:SteaServiceSoapBinding" name="SteaService">
         <wsdlsoap:address location="http://localhost:8080/axis/services/SteaService"/>

-----Urspr√ľngliche Nachricht-----
Von: []
Gesendet: Mittwoch, 10. Juli 2002 14:33
Betreff: Re: generated classes directory

It is not possible to repackage individual files via WSDL2Java. This is actually a bad idea.
If all of these files are generated from WSDL types that are all in the same namespace, they
should all reside in the same package; otherwise you lose the one-to-one package-to-namespace/namespace-to-package

The most you can do with WSDL2Java is to redirect the root directory to something other than
the current directory.

If you can change your WSDL, you can change the namespaces for your portType, binding, and
service so that they're in unique packages. That will almost give you what you want. All the
portType stuff (testServer) would be in one package, all the binding stuff (testServerSoapBindingStub,
testServerSoapBindingSkeleton, testServerSoapBindingImpl) would be in another, and all the
service stuff (testServerServiceLocator, testServerService) would be in a third.

Russell Butek

Please respond to 

To: "''" <>
Subject: generated classes directory


is there a way to tell the WSDL2Java tools where to put the generated classes? I actaully
want the tools for example  to put the classes testServerServiceLocator, testServerService
and the testServerSoapBindingStub In the test.soap.client directory and the classes testServer,
testServerSoapBindingSkeleton and the testServerSoapBindingImpl In the test.soap.server directory
and the holder classes In the test.holder directory. Is this possible?



View raw message