axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Soti, Dheeraj" <ds...@harris.com>
Subject The client side class that gets generated with wsdl2java doesn't have all the fields
Date Mon, 14 Mar 2005 22:03:37 GMT
When I run WSDL2Java on my wsdl then the ProgramContent.java gets generated but
doesn't have any members. I have pasted below the WSDL and the generated java
file. Any clues?. 

Thanks

Dheeraj

WSDL
----------
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="http://services.hrs.harris.com/"
  xmlns:apachesoap="http://xml.apache.org/xml-soap"
  xmlns:impl="http://services.hrs.harris.com/"
  xmlns:intf="http://services.hrs.harris.com/"
  xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
  xmlns:tns1="http://services.hrs.harris.com/"
  xmlns:content="http://content.services.hrs.harris.com/"
  xmlns:media="http://media.services.hrs.harris.com/"
  xmlns:device="http://device.services.hrs.harris.com/"
  xmlns:storage="http://storage.services.hrs.harris.com/"
  xmlns:timecode="http://timecode.services.hrs.harris.com/"
  xmlns:config="http://config.services.hrs.harris.com/"
  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.2RC2 Built on Nov 16, 2004 (12:19:44
EST)-->
<wsdl:types>
    <schema targetNamespace="http://timecode.services.hrs.harris.com/"
        xmlns="http://www.w3.org/2001/XMLSchema">
        <complexType name="ImmutableFrameTime">
            <complexContent>
                <element name="frameCount" type="xsd:long"/>            
                <element name="frameRate" type="xsd:double" />
            </complexContent>    
        </complexType>
        
        <complexType name="TimeCodeImpl">
           <complexContent>
               <element name="frameTime" nillable="true"
type="timecode:ImmutableFrameTime"/>
           </complexContent>    
        </complexType>
              
    </schema>
    <schema targetNamespace="http://media.services.hrs.harris.com/"
        xmlns="http://www.w3.org/2001/XMLSchema">
        <complexType name="MediaImpl">
            <complexContent>        
                <element name="id" type="xsd:long"/>
                <element name="storageFile" type="storage:StorageFileImpl"/>
                <element name="som" type="timecode:ImmutableFrameTime"/>
                <element name="resolution" type="xsd:int"/>
            </complexContent>
        </complexType>
        <complexType name="ArrayOfMedia">
            <complexContent>        
                <sequence>
                    <element name="" minOccurs="0" maxOccurs="unbounded"
type="media:MediaImpl" />
                </sequence>
            </complexContent>                
        </complexType>
    </schema>

    <schema elementFormDefault="qualified"
targetNamespace="http://content.services.hrs.harris.com/"
        xmlns="http://www.w3.org/2001/XMLSchema">
        <complexType name="ContentContainer">
            <complexContent>
                <!--element name="contentMetadata"
type="content:ProgramContent"/-->
                <element name="id" type="xsd:long"/>
                <element name="name" type="xsd:string"/>
                <element name="description" nillable="true" type="xsd:string"/>
                <element name="mediaList" type="media:ArrayOfMedia"/>
                <!--element name="directOriginator"
type="content:ContentContainer"/-->                    
            </complexContent>                
        </complexType>

        <complexType name="ArrayOfContentContainer">
            <complexContent>        
                <sequence>
                    <element name="ContentContainer" minOccurs="0"
maxOccurs="unbounded" type="content:ContentContainer" />
                </sequence>
            </complexContent>                
        </complexType>        
        <complexType name="ProgramContent">
            <element name="description" nillable="true" type="xsd:string"/>
            <element name="houseId" nillable="true" type="xsd:string"/>
            <element name="id" type="xsd:long"/>
            <element name="title" nillable="true" type="soapenc:string"/>
            <!--element name="estimatedDuration" nillable="true"
type="timecode:ImmutableFrameTime"/-->
            <element name="episodeNumber" nillable="true" deafult=""
type="xsd:string"/>
            <element name="umid" nillable="true" type="xsd:string" default=""/>
            <element name="episodeTitle" nillable="true" type="xsd:string"
default=""/>
            <!--element name="contentRealizations" nillable="true"
type="content:ArrayOfContentContainer"/-->
            <element name="numberProgramSegments" nillable="true" default="1"
type="xsd:int"/>
        </complexType>
    </schema>
    <schema targetNamespace="http://device.services.hrs.harris.com/"
        xmlns="http://www.w3.org/2001/XMLSchema">
        <complexType name="DeviceVendorImpl">
            <complexContent>        
                <element name="name" type="xsd:string"/>
                <element name="storageHandlerId" type="xsd:string"/>
            </complexContent>    
        </complexType> 
    </schema>
    <schema targetNamespace="http://storage.services.hrs.harris.com/"
        xmlns="http://www.w3.org/2001/XMLSchema">
        <complexType name="StorageFileImpl">
            <complexContent>        
                <element name="id" type="xsd:long"/>
                <element name="pathName" type="xsd:string"/>
                <element name="volume" type="storage:StorageVolumeImpl"/>
            </complexContent>                
        </complexType>
        <complexType name="StorageDeviceImpl">
            <complexContent>        
                <element name="id" type="xsd:long"/>
                <element name="name" type="xsd:string"/>
                <element name="volumes" type="storage:ArrayOfStorageVolumes"/>
                <element name="deviceVendorName" type="xsd:string"/>
                <element name="iPAddress" type="xsd:string"/>
                <element name="protocol" type="xsd:string"/>
                <element name="username" type="xsd:string"/>
                <element name="password" type="xsd:string"/>
            </complexContent>                
        </complexType>
        <complexType name="StorageVolumeImpl">
            <complexContent>        
                <sequence>
                    <element name="id" type="xsd:long"/>
                    <element name="storageDevice"
type="storage:StorageDeviceImpl"/>                    
                </sequence>
            </complexContent>                
        </complexType>
        <complexType name="ArrayOfStorageVolumes">
            <complexContent>        
                <sequence>
                    <element name="StorageVolume" minOccurs="0"
maxOccurs="unbounded" type="storage:StorageVolumeImpl" />
                </sequence>
            </complexContent>                
        </complexType>
    </schema>
 </wsdl:types>

   <wsdl:message name="createContentRequest">

      <wsdl:part name="in0" type="content:ProgramContent"/>

   </wsdl:message>

   <wsdl:message name="createContentResponse">

      <wsdl:part name="createContentReturn" type="xsd:boolean"/>

   </wsdl:message>
   <wsdl:portType name="ContentService">

      <wsdl:operation name="createContent" parameterOrder="in0">

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

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

      </wsdl:operation>

   </wsdl:portType>

   <wsdl:binding name="ContentService" type="impl:ContentService">

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

      <wsdl:operation name="createContent">

         <wsdlsoap:operation soapAction=""/>

         <wsdl:input name="createContentRequest">

            <wsdlsoap:body
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="http://content.services.hrs.harris.com" use="encoded"/>

         </wsdl:input>

         <wsdl:output name="createContentResponse">

            <wsdlsoap:body
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="http://content.services.hrs.harris.com" use="encoded"/>

         </wsdl:output>

      </wsdl:operation>

   </wsdl:binding>
   <wsdl:service name="HRSWebService">

      <wsdl:port binding="impl:ContentService" name="ContentService">

         <wsdlsoap:address
location="http://localhost:8080/hrsApp/services/ContentService"/>

      </wsdl:port>

   </wsdl:service>

</wsdl:definitions>


/**
 * ProgramContent.java
 *
 * This file was auto-generated from WSDL
 * by the Apache Axis 1.2RC2 Nov 16, 2004 (12:19:44 EST) WSDL2Java emitter.
 */

package com.harris.hrs.services.content;

public class ProgramContent  implements java.io.Serializable {

    public ProgramContent() {
    }

    private java.lang.Object __equalsCalc = null;
    public synchronized boolean equals(java.lang.Object obj) {
        if (!(obj instanceof ProgramContent)) return false;
        ProgramContent other = (ProgramContent) obj;
        if (obj == null) return false;
        if (this == obj) return true;
        if (__equalsCalc != null) {
            return (__equalsCalc == obj);
        }
        __equalsCalc = obj;
        boolean _equals;
        _equals = true;
        __equalsCalc = null;
        return _equals;
    }

    private boolean __hashCodeCalc = false;
    public synchronized int hashCode() {
        if (__hashCodeCalc) {
            return 0;
        }
        __hashCodeCalc = true;
        int _hashCode = 1;
        __hashCodeCalc = false;
        return _hashCode;
    }

    // Type metadata
    private static org.apache.axis.description.TypeDesc typeDesc =
        new org.apache.axis.description.TypeDesc(ProgramContent.class, true);

    static {
        typeDesc.setXmlType(new
javax.xml.namespace.QName("http://content.services.hrs.harris.com/",
"ProgramContent"));
    }

    /**
     * Return type metadata object
     */
    public static org.apache.axis.description.TypeDesc getTypeDesc() {
        return typeDesc;
    }

    /**
     * Get Custom Serializer
     */
    public static org.apache.axis.encoding.Serializer getSerializer(
           java.lang.String mechType, 
           java.lang.Class _javaType,  
           javax.xml.namespace.QName _xmlType) {
        return 
          new  org.apache.axis.encoding.ser.BeanSerializer(
            _javaType, _xmlType, typeDesc);
    }

    /**
     * Get Custom Deserializer
     */
    public static org.apache.axis.encoding.Deserializer getDeserializer(
           java.lang.String mechType, 
           java.lang.Class _javaType,  
           javax.xml.namespace.QName _xmlType) {
        return 
          new  org.apache.axis.encoding.ser.BeanDeserializer(
            _javaType, _xmlType, typeDesc);
    }

}

Mime
View raw message