Hi Dennis,

I'm not sure whether this is the exact problem put the wv option specifies
the wsdl version. Your WSDL is WSDL 1.1 hence you dont need the -wv option.
Valid values for that are 1.1 or 2 and it defaults to 1.1.

Thanks,
Keith.

On Tue, Apr 1, 2008 at 6:43 AM, Dennis Sacks <[EMAIL PROTECTED]> wrote:

> axis2-1.3
>
> This is what I'm doing:
>
> %AXIS2_HOME%\bin\wsdl2java.bat -uri
> file:\\\c:\noscan\jdevstudio10132\jdev\mywork\2008\FAW\src\FAWService.wsdl
> -p ws.FAWService -d adb -uw -s -wv 1.3 -ss -sd
>
> This is the output I'm getting:
>
> Using AXIS2_HOME:   c:\noscan\axis2-1.3
> Using JAVA_HOME:    c:\Program Files\Java\jdk1.6.0_04
> Exception in thread "main"
> org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL
>         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(
> CodeGenerationEngine.java:153)
>         at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
>         at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
> Caused by: java.lang.StringIndexOutOfBoundsException: String index out of
> range: -1
>         at java.lang.String.substring(String.java:1938)
>         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.getBaseURI(
> CodeGenerationEngine.java:341)
>         at
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.readInTheWSDLFile(
> CodeGenerationEngine.java:286)
>         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(
> CodeGenerationEngine.java:105)
>         ... 2 more
>
> The wsdl looks like this:
>
> <definitions targetNamespace="urn:FAWService"
>              xmlns="http://schemas.xmlsoap.org/wsdl/";
> xmlns:tns="urn:FAWService"
>              xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/";
>              xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/";
>              xmlns:xsd="http://www.w3.org/2001/XMLSchema";
>              xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
>              xmlns:types="http://apollogrp.edu/FAWService/types";>
>   <types>
>     <xsd:schema>
>       <xsd:import schemaLocation="../FAWService.xsd" id="FAWService.xsd"
>                   namespace="http://apollogrp.edu/FAWService/types"/>
>     </xsd:schema>
>   </types>
>   <service name="FAWService">
>     <port name="FAWServiceSoapHttpPort" binding="tns:FAWServiceSoapHttp">
>       <soap:address location="tbd"/>
>     </port>
>   </service>
>   <message name="getDataRequest">
>     <part name="parameters" element="tns:getData"/>
>   </message>
>   <message name="getDataResponse">
>     <part name="parameters" element="tns:getDataResponse" />
>   </message>
>   <portType name="FAWService">
>     <operation name="getData">
>       <input message="tns:getDataRequest"/>
>       <output message="tns:getDataResponse"/>
>     </operation>
>   </portType>
>   <binding name="FAWServiceSoapHttp" type="tns:FAWService">
>     <soap:binding style="document"
>                   transport="http://schemas.xmlsoap.org/soap/http"/>
>     <operation name="getData">
>       <soap:operation soapAction="urn:FAWService/getData"/>
>       <input>
>         <soap:body use="literal" parts="parameters"/>
>       </input>
>       <output>
>         <soap:body use="literal" parts="parameters"/>
>       </output>
>     </operation>
>   </binding>
> </definitions>
>
> and the schema looks like this:
>
> <?xml version="1.0" encoding="windows-1252" ?>
> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema";
>             xmlns="http://apollogrp.edu/FAWService/types";
>             targetNamespace="http://apollogrp.edu/FAWService/types";
>             elementFormDefault="qualified">
>   <xsd:element name="getData">
>    <xsd:complexType>
>    <xsd:sequence>
>     <xsd:element name="irn" nillable="true" minOccurs="0"
> type="xsd:string" />
>    </xsd:sequence>
>    </xsd:complexType>
>   </xsd:element>
>  <xsd:element name="formStatus">
>  <xsd:complexType>
>  <xsd:sequence>
>     <xsd:element name="verification" nillable="true" minOccurs="0"
> type="xsd:string"/>
>     <xsd:element name="verificationStatus" nillable="true" minOccurs="0"
> type="xsd:string"/>
>     <xsd:element name="verificationDate" nillable="true" minOccurs="0"
> type="xsd:string"/>
>    </xsd:sequence>
>  </xsd:complexType>
>  </xsd:element>
>  <xsd:element name="verificationISIR">
>   <xsd:complexType>
>    <xsd:sequence>
>     <xsd:element name="isInDependent" type="xsd:boolean"/>
>     <xsd:element name="showSeperationOfIncomeForms" type="xsd:boolean"/>
>    </xsd:sequence>
>   </xsd:complexType>
>  </xsd:element>
>  <xsd:element name="separationIncome">
>   <xsd:complexType>
>    <xsd:sequence>
>     <xsd:element name="hasW2Form" type="xsd:boolean"/>
>    </xsd:sequence>
>   </xsd:complexType>
>  </xsd:element>
>  <xsd:element name="getDataResponse">
>   <xsd:complexType>
>    <xsd:sequence>
>     <xsd:element name="verificationISIR" nillable="true" minOccurs="0"
> type="tns:verificationISIR"/>
>     <xsd:element name="separationIncome" nillable="true" minOccurs="0"
> type="tns:separationIncome" />
>     <xsd:element name="formStatus" nillable="true" minOccurs="0"
> type="tns:formStatus" />
>    </xsd:sequence>
>   </xsd:complexType>
>  </xsd:element>
> </xsd:schema>
>
>


-- 
Keith Chapman
Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://www.keith-chapman.org

Reply via email to