1 Reply Latest reply on Oct 28, 2005 8:49 AM by Thomas Diesler

    Problem generating the Java types from WSDL file containing

    sylvain furt Newbie

      I am trying to develop a Web service client from a WSDL available online. I used the WSCOMPILE tool that comes with JWSDP 1.6 to generate the stubs and ... but I noticed that some of the simple and complex types are not created.

      the Primary WSDL file looks like that:
      <definitions
      name="FNCEWS35DIME"
      targetNamespace="http://www.filenet.com/ns/fnce/2005/02/ws/DIME/wsdl"
      xmlns="http://schemas.xmlsoap.org/wsdl/"
      xmlns:xsd="http://www.w3.org/2001/XMLSchema"
      xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
      xmlns:ddef="http://www.filenet.com/ns/fnce/2005/02/ws/DIME/wsdl"
      xmlns:cdef="http://www.filenet.com/ns/fnce/2005/02/ws/wsdl"
      xmlns:ctyp="http://www.filenet.com/ns/fnce/2005/02/ws/schema"
      xmlns:dime="http://schemas.xmlsoap.org/ws/2002/04/dime/wsdl/"
      xmlns:ref="http://schemas.xmlsoap.org/ws/2002/04/reference/" >





      <!-- BUGBUG this is in lieu of a proper import of the ref:location
      definition, due to a problem with the WSE 2.0 pre-release -->
      <xsd:schema
      targetNamespace="http://schemas.xmlsoap.org/ws/2002/04/reference/">
      <xsd:attribute name="location" type="xsd:anyURI" />
      </xsd:schema>

      <xsd:schema
      xmlns="http://www.filenet.com/ns/fnce/2005/02/ws/DIME/schema"
      targetNamespace="http://www.filenet.com/ns/fnce/2005/02/ws/DIME/schema"
      elementFormDefault="qualified">

      <xsd:import namespace="http://www.filenet.com/ns/fnce/2005/02/ws/schema"/>

      <xsd:import namespace="http://schemas.xmlsoap.org/ws/2002/04/reference/"/>

      <xsd:complexType name="DIMEAttachmentReference">
      <xsd:simpleContent>
      <xsd:extension base="xsd:base64Binary">
      <xsd:attribute ref="ref:location"/>
      </xsd:extension>
      </xsd:simpleContent>
      </xsd:complexType>

      <xsd:complexType name="DIMEContent">
      <xsd:complexContent>
      <xsd:extension base="ctyp:ContentType">
      <xsd:sequence>
      <xsd:element name="Attachment" type="DIMEAttachmentReference"/>
      </xsd:sequence>
      </xsd:extension>
      </xsd:complexContent>
      </xsd:complexType>

      </xsd:schema>




      the complex types are not been transformed into java classes and the majority of the types defined in the imported WSDL file are not been genertated as well.

      I am using the following wscompile parameter and options:
      wscompile -gen:client -f:rpcliteral -mapping jaxrpc-mapping.xml -keep config.xml

      Is there an option for WSCOMPILE that I need to add or maybe in the config file???

      Please help

      thanks