Hi,

Another newbie question. I try to generate java code using wsdl2java
thus:

C:\java\axis2\bin>wsdl2java -uri createLeasingApplication.wsdl
-p com.antares.web.leasingWebService -ss -sd -s -g -u -d adb
-o c:\java\utvikling\leasing\src\java
-ns2p urn:leasingapplication=com.antares.web.leasingapplication

I have my project source code at c:\java\utvikling\leasing\src\java
and would expect that the packages be generated at that directory.

Instead wsdl2java seem to add the "src" directory at the beginning
and ignore my -ns2p option giving me two packages in the output directory:

src.com.antares.web.leasingWebService
src.leasingapplication

This also happens when using the eclipse plugin code generator.

I'm assuming that I just don't understand this stuff at all and is
doing something stupid, but would nevertheless be very grateful if
someone would take the time to explain what is going on here.

I can obviously just move the source where it needs to be, but I
though it would be possible to re-generate when changes in the
wsdl file happens?

WSDL file attached.

Many thanks,
Håkon
--
Antares Gruppen AS
Dir.phone: +47 - 23 29 05 75
Mobile: +47 - 911 79 505
http://www.antares.no

<?xml version="1.0" encoding="UTF-8"?>
<definitions
     name="leasingApplication"
     targetNamespace="urn:leasingApplication"
     xmlns="http://schemas.xmlsoap.org/wsdl/";
     xmlns:tns="urn:leasingApplication"
     xmlns:tnsTypes="urn:leasingApplication/types"
     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/";
    >
    <types>
        <xsd:schema targetNamespace="urn:leasingApplication/types" elementFormDefault="qualified">
            <xsd:complexType name="OrderLineData">
                <xsd:sequence>
                    <xsd:element name="lineItemNumber" type="xsd:long"/>
                    <xsd:element name="productNumber" type="xsd:string" nillable="false"/>
                    <xsd:element name="productCategory" type="xsd:string" nillable="false"/>
                    <xsd:element name="numberOfProductsOrdered" type="xsd:string" nillable="false"/>
                    <xsd:element name="productPrice" type="xsd:string" nillable="false"/>
                    <xsd:element name="productDescription" type="xsd:string" nillable="false"/>
                </xsd:sequence>
            </xsd:complexType>
            <xsd:element name="LeasingApplicationData">
              <xsd:complexType>
                  <xsd:sequence>
                      <xsd:element name="partner" type="xsd:string" nillable="false"/>
                      <xsd:element name="partnerOrderId" type="xsd:string" nillable="false"/>
                      <xsd:element name="partnerOrderType" type="xsd:string" nillable="false"/>
                      <xsd:element name="partnerReferencePersonName" type="xsd:string" nillable="true"/>
                      <xsd:element name="creditApplied" type="xsd:string" nillable="true"/>
                      <xsd:element name="orderLines" type="tnsTypes:OrderLineData" nillable="false" minOccurs="1"
                           maxOccurs="unbounded"/>
                      <xsd:element name="applicationComment" type="xsd:string" nillable="true"/>
                      <xsd:element name="commonSecret" type="xsd:string" nillable="true"/>
                      <xsd:element name="organisationNumber" type="xsd:string" nillable="false"/>
                      <xsd:element name="companyName" type="xsd:string" nillable="false"/>
                      <xsd:element name="companyAddress1" type="xsd:string" nillable="true"/>
                      <xsd:element name="companyAddress2" type="xsd:string" nillable="true"/>
                      <xsd:element name="companyZip" type="xsd:string" nillable="true"/>
                      <xsd:element name="companyCity" type="xsd:string" nillable="true"/>
                      <xsd:element name="companyPhone" type="xsd:string" nillable="true"/>
                      <xsd:element name="companyReference" type="xsd:string" nillable="true"/>
                      <xsd:element name="applicantPersonName" type="xsd:string" nillable="false"/>
                      <xsd:element name="applicantPersonEmail" type="xsd:string" nillable="false"/>
                      <xsd:element name="applicantPersonPhone" type="xsd:string" nillable="true"/>
                      <xsd:element name="companyDeliveryAddress1" type="xsd:string" nillable="true"/>
                      <xsd:element name="companyDeliveryAddress2" type="xsd:string" nillable="true"/>
                      <xsd:element name="companyDeliveryZip" type="xsd:string" nillable="true"/>
                      <xsd:element name="companyDeliveryCity" type="xsd:string" nillable="true"/>
                      <xsd:element name="deliveryPersonName" type="xsd:string" nillable="true"/>
                      <xsd:element name="deliveryPersonPhone" type="xsd:string" nillable="true"/>
                      <xsd:element name="deliveryPersonEmail" type="xsd:string" nillable="true"/>
                  </xsd:sequence>
              </xsd:complexType>
            </xsd:element>
            <xsd:element name="Login" type="tnsTypes:Login"/>
            <xsd:complexType name="Login">
                <xsd:sequence>
                    <xsd:element minOccurs="0" maxOccurs="1" name="UserName" type="xsd:string"/>
                    <xsd:element minOccurs="0" maxOccurs="1" name="Password" type="xsd:string"/>
                </xsd:sequence>
            </xsd:complexType>
            <xsd:element name="LeasingApplicationDataResponse" type="xsd:string"/>
            <xsd:element name="error" type="xsd:string"/>
        </xsd:schema>
    </types>
    <message name="Leasing">
        <part name="leasingApplicationData" element="tnsTypes:LeasingApplicationData"/>
    </message>
    <message name="LeasingResponse">
        <part name="leasingApplicationDataResponse" element="tnsTypes:LeasingApplicationDataResponse"/>
    </message>
    <message name="LeasingFault">
        <part name="error" element="tnsTypes:error"/>
    </message>
    <message name="LeasingLogin">
        <part name="login" element="tnsTypes:Login"/>
    </message>
    <portType name="createLeasingApplication">
        <operation name="createLeasingApplication">
            
            <input message="tns:Leasing"/>
            <output message="tns:LeasingResponse"/>
            <fault name="leasingFault" message="tns:LeasingFault"/>
        </operation>
    </portType>
    <binding name="createLeasingApplicationSoapHttp" type="tns:createLeasingApplication">
        <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
        <operation name="createLeasingApplication">
            <soap:operation style="document" soapAction="urn:leasingApplication/createLeasingApplication"/>
            <input>
                <soap:body use="literal"/>
                <soap:header message="tns:LeasingLogin" part="login" use="literal"/>
            </input>
            <output>
                <soap:body use="literal" />
            </output>
            <fault name="leasingFault">
                <soap:fault name="leasingFault" use="literal"/>
            </fault>
        </operation>
    </binding>
    <service name="createLeasingApplication">
        <port name="createLeasingApplicationSoapHttpPort" binding="tns:createLeasingApplicationSoapHttp">
            <soap:address location="https://localhost/leasing"/>
        </port>
    </service>
</definitions>




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to