Could using jibx data binding option help in this scenario (Skipping some class generations) ?
On Thu, Feb 26, 2009 at 4:39 PM, amit shah <amits...@gmail.com> wrote: > 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. > > _________________________________________________________________ > <wsdl:types> > <s:schema elementFormDefault="qualified" targetNamespace=" > http://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices > "> > <s:element name="ListSecureMethods"> > <s:complexType /> > </s:element> > <s:element name="ListSecureMethodsResponse"> > <s:complexType> > <s:sequence> > <s:element minOccurs="0" maxOccurs="1" name="ListSecureMethodsResult" > type="tns:ArrayOfString" /> > </s:sequence> > </s:complexType> > </s:element> > <s:complexType name="ArrayOfString"> > <s:sequence> > <s:element minOccurs="0" maxOccurs="unbounded" name="string" > nillable="true" type="s:string" /> > </s:sequence> > </s:complexType> > *<s:element name="TrustedUserHeader" type="tns:TrustedUserHeader" /> * > ** > * </s:element>* > > ...... > ...... > > </wsdl:types> > _________________________________________________________________ > > 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 <amits...@gmail.com> 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 >> >> http://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices=sqlserver.reporting.reportingexecutionservices >> -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 >> >> http://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices >> . >> >> Thanks in advance, >> Amit Shah. >> > >