I have run wsdl2java against your wsdl and didn't notice classes prefixed
with '_' (I haven't set any namespace to package mapping).
The ant task fragment:
<axis-wsdl2java
output="${generated.dir}"
verbose="true"
serverSide="yes"
skeletondeploy="no"
all="yes"
testcase="no"
deployScope="Application"
url="${build.dir}/ContractManagementService.wsdl" >
</axis-wsdl2java>
Here is the output:
[axis-wsdl2java] WSDL2Java
C:\Yo\Work\workspace\Engine\build/ContractManagementService.wsdl
[axis-wsdl2java] Parsing XML file:
C:\Yo\Work\workspace\Engine\build/ContractManagementService.wsdl
[axis-wsdl2java] Generating
C:\Yo\Work\workspace\Engine\build\generated\navigation\types\_1\_0\contract\
bah\holders\NavigationElementArrayHolder.java
[axis-wsdl2java] Generating
C:\Yo\Work\workspace\Engine\build\generated\contract\types\_1\_0\contract\ba
h\holders\ContractTypeFinancialSummaryArrayHolder.java
[axis-wsdl2java] Generating
C:\Yo\Work\workspace\Engine\build\generated\contract\types\_1\_0\contract\ba
h\ContractModType.java
[axis-wsdl2java] Generating
C:\Yo\Work\workspace\Engine\build\generated\request\types\_1\_0\contract\bah
\GetContractType_DerivedFinancialType.java
[axis-wsdl2java] Generating
C:\Yo\Work\workspace\Engine\build\generated\contract\types\_1\_0\contract\ba
h\ContractType_FinancialSummary.java
[axis-wsdl2java] Generating
C:\Yo\Work\workspace\Engine\build\generated\contract\types\_1\_0\contract\ba
h\holders\ContractType_FinancialSummaryHolder.java
[axis-wsdl2java] Generating
C:\Yo\Work\workspace\Engine\build\generated\contract\types\_1\_0\contract\ba
h\ContractType_FinancialSummary_ContractorType.java
[axis-wsdl2java] Generating
C:\Yo\Work\workspace\Engine\build\generated\contract\types\_1\_0\contract\ba
h\ContractType_FinancialSummary_Type.java
[axis-wsdl2java] Generating
C:\Yo\Work\workspace\Engine\build\generated\contract\types\_1\_0\contract\ba
h\TTOModNTEAdjType.java
[axis-wsdl2java] ContractManagementServiceSOAPBindingImpl.java already
exists, WSDL2Java will not overwrite it.
[axis-wsdl2java] Generating
C:\Yo\Work\workspace\Engine\build\generated\ContractManagementService\servic
e\_1\_0\contract\bah\ContractManagementServicePortType.java
[axis-wsdl2java] Generating
C:\Yo\Work\workspace\Engine\build\generated\ContractManagementService\servic
e\_1\_0\contract\bah\ContractManagementServiceSOAPBindingStub.java
[axis-wsdl2java] Generating
C:\Yo\Work\workspace\Engine\build\generated\ContractManagementService\servic
e\_1\_0\contract\bah\ContractManagementServiceSOAPBindingSkeleton.java
[axis-wsdl2java] Generating
C:\Yo\Work\workspace\Engine\build\generated\ContractManagementService\servic
e\_1\_0\contract\bah\ContractManagementService.java
[axis-wsdl2java] Generating
C:\Yo\Work\workspace\Engine\build\generated\ContractManagementService\servic
e\_1\_0\contract\bah\ContractManagementServiceLocator.java
[axis-wsdl2java] Generating
C:\Yo\Work\workspace\Engine\build\generated\ContractManagementService\servic
e\_1\_0\contract\bah\deploy.wsdd
[axis-wsdl2java] Generating
C:\Yo\Work\workspace\Engine\build\generated\ContractManagementService\servic
e\_1\_0\contract\bah\undeploy.wsdd
BUILD SUCCESSFUL
Total time: 3 seconds
Christophe
> -----Original Message-----
> From: Keast Ann [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 29, 2004 12:56 PM
> To: [EMAIL PROTECTED]
> Subject: Axis 1.1 Release - WSDL2Java: expected classes are not generated
>
> Hi,
>
> This is my first ground-up web service using the Axis 1.1 Release. The
> service has 2 operations:
> 1. getContract - returns contract information
> 2. getNavigation - returns a NavigationElement which will contain an
> unlimited amount of NavigationElements (to be openned in a TreeView
> control).
>
> I ran WSDL2Java against the attached WSDL and have discovered:
> 1. Many of the generated classes have a prefix of "_" or "__"
> 2. Some of the request (GetContract, GetNavigation) and domain
> (Contract) classes are not generated at all.
>
> Here is the system.out of the classes that are generated from WSDL2Java:
>
> Generating
>
> E:\webservices\samples-axis\WEB-
> INF\src\com\bah\contractmgmt\domain\holders\NavigationElementArrayHolder.j
> ava
> Generating
>
> E:\webservices\samples-axis\WEB-
> INF\src\com\bah\contractmgmt\request\_GetContractType_DerivedFinancialType
> .java
> Generating
>
> E:\webservices\samples-axis\WEB-
> INF\src\com\bah\contractmgmt\domain\_NavigationElement.java
> Generating
>
> E:\webservices\samples-axis\WEB-
> INF\src\com\bah\contractmgmt\domain\___Contract_FinancialSummary_Contracto
> rType.java
> Generating
> E:\webservices\samples-axis\WEB-
> INF\src\com\bah\contractmgmt\domain\_ContractMod.java
> Generating
>
> E:\webservices\samples-axis\WEB-
> INF\src\com\bah\contractmgmt\domain\holders\ContractFinancialSummaryArrayH
> older.java
> Generating
> E:\webservices\samples-axis\WEB-
> INF\src\com\bah\contractmgmt\domain\_TTOModNTEAdj.java
> Generating
>
> E:\webservices\samples-axis\WEB-
> INF\src\com\bah\contractmgmt\domain\__Contract_FinancialSummary.java
> Generating
>
> E:\webservices\samples-axis\WEB-
> INF\src\com\bah\contractmgmt\domain\holders\__Contract_FinancialSummaryHol
> der.java
> Generating
>
> E:\webservices\samples-axis\WEB-
> INF\src\com\bah\contractmgmt\domain\___Contract_FinancialSummary_Type.java
> ContractManagementServiceSOAPBindingImpl.java already exists, WSDL2Java
> will not overwrite it.
> Generating
>
> E:\webservices\samples-axis\WEB-
> INF\src\com\bah\contractmgmt\service\ContractManagementServicePortType.jav
> a
> Generating
>
> E:\webservices\samples-axis\WEB-
> INF\src\com\bah\contractmgmt\service\ContractManagementServiceSOAPBindingS
> tub.java
> Generating
>
> E:\webservices\samples-axis\WEB-
> INF\src\com\bah\contractmgmt\service\ContractManagementService.java
> Generating
>
> E:\webservices\samples-axis\WEB-
> INF\src\com\bah\contractmgmt\service\ContractManagementServiceLocator.java
> Generating
>
> E:\webservices\samples-axis\WEB-
> INF\src\com\bah\contractmgmt\service\ContractManagementServiceTestCase.jav
> a
> Generating
> E:\webservices\samples-axis\WEB-
> INF\src\com\bah\contractmgmt\service\deploy.wsdd
> Generating
> E:\webservices\samples-axis\WEB-
> INF\src\com\bah\contractmgmt\service\undeploy.wsdd
>
> Notice how GetContractType, GetNavigationType, ContractType classes are
> not generated?
>
> Is there a way that Axis prefers the schema to be so that there are no
> underscores and ALL of the domain objects are generated?
> I've attached the WSDL and schema (validated in XMLSpy). Please take a
> quick look at these files and let me know if I've missed something.
>
> Thank you,
> Ann