Hello,
yes you are right but something is not work.When i am sending soap request message with uppercase variable i got the that soap response mesage :

 <soapenv:Body>
        <soapenv:Fault>
<faultcode>soapenv: Server.userException</faultcode>

<faultstring>org.xml.sax.SAXException: Invalid element in otapax.requestclasses.OTA_AirAvailRQ - OriginDestinationInformation </faultstring>

 <detail><ns1:hostname xmlns:ns1="http://xml.apache.org/axis/">recepayaz</ns1:hostname></detail>
        </soapenv:Fault>
</soapenv:Body>
***********************************************************************
and this my wdl file (too long.  i'm sorry):
***********************************************************************
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="http://localhost:8080/axis/services/OTA" xmlns:apachesoap=" http://xml.apache.org/xml-soap" xmlns:impl="http://localhost:8080/axis/services/OTA" xmlns:intf=" http://localhost:8080/axis/services/OTA" xmlns:tns1="http://www.hititcs.com/TestRecep" xmlns:tns2="http://requestclasses.otapax " xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/ " xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<!--WSDL created by Apache Axis version: 1.3
Built on Oct 05, 2005 (05:23:37 EDT)-->
 <wsdl:types>
  <schema elementFormDefault="qualified" targetNamespace="http://www.hititcs.com/TestRecep" xmlns=" http://www.w3.org/2001/XMLSchema">
   <import namespace="http://localhost:8080/axis/services/OTA"/>
   <complexType name="LocationType">
    <sequence/>
    <attribute name="LocationCode" type="xsd:string"/>
   </complexType>
   <complexType name="OriginDestinationInformationType">
    <sequence>
     <element name="DepartureDateTime" nillable="true" type="xsd:string"/>
     <element name="OriginLocation" nillable="true" type="tns1:LocationType"/>
     <element name="DestinationLocation" nillable="true" type="tns1:LocationType"/>
    </sequence>
   </complexType>
   <complexType name="FlightTypePrefType">
    <sequence/>
    <attribute name="FlightType" type="xsd:string"/>
    <attribute name="PreferLevel" type="xsd:string"/>
   </complexType>
   <complexType name="EquipPrefType">
    <sequence/>
    <attribute name="AirEquipType" type="xsd:string"/>
   </complexType>
   <complexType name="CabinPrefType">
    <sequence/>
    <attribute name="Cabin" type="xsd:string"/>
    <attribute name="PreferLevel" type="xsd:string"/>
   </complexType>
   <complexType name="TicketDistribPrefType">
    <sequence/>
    <attribute name="DistribType" type="xsd:int"/>
    <attribute name="PreferLevel" type="xsd:string"/>
   </complexType>
   <complexType name="TravelPreferencesType">
    <sequence>
     <element name="FlightTypePref" nillable="true" type="tns1:FlightTypePrefType"/>
     <element name="EquipPref" nillable="true" type="tns1:EquipPrefType"/>
     <element name="CabinPref" nillable="true" type="tns1:CabinPrefType"/>
     <element name="TicketDistribPref" nillable="true" type="tns1:TicketDistribPrefType"/>
    </sequence>
    <attribute name="MaxStopsQuantity" type="xsd:int"/>
    <attribute name="SmokingAllowed" type="xsd:string"/>
   </complexType>
   <complexType name="TravelerInfoSummaryType">
    <sequence>
     <element name="AirTravelerAvail" nillable="true" type="impl:ArrayOfPassengerTypeQuantityType"/>
    </sequence>
   </complexType>
  </schema>
  <schema elementFormDefault="qualified" targetNamespace="http://localhost:8080/axis/services/OTA " xmlns="http://www.w3.org/2001/XMLSchema">
   <import namespace="http://www.hititcs.com/TestRecep "/>
   <complexType name="PassengerTypeQuantityType">
    <sequence/>
    <attribute name="Code" type="xsd:string"/>
    <attribute name="Quantity" type="xsd:int"/>
   </complexType>
   <complexType name="ArrayOfPassengerTypeQuantityType">
    <sequence>
     <element maxOccurs="unbounded" minOccurs="0" name="item" type="impl:PassengerTypeQuantityType"/>
    </sequence>
   </complexType>
   <complexType name="OTA_AirAvailRQ">
    <sequence>
     <element name="OriginDestinationInformation " nillable="true" type="tns1:OriginDestinationInformationType"/>
     <element name="TravelPreferences" nillable="true" type="tns1:TravelPreferencesType"/>
     <element name="TravelerInfoSummary" nillable="true" type="tns1:TravelerInfoSummaryType"/>
    </sequence>
    <attribute name="DirectFlightsOnly" type="xsd:boolean"/>
    <attribute name="MaxResponses" type="xsd:int"/>
    <attribute name="PrimaryLangID" type="xsd:string"/>
    <attribute name="SequenceNmbr" type="xsd:int"/>
   </complexType>
   <element name="myJavaWebServiceReturn" type="xsd:string"/>
  </schema>
  <schema elementFormDefault="qualified" targetNamespace=" http://requestclasses.otapax" xmlns="http://www.w3.org/2001/XMLSchema">
   <import namespace=" http://localhost:8080/axis/services/OTA"/>
   <import namespace="http://www.hititcs.com/TestRecep"/>
   <element name="RQ" type="impl:OTA_AirAvailRQ"/>
  </schema>
 </wsdl:types>

   <wsdl:message name="myJavaWebServiceResponse">

      <wsdl:part element="impl:myJavaWebServiceReturn" name="myJavaWebServiceReturn"/>

   </wsdl:message>

   <wsdl:message name="myJavaWebServiceRequest">

      <wsdl:part element="tns2:RQ" name="RQ"/>

   </wsdl:message>

   <wsdl:portType name="Class2">

      <wsdl:operation name="myJavaWebService" parameterOrder="RQ">

         <wsdl:input message="impl:myJavaWebServiceRequest" name="myJavaWebServiceRequest"/>

         <wsdl:output message="impl:myJavaWebServiceResponse" name="myJavaWebServiceResponse"/>

      </wsdl:operation>

   </wsdl:portType>

   <wsdl:binding name="OTASoapBinding" type="impl:Class2">

      <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>

      <wsdl:operation name="myJavaWebService">

         <wsdlsoap:operation soapAction=""/>

         <wsdl:input name="myJavaWebServiceRequest">

            <wsdlsoap:body use="literal"/>

         </wsdl:input>

         <wsdl:output name="myJavaWebServiceResponse">

            <wsdlsoap:body use="literal"/>

         </wsdl:output>

      </wsdl:operation>

   </wsdl:binding>

   <wsdl:service name="Class2Service">

      <wsdl:port binding="impl:OTASoapBinding" name="OTA">

         <wsdlsoap:address location=" http://localhost:8080/axis/services/OTA"/>

      </wsdl:port>

   </wsdl:service>

</wsdl:definitions>
**********************************************************************************************************
here is my soap request message :
**********************************************************************************************************
<SOAP-ENV:Envelope xmlns:SOAP-ENV=" http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/ " xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema " xmlns:m0="http://localhost:8080/axis/services/OTA" xmlns:m1="http://www.hititcs.com/TestRecep">
    <SOAP-ENV:Body>
        <m:RQ
    xmlns="http://www.opentravel.org/OTA/2003/05"
    xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.opentravel.org/OTA/2003/05OTA_AirAvailRQ.xsd"
       xmlns:m="http://requestclasses.otapax" DirectFlightsOnly="" MaxResponses="" PrimaryLangID="" SequenceNmbr="">
            <m0: OriginDestinationInformation>
                <m1:DepartureDateTime>String</m1:DepartureDateTime>
                <m1:OriginLocation LocationCode=""/>
                <m1:DestinationLocation LocationCode=""/>
            </m0:OriginDestinationInformation>
            <m0:TravelPreferences MaxStopsQuantity="" SmokingAllowed="">
                <m1:FlightTypePref FlightType="" PreferLevel=""/>
                <m1:EquipPref AirEquipType=""/>
                <m1:CabinPref Cabin="" PreferLevel=""/>
                <m1:TicketDistribPref DistribType="" PreferLevel=""/>
            </m0:TravelPreferences>
            <m0:TravelerInfoSummary/>
        </m:RQ>
    </SOAP-ENV:Body>
</SOAP-ENV:Envelope>
**********************************************************************************************************
and the last one my getter/ setter
**********************************************************************************************************
    public otapax.requestclasses.OriginDestinationInformationType getOriginDestinationInformation() {
        return originDestinationInformation;
    }

    public void setOriginDestinationInformation(otapax.requestclasses.OriginDestinationInformationType originDestinationInformation ) {
        this.originDestinationInformation = originDestinationInformation;
    }

how can i do ?

thanks for your interesting.
please help me ?

Recep Ayaz

Reply via email to