How Do I: Create a Web Service Control from a WSDL File Generated by WebLogic Server 6.1?

WebLogic Server 6.1 generates WSDL files using the version of XML Schema that was valid at the time WebLogic 6.1 was released (referred to as "schema 99"). WebLogic Workshop expects WSDL files that comply with the current XML Schema specification: schema 2001.

To Convert a Schema 99 WSDL File to Schema 2001

  1. In all <schema> definitions, make sure that any <attribute> elements in <complexType> definitions appear after the <sequence> tag (if present), not intermixed. For example:
    <schema>
      <complexType>
        <attribute>
        <attribute>
        <sequence>
          <element>
          <element>
        </sequence>
      </complexType>
    </schema>
    
    must be changed to:
    <schema>
      <complexType>
        <sequence>
          <element>
          <element>
        </sequence>
        <attribute>
        <attribute>
      </complexType>
    </schema>
    
  2. Declare the XML namespace tns to refer to the target namespace of the WSDL. So a WSDL that begins with the following:
    <definitions 
    targetNamespace="java:com.mycompany.webservices.vehicle" 
    ...
    >
    
    should also include a definition of the tns namespace, as shown in the following example:
    <definitions 
    targetNamespace="java:com.mycompany.webservices.vehicle" 
    ...
    xmlns:tns="java:com.mycompany.webservices.vehicle"
    >
    
  3. Convert all <date> types in the WebLogic Server 6.1 WSDL to <datetime>.
  4. Update the WSDL file to use the current schema. Change the following code:
    xmlns="http://www.w3.org/1999/XMLSchema"
    
    to:
    xmlns="http://www.w3.org/2001/XMLSchema"
    
  5. Once you have made these changes to the WSDL file, you should be able to use it to create a Web Service control in WebLogic Workshop.

Related Topics

How Do I: Use a WebLogic Server Web Service?

Web Service Control