axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amit shah <>
Subject Re: WSDL2Java - Skip Classes options
Date Thu, 26 Feb 2009 11:09:53 GMT
Re-replying to the mail in case I was not clear in explaining the problem.

I want to generate java classes from a published wsdl file (exposed by
Microsoft SQL Reporting Services 2008). During the class generation, I want
to skip some of these classes (for e.g TrustedUserHeader).

Pasting a snippet of the wsdl file.

 <s:schema elementFormDefault="qualified" targetNamespace="
  <s:element name="ListSecureMethods">
     <s:complexType />
  <s:element name="ListSecureMethodsResponse">
    <s:element minOccurs="0" maxOccurs="1" name="ListSecureMethodsResult"
type="tns:ArrayOfString" />
  <s:complexType name="ArrayOfString">
     <s:element minOccurs="0" maxOccurs="unbounded" name="string"
nillable="true" type="s:string" />
    *<s:element name="TrustedUserHeader" type="tns:TrustedUserHeader" /> *
*    </s:element>*



Are there any ways (may be a command option) of using wsdl2java.bat which
would skip the generation of *TrustedUserHeader *class?

Thanks in advance,
Amit Shah.

On 2/17/09, amit shah <> wrote:
> Hi,
>       I am using axis2 1.4.1 to generate java classes from a wsdl file. The
> web services are exposed by the SQL Server 2008 Reporting Services. I
> wanted to know if there is any command line option while using
> wsdl2java.bat to skip generating some classes (In my case a soap
> header called TrustedUserHeader). I use the following command to
> convert wsdl to java
>       wsdl2java.bat -o E:\wsdl2java\ -p
> sqlserver.reporting.reportingexecutionservices -ss -g -ns2p
> -uri http://v-sql-2k8/reportserver/ReportExecution2005.asmx
>       I want to skip generation of the TrustedUserHeader class. If anyone
> can provide any guidance it would be very helpful
> Note : The wsdl file has the same namespace for all the classes. Hence
> the namespace of the TrustedUserHeader class is also
> .
> Thanks in advance,
> Amit Shah.

View raw message