Autotype won't generate java files from wsdl

Hi!
I'm having troube generating the java classes for a non built-in datatype from
wsdl. The autotype ant task will only generate a types.xml file, but it does not
generate the corresponding java files for the non-built in datatypes, nor does
it generate any serializer/deserializer classes.
Thanks in advance for any help on this!
The WSDL defines the following datatype:
<xsd:complexType name="w2Edisoprec">
          <xsd:complexContent>
               <xsd:restriction base="SOAP-ENC:Array">
                    <xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="w2EdisoprecArrayItem[]"/>
               </xsd:restriction>
          </xsd:complexContent>
     </xsd:complexType>
     <xsd:complexType name="w2EdisoprecArrayItem">
          <xsd:sequence>
               <xsd:element name="sAs_soptunnus" type="xsd:string" minOccurs="1" maxOccurs="1"/>
               <xsd:element name="sAs_soptun_alk" type="xsd:string" minOccurs="1" maxOccurs="1"/>
               <xsd:element name="lAs_soptun_lop" type="xsd:string" minOccurs="1" maxOccurs="1"/>
               <xsd:any processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
          </xsd:sequence>
          <xsd:anyAttribute processContents="lax"/>
     </xsd:complexType>
     <xsd:element name="w2Edisoprec" type="w2EdisoprecArrayItem" />
I'm using the following build.xml file:
<project name="buildWebservice" default="generate-types">
     <target name="generate-types">
     <autotype
     wsdl="http://localhost/Lak_hEdisopLK.wsdl"
     packageName="ssi3Client.types"
     destDir="c:/tuxedo2sap/l158/ssi3/wsdl/types"
     />
     </target>
</project>
The types.xml file generated by autotype is:
<wsdd:type-mapping xmlns:wsdd="http://www.bea.com/servers/wls70"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
<wsdd:type-mapping-entry xmlns:lcl0="http://www.webMethods.com/noNamespace/"
class-name="javax.xml.soap.SOAPElement"
type="lcl0:w2Edisoprec"
serializer="weblogic.webservice.core.encoding.stream.SOAPElementCodec"
deserializer="weblogic.webservice.core.encoding.stream.SOAPElementCodec">
</wsdd:type-mapping-entry>
<wsdd:type-mapping-entry xmlns:lcl0="http://www.webMethods.com/noNamespace/"
class-name="javax.xml.soap.SOAPElement"
type="lcl0:v2EdisoprecArrayItem"
serializer="weblogic.webservice.core.encoding.stream.SOAPElementCodec"
deserializer="weblogic.webservice.core.encoding.stream.SOAPElementCodec">
</wsdd:type-mapping-entry>
<wsdd:type-mapping-entry xmlns:lcl0="http://www.webMethods.com/noNamespace/"
class-name="javax.xml.soap.SOAPElement"
type="lcl0:w2EdisoprecArrayItem"
serializer="weblogic.webservice.core.encoding.stream.SOAPElementCodec"
deserializer="weblogic.webservice.core.encoding.stream.SOAPElementCodec">
</wsdd:type-mapping-entry>
<wsdd:type-mapping-entry xmlns:lcl0="http://www.webMethods.com/noNamespace/"
class-name="javax.xml.soap.SOAPElement"
type="lcl0:v2Edisoprec"
serializer="weblogic.webservice.core.encoding.stream.SOAPElementCodec"
deserializer="weblogic.webservice.core.encoding.stream.SOAPElementCodec">
</wsdd:type-mapping-entry>
</wsdd:type-mapping>

Hi Hans,
It is a known issue that the XML schema processor in WLS 7.0, doesn't currently
handle the <xsd:anyAttribute processContents="lax"/> and <xsd:any processContents="lax"
minOccurs="0" maxOccurs="unbounded"/> lines in your xsd. This may be corrected
in the next service pack - SP2.
Regards,
Mike Wooten
"Hans Dumbrajs" <[email protected]> wrote:
>
Hi!
I'm having troube generating the java classes for a non built-in datatype
from
wsdl. The autotype ant task will only generate a types.xml file, but
it does not
generate the corresponding java files for the non-built in datatypes,
nor does
it generate any serializer/deserializer classes.
Thanks in advance for any help on this!
The WSDL defines the following datatype:
<xsd:complexType name="w2Edisoprec">
          <xsd:complexContent>
               <xsd:restriction base="SOAP-ENC:Array">
                    <xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="w2EdisoprecArrayItem[]"/>
               </xsd:restriction>
          </xsd:complexContent>
     </xsd:complexType>
     <xsd:complexType name="w2EdisoprecArrayItem">
          <xsd:sequence>
               <xsd:element name="sAs_soptunnus" type="xsd:string" minOccurs="1"
maxOccurs="1"/>
               <xsd:element name="sAs_soptun_alk" type="xsd:string" minOccurs="1"
maxOccurs="1"/>
               <xsd:element name="lAs_soptun_lop" type="xsd:string" minOccurs="1"
maxOccurs="1"/>
               <xsd:any processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
          </xsd:sequence>
          <xsd:anyAttribute processContents="lax"/>
     </xsd:complexType>
     <xsd:element name="w2Edisoprec" type="w2EdisoprecArrayItem" />
I'm using the following build.xml file:
<project name="buildWebservice" default="generate-types">
     <target name="generate-types">
     <autotype
     wsdl="http://localhost/Lak_hEdisopLK.wsdl"
     packageName="ssi3Client.types"
     destDir="c:/tuxedo2sap/l158/ssi3/wsdl/types"
     />
     </target>
</project>
The types.xml file generated by autotype is:
<wsdd:type-mapping xmlns:wsdd="http://www.bea.com/servers/wls70"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
<wsdd:type-mapping-entry xmlns:lcl0="http://www.webMethods.com/noNamespace/"
class-name="javax.xml.soap.SOAPElement"
type="lcl0:w2Edisoprec"
serializer="weblogic.webservice.core.encoding.stream.SOAPElementCodec"
deserializer="weblogic.webservice.core.encoding.stream.SOAPElementCodec">
</wsdd:type-mapping-entry>
<wsdd:type-mapping-entry xmlns:lcl0="http://www.webMethods.com/noNamespace/"
class-name="javax.xml.soap.SOAPElement"
type="lcl0:v2EdisoprecArrayItem"
serializer="weblogic.webservice.core.encoding.stream.SOAPElementCodec"
deserializer="weblogic.webservice.core.encoding.stream.SOAPElementCodec">
</wsdd:type-mapping-entry>
<wsdd:type-mapping-entry xmlns:lcl0="http://www.webMethods.com/noNamespace/"
class-name="javax.xml.soap.SOAPElement"
type="lcl0:w2EdisoprecArrayItem"
serializer="weblogic.webservice.core.encoding.stream.SOAPElementCodec"
deserializer="weblogic.webservice.core.encoding.stream.SOAPElementCodec">
</wsdd:type-mapping-entry>
<wsdd:type-mapping-entry xmlns:lcl0="http://www.webMethods.com/noNamespace/"
class-name="javax.xml.soap.SOAPElement"
type="lcl0:v2Edisoprec"
serializer="weblogic.webservice.core.encoding.stream.SOAPElementCodec"
deserializer="weblogic.webservice.core.encoding.stream.SOAPElementCodec">
</wsdd:type-mapping-entry>
</wsdd:type-mapping>

Similar Messages

  • How to generate java file from WSDL file

    Hi friends,
    I am new to this thing, so that's why I need some guidence .
    I need to generate java file programatically from existing wsdl file.
    I thought the ways - to use xmlbeans apache library or jaxb.
    Can you suggest what will be better way to generate java file from wsdl? can you please be more descriptive and can you direct me to appropriate link?
    Thanks.
    Harshit

    xmlbeans apache provides easiest way to create java file from wsdl there is very good link for that
    http://www.ibm.com/developerworks/webservices/library/ws-soa-clientxmlbeans.html
    If you want more programmatic approach then Jaxb will be a better option

  • Error in generating .cs file from wsdl

    hi ,
    I am trying to generate .cs file from wsdl using commond
    wsdl
    http://pni3w274:8080/tc5_services/WebServices/ModelEntity?wsdl /language:CS /out:rt.cs /protocol:SOAP
    it give following errors
    Error: Unable to import binding 'ModelEntitySoapBinding' from namespace 'http://
    teamcenter.com/TCENT/webservices/2005-06/services/ModelEntity'.
    - Unable to import operation 'getListOfClasses'.
    - The datatype 'http://teamcenter.com/TCENT/webservices/2005-06/schemas/ModelE
    ntity:GetListOfClassesInputParams' is missing.
    my wsdl is
    ModelEntityService.wsdl
    <?xml version="1.0" encoding="UTF-8" ?>
    <wsdl:definitions
    targetNamespace="http://teamcenter.com/TCENT/webservices/2005-06/services/ModelEntity"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:wsi="http://ws-i.org/schemas/conformanceClaim/"
    xmlns:imp0="http://teamcenter.com/TCENT/webservices/2005-06/schemas/ModelEntity"
    xmlns:imp1="http://teamcenter.com/webservices/2005-06/schemas/WSFaults"
    xmlns:tns="http://teamcenter.com/TCENT/webservices/2005-06/services/ModelEntity">
    <wsdl:documentation>
    The service provides Model Entity related operation.
    </wsdl:documentation>
    <wsdl:types>
    <xs:schema>
    <xs:import namespace="http://teamcenter.com/TCENT/webservices/2005-06/schemas/ModelEntity" schemaLocation="ModelEntity.xsd" />
    <xs:import namespace="http://teamcenter.com/webservices/2005-06/schemas/WSFaults" schemaLocation="WSFaults.xsd" />
    </xs:schema>
    </wsdl:types>
    <wsdl:message name="PresentationTierFault">
    <wsdl:part name="ex0" element="imp1:RequestManangerFault" />
    </wsdl:message>
    <wsdl:message name="getListOfClassesRequest">
    <wsdl:part name="in0" element="imp0:GetListOfClassesInputParams" />
    </wsdl:message>
    <wsdl:message name="getListOfClassesResponse">
    <wsdl:part name="out" element="imp0:GetListOfClassesOutputParams" />
    </wsdl:message>
    <wsdl:message name="getCreateAttributesRequest">
    <wsdl:part name="in0" element="imp0:GetCreateAttributesInputParams" />
    </wsdl:message>
    <wsdl:message name="getCreateAttributesResponse">
    <wsdl:part name="out" element="imp0:GetCreateAttributesOutputParams" />
    </wsdl:message>
    <wsdl:message name="createModelEntityRequest">
    <wsdl:part name="in0" element="imp0:CreateModelEntityInputParams" />
    </wsdl:message>
    <wsdl:message name="createModelEntityResponse">
    <wsdl:part name="out" element="imp0:CreateModelEntityOutputParams" />
    </wsdl:message>
    <wsdl:message name="getValueSetForAttributeRequest">
    <wsdl:part name="in0" element="imp0:GetValueSetForAttributeInputParams" />
    </wsdl:message>
    <wsdl:message name="getValueSetForAttributeResponse">
    <wsdl:part name="out" element="imp0:GetValueSetForAttributeOutputParams" />
    </wsdl:message>
    <wsdl:portType name="ModelEntity">
    <wsdl:operation name="getListOfClasses">
    <wsdl:documentation>
    Gets List Of all ModelEntity Classes.
    </wsdl:documentation>
    <wsdl:input message="tns:getListOfClassesRequest" name="getListOfClassesRequest" />
    <wsdl:output message="tns:getListOfClassesResponse" name="getListOfClassesResponse" />
    <wsdl:fault message="tns:PresentationTierFault" name="PresentationTierError" />
    </wsdl:operation>
    <wsdl:operation name="getCreateAttributes">
    <wsdl:documentation>
    Gets ModelEntity Create Attributes.
    </wsdl:documentation>
    <wsdl:input message="tns:getCreateAttributesRequest" name="getCreateAttributesRequest" />
    <wsdl:output message="tns:getCreateAttributesResponse" name="getCreateAttributesResponse" />
    <wsdl:fault message="tns:PresentationTierFault" name="PresentationTierError" />
    </wsdl:operation>
    <wsdl:operation name="createModelEntity">
    <wsdl:documentation>
    Creates Model Entity.
    </wsdl:documentation>
    <wsdl:input message="tns:createModelEntityRequest" name="createModelEntityRequest" />
    <wsdl:output message="tns:createModelEntityResponse" name="createModelEntityResponse" />
    <wsdl:fault message="tns:PresentationTierFault" name="PresentationTierError" />
    </wsdl:operation>
    <wsdl:operation name="getValueSetForAttribute">
    <wsdl:documentation>
    Gets Value Set For Attribute.
    </wsdl:documentation>
    <wsdl:input message="tns:getValueSetForAttributeRequest" name="getValueSetForAttributeRequest" />
    <wsdl:output message="tns:getValueSetForAttributeResponse" name="getValueSetForAttributeResponse" />
    <wsdl:fault message="tns:PresentationTierFault" name="PresentationTierError" />
    </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="ModelEntitySoapBinding" type="tns:ModelEntity">
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
    <wsdl:operation name="getListOfClasses">
    <soap:operation style="document" soapAction="getListOfClasses" />
    <wsdl:input><soap:body use="literal" /></wsdl:input>
    <wsdl:output><soap:body use="literal" /></wsdl:output>
    <wsdl:fault name="PresentationTierError"><soap:fault name="PresentationTierError" use="literal" /></wsdl:fault>
    </wsdl:operation>
    <wsdl:operation name="getCreateAttributes">
    <soap:operation style="document" soapAction="getCreateAttributes" />
    <wsdl:input><soap:body use="literal" /></wsdl:input>
    <wsdl:output><soap:body use="literal" /></wsdl:output>
    <wsdl:fault name="PresentationTierError"><soap:fault name="PresentationTierError" use="literal" /></wsdl:fault>
    </wsdl:operation>
    <wsdl:operation name="createModelEntity">
    <soap:operation style="document" soapAction="createModelEntity" />
    <wsdl:input><soap:body use="literal" /></wsdl:input>
    <wsdl:output><soap:body use="literal" /></wsdl:output>
    <wsdl:fault name="PresentationTierError"><soap:fault name="PresentationTierError" use="literal" /></wsdl:fault>
    </wsdl:operation>
    <wsdl:operation name="getValueSetForAttribute">
    <soap:operation style="document" soapAction="getValueSetForAttribute" />
    <wsdl:input><soap:body use="literal" /></wsdl:input>
    <wsdl:output><soap:body use="literal" /></wsdl:output>
    <wsdl:fault name="PresentationTierError"><soap:fault name="PresentationTierError" use="literal" /></wsdl:fault>
    </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="ModelEntityService">
    <wsdl:port binding="tns:ModelEntitySoapBinding" name="ModelEntity">
    <soap:address
    location="http://localhost:80/PTierApp/WebServices/ModelEntity" />
    </wsdl:port>
    </wsdl:service>
    </wsdl:definitions>
    and xsd is ModelEntity.xsd
    <?xml version="1.0" encoding="UTF-8"?>
    <!--
    bcprt
    This software and related documentation are proprietary to UGS Corp.
    COPYRIGHT 2006 UGS CORP. ALL RIGHTS RESERVED
    ecprt
    -->
    <xsd:schema targetNamespace="http://teamcenter.com/TCENT/webservices/2005-06/schemas/ModelEntity"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:wsc="http://teamcenter.com/TCENT/webservices/2005-06/schemas/Common"
    xmlns:wlt="http://teamcenter.com/TCENT/webservices/2005-06/schemas/ModelEntity"
    elementFormDefault="qualified"
    attributeFormDefault="unqualified">
    <!-- ================================================================== -->
    <!-- Package: ModelEntity -->
    <!-- ================================================================== -->
    <xsd:annotation>
    <xsd:documentation>
    The ModelEntity package defines elements and data types
    for the parameters used by operations/messages of the ModelEntity Web Service.
    </xsd:documentation>
    </xsd:annotation>
    <!-- ================================================================== -->
    <!-- BEGIN: Get Model Entity List Of Classes: INPUT -->
    <!-- ================================================================== -->
    <xsd:element name="GetListOfClassesInputParams"
    type="wlt:GetListOfClassesInputType"/>
    <xsd:complexType name="GetListOfClassesInputType">
    <xsd:sequence>
    <xsd:element name="UserName" type="xsd:string"/>
    <xsd:element name="Password" type="xsd:string"/>
    <xsd:element name="Locale" type="xsd:string" minOccurs="0"/>
    </xsd:sequence>
    </xsd:complexType>
    <!-- ================================================================== -->
    <!-- END : Get Model Entity List Of Classes : INPUT -->
    <!-- ================================================================== -->
    <!-- ================================================================== -->
    <!-- BEGIN: Get Model Entity List Of Classes : OUTPUT -->
    <!-- ================================================================== -->
    <xsd:element name="GetListOfClassesOutputParams"
    type="wlt:GetListOfClassesOutputType"/>
    <xsd:complexType name="GetListOfClassesOutputType">
    <xsd:sequence>
    <xsd:element name="ClassList" type="wlt:ModelEntityValueDisplayedValuePair"
    minOccurs="0" maxOccurs="unbounded" />
    <xsd:element name="ReturnType" type="xsd:boolean"/>
    <xsd:element name="ReturnMessage" type="xsd:string"/>
    </xsd:sequence>
    </xsd:complexType>
    <!-- ================================================================== -->
    <!-- END : Get Model Entity Classes : OUTPUT -->
    <!-- ================================================================== -->
    <!-- ================================================================== -->
    <!-- BEGIN: Get Model Entity Create Attributes: INPUT -->
    <!-- ================================================================== -->
    <xsd:element name="GetCreateAttributesInputParams"
    type="wlt:GetCreateAttributesInputType"/>
    <xsd:complexType name="GetCreateAttributesInputType">
    <xsd:sequence>
    <xsd:element name="UserName" type="xsd:string"/>
    <xsd:element name="Password" type="xsd:string"/>
    <xsd:element name="Locale" type="xsd:string" minOccurs="0"/>
    <xsd:element name="ClassName" type="xsd:string"/>
    </xsd:sequence>
    </xsd:complexType>
    <!-- ================================================================== -->
    <!-- END : Get Model Entity Create Attributes : INPUT -->
    <!-- ================================================================== -->
    <!-- ================================================================== -->
    <!-- BEGIN: Get Model Entity Create Attributes : OUTPUT -->
    <!-- ================================================================== -->
    <xsd:element name="GetCreateAttributesOutputParams"
    type="wlt:GetCreateAttributesOutputType"/>
    <xsd:complexType name="GetCreateAttributesOutputType">
    <xsd:sequence>
    <xsd:element name="Attributes" type="wlt:ModelEntityCreateAttributes"
    minOccurs="0" maxOccurs="unbounded" />
    <xsd:element name="ReturnType" type="xsd:boolean"/>
    <xsd:element name="ReturnMessage" type="xsd:string"/>
    </xsd:sequence>
    </xsd:complexType>
    <!-- ================================================================== -->
    <!-- END : Get Model Entity Create Attributes : OUTPUT -->
    <!-- ================================================================== -->
    <!-- ================================================================== -->
    <!-- BEGIN: Get Model Entity Value Set For Attribute: INPUT -->
    <!-- ================================================================== -->
    <xsd:element name="GetValueSetForAttributeInputParams"
    type="wlt:GetValueSetForAttributeInputType"/>
    <xsd:complexType name="GetValueSetForAttributeInputType">
    <xsd:sequence>
    <xsd:element name="UserName" type="xsd:string"/>
    <xsd:element name="Password" type="xsd:string"/>
    <xsd:element name="Locale" type="xsd:string" minOccurs="0"/>
    <xsd:element name="Attribute" type="xsd:string"/>
    <!-- optional criteria -->
    <xsd:element name="Criteria" type="wlt:ModelEntityNameValuePair"
    minOccurs="0" maxOccurs="unbounded" />
    <!-- optional class name -->
    <xsd:element name="ClassName" type="xsd:string"/>
    </xsd:sequence>
    </xsd:complexType>
    <!-- ================================================================== -->
    <!-- END : Get Model Entity Value Set For Attribute : INPUT -->
    <!-- ================================================================== -->
    <!-- ================================================================== -->
    <!-- BEGIN: Get Model Entity Value Set For Attribute : OUTPUT -->
    <!-- ================================================================== -->
    <xsd:element name="GetValueSetForAttributeOutputParams"
    type="wlt:GetValueSetForAttributeOutputType"/>
    <xsd:complexType name="GetValueSetForAttributeOutputType">
    <xsd:sequence>
    <xsd:element name="StaticValues" type="wlt:ModelEntityValueDisplayedValuePair"
    minOccurs="0" maxOccurs="unbounded" />
    <xsd:element name="ReturnType" type="xsd:boolean"/>
    <xsd:element name="ReturnMessage" type="xsd:string"/>
    </xsd:sequence>
    </xsd:complexType>
    <!-- ================================================================== -->
    <!-- END : Get Model Entity Value Set For Attribute : OUTPUT -->
    <!-- ================================================================== -->
    <!-- ================================================================== -->
    <!-- BEGIN: Create Model Entity : INPUT -->
    <!-- ================================================================== -->
    <xsd:element name="CreateModelEntityInputParams"
    type="wlt:CreateModelEntityInputType"/>
    <xsd:complexType name="CreateModelEntityInputType">
    <xsd:sequence>
    <xsd:element name="UserName" type="xsd:string"/>
    <xsd:element name="Password" type="xsd:string"/>
    <xsd:element name="Locale" type="xsd:string" minOccurs="0"/>
    <xsd:element name="ClassName" type="xsd:string"/>
    <xsd:element name="Attributes" type="wlt:ModelEntityNameValuePair"
    maxOccurs="unbounded" />
    </xsd:sequence>
    </xsd:complexType>
    <!-- ================================================================== -->
    <!-- END : Create Model Entity : INPUT -->
    <!-- ================================================================== -->
    <!-- ================================================================== -->
    <!-- BEGIN : Create Model Entity : OUTPUT -->
    <!-- ================================================================== -->
    <xsd:element name="CreateModelEntityOutputParams"
    type="wlt:CreateModelEntityOutputType"/>
    <xsd:complexType name="CreateModelEntityOutputType">
    <xsd:sequence>
    <xsd:element name="ObjectHandle" type="xsd:string"/>
    <xsd:element name="ReturnType" type="xsd:boolean"/>
    <xsd:element name="ReturnMessage" type="xsd:string"/>
    </xsd:sequence>
    </xsd:complexType>
    <!-- ================================================================== -->
    <!-- END : Create Model Entity : OUTPUT -->
    <!-- ================================================================== -->
    <!-- ================================================================== -->
    <!-- BEGIN : Create Model Entity Attributes : OUTPUT -->
    <!-- ================================================================== -->
    <xsd:complexType name="ModelEntityCreateAttributes">
    <xsd:sequence>
    <xsd:element name="DisplayedName" type="xsd:string"/>
    <xsd:element name="Name" type="xsd:string"/>
    <xsd:element name="StaticValues" type="wlt:ModelEntityValueDisplayedValuePair"
    minOccurs="0" maxOccurs="unbounded" />
    <xsd:element name="IsRequired" type="xsd:boolean"/>
    <xsd:element name="HasValueSet" type="xsd:boolean"/>
    </xsd:sequence>
    </xsd:complexType>
    <!-- ================================================================== -->
    <!-- END : Create Model Entity Attributes : OUTPUT -->
    <!-- ================================================================== -->
    <!-- ================================================================== -->
    <!-- BEGIN : Model Entity Pairs : INPUT/OUTPUT -->
    <!-- ================================================================== -->
    <xsd:complexType name="ModelEntityNameValuePair">
    <xsd:sequence>
    <xsd:element name="Name" type="xsd:string"/>
    <xsd:element name="Value" type="xsd:string"/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="ModelEntityValueDisplayedValuePair">
    <xsd:sequence>
    <xsd:element name="Value" type="xsd:string"/>
    <xsd:element name="DisplayedValue" type="xsd:string"/>
    </xsd:sequence>
    </xsd:complexType>
    <!-- ================================================================== -->
    <!-- END : Model Entity Pairs : INPUT/OUTPUT -->
    <!-- ================================================================== -->
    </xsd:schema>

    check metalink note
    Adpatch Fails With Error : adogjf() Unable to copy Registry.Dat.
    Note:282153.1
    also check (Adogjf() Unable To Copy Registry.Dat).
    Note:382695.1 about the correct on the $806_ORACLE_HOME/forms60/java where it should be 755
    make sure that you soruce the env fiel before adpatch and that ORACLE_HOME is poinitng to the correct oracle_home
    fadi

  • How to generate .java file from xml?

    Does anyone have an idea of how i can generate .java file from xml file? Tools like jakrata digester, JOX are there but both of them are useful in populating java beans from xml. My requirement is to generate .java file from .xml with getters and setters methods for xml elements/attributes. I also tried JAXB. But JAXB generates bunch of files and most of them are interfaces, which is not going to work for me.
    For e.g. i have following xml file and i want to generate Address.java file with getters/setters. Any ideas?
    <?xml version='1.0' encoding='UTF-8' ?>
    <Address>
    <FirstName type="String"/>
    <PoBox type="int"/>
    </Address>
    Thanks,
    Vicky

    Crosspost.
    http://forum.java.sun.com/thread.jsp?thread=475564&forum=4&message=2205846

  • Cannot generate java file from i18ngen utility

    Hi,
    I have a message catalog file named PNS.xml which generated by MsgEditor and
    its content as follow.
    <message_catalog
    i18n_package="weblogic.i18n"
    l10n_package="weblogic.i18n"
    subsystem="pns"
    version="1.0"
    >
    <!-- -->
    <message
    messageid="lang_id"
    datehash="336038090"
    datelastchanged="1020896502008"
    method="langId(String arg0)"
    >
    <messagebody>
    EN {0}
    </messagebody>
    </message>
    </message_catalog>
    --------------- End of content
    However, there is no output file(s) in c:\temp\weblogic\i18n\ directory
    when I enter the follow command.
    C:\Temp>java weblogic.i18ngen -debug weblogic\msgcat\PNS.xml
    Options:
    server=false
    ignore=false
    verbose=false
    debug=true
    nobuild=false
    i18n=false
    l10n=false
    compile=false
    Processing input: C:\Temp\weblogic\msgcat\PNS.xml
    Using validating parser
    Document start
    Receive element: message_catalog
    Adding new message_catalog
    PNS.xml
    Setting attr: name=i18n_package, value=weblogic.i18n
    Setting attr: name=l10n_package, value=weblogic.i18n
    Setting attr: name=subsystem, value=pns
    Setting attr: name=version, value=1.0
    Receive element: message
    Adding new Message
    Setting attr: name=messageid, value=lang_id
    Setting attr: name=datehash, value=336038090
    Setting attr: name=datelastchanged, value=1020896502008
    Setting attr: name=method, value=langId(String arg0)
    processing method, langId(String arg0)
    Setting method name, langId
    Adding arg, String
    Receive element: messagebody
    Adding new messagebody
    Received chars: <
    EN {0}
    >
    adding to body
    linking messagebody to message lang_id
    linking message lang_id to message_catalog
    Validating simple message catalog...
    Validating message...
    C:\Temp>
    (C:\Temp is already in my classpath)
    If anyone knows how to use this utility, please let me know.
    Thanks for your help.
    Tommy

    Admittedly poor choice of option names. -i18n causes Logger classes to be
    created. Loggers are generated from Log message catalogs, which you aren't
    using. The -l10n option works on your catalog. The diff between i18n and l10n
    is the notion of whether the generated classes are used for i18n-izing or
    localizing at runtime. When you use the generated Logger classes you are
    outputting localizable (ie internationalized) message to the log. The
    TextFormatter, on the other hand, produces localized output
    Tommy wrote:
    Sorry for the typo, the command I used in the last message should be this
    one.
    C:\Temp>java weblogic.i18ngen -i18n -debug weblogic\msgcat\PNS.xml
    For another scenario, the java file and the properties file could be
    generated with the -l10n option.
    What is the different in between those options?
    Thanks for your help.
    Tommy
    "Tommy" <[email protected]> wrote in message
    news:[email protected]...
    Hi,
    I have a message catalog file named PNS.xml which generated by MsgEditorand
    its content as follow.
    <message_catalog
    i18n_package="weblogic.i18n"
    l10n_package="weblogic.i18n"
    subsystem="pns"
    version="1.0"
    >
    <!-- -->
    <message
    messageid="lang_id"
    datehash="336038090"
    datelastchanged="1020896502008"
    method="langId(String arg0)"
    >
    <messagebody>
    EN {0}
    </messagebody>
    </message>
    </message_catalog>
    --------------- End of content
    However, there is no output file(s) in c:\temp\weblogic\i18n\ directory
    when I enter the follow command.
    C:\Temp>java weblogic.i18ngen -debug weblogic\msgcat\PNS.xml
    Options:
    server=false
    ignore=false
    verbose=false
    debug=true
    nobuild=false
    i18n=false
    l10n=false
    compile=false
    Processing input: C:\Temp\weblogic\msgcat\PNS.xml
    Using validating parser
    Document start
    Receive element: message_catalog
    Adding new message_catalog
    PNS.xml
    Setting attr: name=i18n_package, value=weblogic.i18n
    Setting attr: name=l10n_package, value=weblogic.i18n
    Setting attr: name=subsystem, value=pns
    Setting attr: name=version, value=1.0
    Receive element: message
    Adding new Message
    Setting attr: name=messageid, value=lang_id
    Setting attr: name=datehash, value=336038090
    Setting attr: name=datelastchanged, value=1020896502008
    Setting attr: name=method, value=langId(String arg0)
    processing method, langId(String arg0)
    Setting method name, langId
    Adding arg, String
    Receive element: messagebody
    Adding new messagebody
    Received chars: <
    EN {0}
    >
    adding to body
    linking messagebody to message lang_id
    linking message lang_id to message_catalog
    Validating simple message catalog...
    Validating message...
    C:\Temp>
    (C:\Temp is already in my classpath)
    If anyone knows how to use this utility, please let me know.
    Thanks for your help.
    Tommy

  • How to generate class files from wsdl

    I have upgraded weblogic from 9.1 to 10.3.5 and java from 1.5.0_06 to 1.6.0_27
    Do I have to regenerate my webservices classes like the stub ,impl and service class.
    also there are a few changes in the wsdl .
    Please help me how to generate classfiles from wsdl ?
    Please help.
    Thanks,

    Did you ever get an answer to this question? Did you proceed forward with the use of WSIF or did you select an alternative.
    Ernie :)

  • Weblogic 8.1 :: Getting error while generating Client java class from WSDL

    Hi,
    For SOAP webservice, I am using ant script to generate java client from WSDL but getting below error. Please inform if any suggestion to resolve this.
    Also let me know if any other alternative to generate client java code.
    Ant script:
    ===========
    <project name="project" default="generateClientJar">
         <property file="build.property">
         </property>
         <taskdef name="clientgen" classname="weblogic.ant.taskdefs.webservices.clientgen.ClientGenTask">
              <classpath>
                   <fileset dir="${build_lib.dir}" includes="*.jar" />
              </classpath>
         </taskdef>
         <path id="compile_path">
              <pathelement location="C:/jar/wls-api.jar" />
              <pathelement location="${build_lib.dir}/weblogic.jar" />
              <pathelement location="C:/jar/webserviceclient+ssl.jar" />
              <pathelement location="D:/Java_Src_10.1.0/nextgen_arch/wlpatch/webservices.jar" />
         </path>
         <target name="generateClientJar" depends="generate.client">
    <clientgen wsdl="${wsdl.file}" classpathref="compile_path"
    serviceName="${service.name}"
    packageName= "${client.pkg}"
    clientJar="${ws.client.name}" />
         </target>
         <target name="generate.client" description="Generate web-services client">
              <property name="wsdl.file" value="${sms.wsdl.file}"/>
              <property name="client.pkg" value="${sms.client.pkg}"/>
              <property name="ws.client.name" value="${ws.sms.name}"/>
              <property name="service.name" value="${sms.service.name}"/>
         </target>
    </project>
    build.property file
    ===========
    base=C:/SMS
    lib=E:/jar_path
    sms.wsdl.file=${base}/SMS.wsdl
    sms.client.pkg=com.db.dbdi.gtbportal.sms.client     
    ws.sms.name=${lib}/ws_SmsService_client.jar
    sms.service.name=SMSService
    build_lib.dir = E:/jar_path
    Error log:
    ================
    Buildfile: D:\Java_Src_10.1.0\ant\build_weblogic8.xml
    generate.client:
    generateClientJar:
    [clientgen] Generating client jar for C:/SMS/SMS.wsdl ...
    [clientgen] C:\Documents and Settings\amitkumar.patel\Local Settings\Temp\ws_SmsService_client.jar699419996\com\db\dbdi\gtbportal\sms\client\SMSPort.java:15: parameters is already defined in sendSMS(com.db.portal.webservices.sms.SendSMS,com.db.portal.webservices.sms.holders.SendSMSResponseHolder)
    [clientgen] public void sendSMS(com.db.portal.webservices.sms.SendSMS parameters, com.db.portal.webservices.sms.holders.SendSMSResponseHolder parameters)
    [clientgen] ^
    [clientgen] C:\Documents and Settings\amitkumar.patel\Local Settings\Temp\ws_SmsService_client.jar699419996\com\db\dbdi\gtbportal\sms\client\SMSPort.java:21: parameters is already defined in getStatus(com.db.portal.webservices.sms.GetStatus,com.db.portal.webservices.sms.holders.GetStatusResponseHolder)
    [clientgen] public void getStatus(com.db.portal.webservices.sms.GetStatus parameters, com.db.portal.webservices.sms.holders.GetStatusResponseHolder parameters)
    [clientgen] ^
    [clientgen] C:\Documents and Settings\amitkumar.patel\Local Settings\Temp\ws_SmsService_client.jar699419996\com\db\dbdi\gtbportal\sms\client\SMSPort_Stub.java:20: parameters is already defined in sendSMS(com.db.portal.webservices.sms.SendSMS,com.db.portal.webservices.sms.holders.SendSMSResponseHolder)
    [clientgen] public void sendSMS(com.db.portal.webservices.sms.SendSMS parameters, com.db.portal.webservices.sms.holders.SendSMSResponseHolder parameters)
    [clientgen] ^
    [clientgen] C:\Documents and Settings\amitkumar.patel\Local Settings\Temp\ws_SmsService_client.jar699419996\com\db\dbdi\gtbportal\sms\client\SMSPort_Stub.java:39: parameters is already defined in getStatus(com.db.portal.webservices.sms.GetStatus,com.db.portal.webservices.sms.holders.GetStatusResponseHolder)
    [clientgen] public void getStatus(com.db.portal.webservices.sms.GetStatus parameters, com.db.portal.webservices.sms.holders.GetStatusResponseHolder parameters)
    [clientgen] ^
    [clientgen] Note: C:\Documents and Settings\amitkumar.patel\Local Settings\Temp\ws_SmsService_client.jar699419996\com\db\dbdi\gtbportal\sms\client\SMSService.java uses or overrides a deprecated API.
    [clientgen] Note: Recompile with -deprecation for details.
    [clientgen] 4 errors
    *[*clientgen] java.io.IOException: Compiler failed executable.exec**
    [clientgen] at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.java:470)
    [clientgen] at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:328)
    [clientgen] at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:336)
    [clientgen] at weblogic.webservice.tools.build.internal.CompilerHelper.compileFiles(CompilerHelper.java:80)
    [clientgen] at weblogic.webservice.tools.build.internal.ClientGenImpl.compileStubs(ClientGenImpl.java:627)
    [clientgen] at weblogic.webservice.tools.build.internal.ClientGenImpl.generateStub(ClientGenImpl.java:572)
    [clientgen] at weblogic.webservice.tools.build.internal.ClientGenImpl.doClientGenFromWsdl(ClientGenImpl.java:409)
    [clientgen] at weblogic.webservice.tools.build.internal.ClientGenImpl.run(ClientGenImpl.java:340)
    [clientgen] at weblogic.ant.taskdefs.webservices.clientgen.ClientGenTask.doClientGen(ClientGenTask.java:351)
    [clientgen] at weblogic.ant.taskdefs.webservices.clientgen.ClientGenTask.execute(ClientGenTask.java:208)
    [clientgen] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    [clientgen] at org.apache.tools.ant.Task.perform(Task.java:364)
    [clientgen] at org.apache.tools.ant.Target.execute(Target.java:341)
    [clientgen] at org.apache.tools.ant.Target.performTasks(Target.java:369)
    [clientgen] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
    [clientgen] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
    [clientgen] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
    [clientgen] at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
    [clientgen] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
    [clientgen] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
    [clientgen] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)
    BUILD FAILED
    D:\Java_Src_10.1.0\ant\build_weblogic8.xml:34: weblogic.webservice.tools.build.WSBuildException: Compiler failed executable.exec - with nested exception:
    [java.io.IOException: Compiler failed executable.exec]
    Total time: 1 minute 12 seconds

    Hi,
    Can u Please post the WSDL..here. I remember long back i resolved this kind of issue...when i was getting "*parameters is already defined in - - -*" while using ClientGen.
    Once i will get the WSDL may be i can recall it...
    If u have any problem in Posting the WSDL..in Forums .. then let me know I will send my E-Mail Address...
    As far as i remember ..it usually happens when we Run ClientGen task of WLS81 ON the WebService/WSDL generated by WebLogic 9.x or Above. Please let me know if this is the Case with you as well... . I remember there is a Patch for it...for WLS8 ClientGen task...I dont remember the Patch Number Exactly.
    Just For testing:
    Just Use WLS9.x ClientGen task On the Same WSDL
    <taskdef name="clientgen" classname="weblogic.wsee.tools.anttasks.ClientGenTask" />
    I am sure you will not see this issue... because the issue is there only with WLS8 Clientgen...
    Thanks
    Jay SenSharma
    http://jaysensharma.wordpress.com (WebLogic Wonders Are Here)
    Edited by: Jay SenSharma on Jan 8, 2010 4:32 PM
    Edited by: Jay SenSharma on Jan 8, 2010 4:34 PM

  • How to Read and Generate XML file from java code.

    hi guys,
    how to read the xml file (Condition :we know only DTD or Shema only).
    How to Generate the new xml file ?(using Shema )
    And one more how directly Generate the xml from DB?
    Pleas with code or any URL

    Using XMLbeans you can generate Java objects from an XSD schema (perhaps DTDs aswell)
    Then you can create an instance of the Document object and ask it to write itself.
    This will create an XML document complient to the schema.
    XMLBeans generates a "type" safe DOM where you can only ever have a structure compilent to you schema.
    matfud

  • Hi I need this asap... "Java code to generate XML File from XML Schema"

    Hi all....
    I need this asap... "Java code to generate XML File from XML Schema i.e XML Schema Definition, XSD file".
    Thankz in advance...
    PS: I already posted in the afternoon... this is the second posting.

    take look at :
    http://sourceforge.net/projects/jaxme/
    this might help...

  • Java code to generate XML File from XML Schema

    Hi I need this asap... "Java code to generate XML File from XML Schema i.e XML Schema Definition, XSD file".
    Thankz in advance...

    JAXB has been available as an early release download for some time. There are also XML Binding packages available from Borland (JBuilder) and Castor. These tools create Java classes from a source document, xml,dtd etc. You can use these classes to marshal-unmarshal XML documents.
    Dave

  • How to generate .xsd file using jaxb generated java files

    Hi,
    We need to upgrade our applicatio to jdk1.6 which has jaxb2.0 class files in it. Our application has java files generated from .xsd using jaxb1.0.2 version. At present we dont have .xsd or .xml file with us.
    We decide to generate .xsd file by using jaxb1.0.2 generated java files. I tried using schemagen.exe given by jdk1.6 to generate .xsd file. It error out. Is there any other way to generate .xsd file ?
    pls let me know.
    thanks,
    Thiru

    Object-XML mapping is a new feature in JAXB 2.0. Classes generated with JAXB 1.0 won't generate a schema.
    Generate Java classes with JAXB 2.0 xjc.
    http://www.theregister.co.uk/2006/09/22/jaxb2_guide/

  • Generate XML File from table

    How to generate XML file from a table without using UTL_FILE that too in local machine...

    You downloaded the wrong XML Parser!
    XSQL requires Java Parser. Well, there's a copy included with the XSQL package so you actually don't need to do another download.
    You really don't need XSQL if you just want a XML file from DB, you just needed a XML SQL Utility. Download that and run the samples.

  • Trying to compile a .java file from another .java file

    Hello,
    I'm trying to compile a .java file from another .java file using Runtime.exec...
    String c[]=new String[3];
    c[0]="cmd.exe"; c[1]="/c" ; c[2]="javac Hello.java";
    Process p=Runtime.exec(c);
    If anyone can help me in atleast getting the command prompt when Runtime.exec("cmd.exe") is executed...that would be great...I tried out notepad.exe, calc, explorer instead of cmd.exe...all the commands display their respective windows..except cmd.exe...the command prompt doesnt appear...
    Please help me ASAP....
    Thanks for your help in advance...
    Regards.
    AKhila.

    try this. ur code will be compliled and will get .class file. but console won't appear. is it a must for u?
    public class Exec{
         public static void main(String a[]) throws Exception{
              String c[]=new String[3];
              c[0]="cmd.exe"; c[1]="/c" ; c[2]="javac Hello.java";
              Process p=Runtime.getRuntime().exec(c);
              // or Runtime.getRuntime().exec("javac Hello.java");

  • Errors generating Java classes from XML schema

    I received the following errors when generating Java classes from the schema located at: http://imsproject.org/xsd/ims_qti_rootv1p1.xsd and http://imsproject.org/xsd/ims_xml.xsd
    XML Spy v4 claims that the schema is well-formed and valid. Could this be a problem with the class generators, or is XML Spy not telling the truth?
    Thanks.
    D:\IMS_QTI\Java>java -classpath .;lib/xmlparserv2.jar;lib/xschema.jar;lib/classgen.jar oracle.xml.classgen.oracg -schema ims_qti_rootv1p1.xs
    d -outputDir src\com\icld\qti -package com.icld.qti -comment
    file:/D:/IMS_QTI/Java/ims_qti_rootv1p1.xsd<Line 235, Column 21>: XSD-2209: (Error) Duplicated definition for: 'attr.view'
    file:/D:/IMS_QTI/Java/ims_qti_rootv1p1.xsd<Line 303, Column 21>: XSD-2209: (Error) Duplicated definition for: 'grp.labels'
    file:/D:/IMS_QTI/Java/ims_qti_rootv1p1.xsd<Line 1834, Column -12236>: XSD-2209: (Error) Duplicated definition for: 'qtimetadatafield'
    file:/D:/IMS_QTI/Java/ims_qti_rootv1p1.xsd<Line 1834, Column -9642>: XSD-2209: (Error) Duplicated definition for: 'typeofsolutionType'
    file:/D:/IMS_QTI/Java/ims_qti_rootv1p1.xsd<Line 2252, Column -3019>: XSD-2026: (Error) Invalid attribute 'use' in element 'attribute'
    Error: Schema Class Generator failed to generate classes. oracle.xml.parser.schema.XSDException: Duplicated definition for: 'attr.view'

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Jinyu Wang ([email protected]):
    Which version are you using? I can't reproduce the error with 9.0.2B version.<HR></BLOCKQUOTE>
    Thanks for having a look at the problem. I am using the 9.0.2.0B version with Java 2 Standard Edition Build 1.3.1-b24. The classgen -version option returns 9.0.2.0b-beta - and xmlparserv2.jar and xschema.jar are from the same distribution. Running the corresponding DTD from the same source work fine - I'm just havinf this problem with the XSD. Anything else I should look at?

  • About generating Java classes from XSD Schema ???

    I need a powerfull tool to generate Java classes from XML Schema. I want that generated classes to have the option to validate XML(to be JAXP1.2 compliant).
    I used XML Spy 5.4 but the generated classes can't validate an XML file.
    Can you help me with other tools that:
    - generate Java classes from XSD
    - generate sample XML from XSD
    - are JAXP1.2 compliant(validate a XML file with a schema)
    Thanks.

    You can also use Castor: http://www.castor.org
    It generates classes from XML Schemas and enables data
    binding without writing any line of a fuckin SAX
    parser :-)I evaluated Castor and JAXB and while JAXB isn't perfect, it's got some things over Castor. Castor almost looks abandonded when I go to the site. The documentation just sort of trails off.

Maybe you are looking for

  • Issue in calling webdynpro for loading flat file in IP

    Hello, We have implemented the How-To load flat files in IP paper and we are facing an issue in that. The generated webdynpro runs on ABAP Application server but we need to call this from a Web template which runs on portal server. These two servers

  • Older disk utility question

    I can't find my installation disks for 10.4. The most recent one I can find is 10.2 I ran verify disk on Onyx and it told me the disk needed repair and that I needed to run disk utility from the cd. 1. is there any difference between the 10.2 disk ut

  • Ok im having a problem with the mini ipod thing...

    Ok first of all ill tell you what happened first. first I connected my Ipod and updated it. after that I put it on hold to let it charge. I left it for like 5 mins. the it didn't say "don't disconnect" so I unplugged it then when I tried to turn it o

  • Cisco CSM and WCS on same server

    Hi, Currently we are running Cisco CSM and Cisco WCS applications on different servers. Please let me know can it possible to install Cisco CSM and Cisco WCS on one server. Regards,

  • Connection GP WebDynpro and KM

    Hi All, how can I get access to the KM API in a GP Web Dynpro form. NWDS doesnt show an Error in delepment mode. But when Im trying to Build the Application I got the following Error message: [javac] Compiling 22 source files to C:\Documents and Sett