Tuesday, July 22, 2008

Importing/Exporting WSDL Files

Importing/Exporting WSDL Files How to

Contact us...

How to import a WSDL

Related links

Importing WSDL files

Importing and exporting WSDL files

Import a file

In the business integration view, right click on a library (i.e Resources) or module and select Import...

Select an Import source

  1. Expand Business Integration folder and select WSDL/Interface.
  2. Click Next.

Set WSDL/Interface Import

  1. Enter the location of the WSDL file you want to import (Import from: ) or click Browse... to find the WSDL file in your computer/network file system.
  2. Select the WSDL file you want to import.
  3. Check Import dependent resources.
  4. Click Finish.

Note:

use the wsdl file found in IBM Websphere Integration Developer 6.1.2.
E:Program FilesIBMSDP70Shared

pluginscom.ibm.wbit.samples.content_6.1.200.v20080615_0659

artifactsstockquotewsdl

WSDL files importation generated artifacts

After WSDL files importation, the following artifacts were generated/added to the library (i.e Resources).

  1. Business objects were created/added to the Data Types folder
  2. Interfaces were created/added to the Interfaces folder
  3. Web Services Ports folder was created/added including the specific ports
Before After

RealtimeService.wsdl file

You can copy this into a notepad file and then change the extension from .txt to .wsdl file.

You can then import it as a WSDL file.

<?xml version="1.0" encoding="UTF-8" ?>
- <!--
 @copyright_start@      Licensed Materials - Property of IBM      5724-I82, 5724-L01, 5655-N53, 5655-R15      (C) Copyright IBM Corporation 2005. All Rights Reserved.      US Government Users Restricted Rights- Use, duplication or disclosure      restricted by GSA ADP Schedule Contract with IBM Corp.      @copyright_end@ 
-->
- <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://stockquote.samp.sibx.websphere.ibm.com/RealtimeService/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="RealtimeService" targetNamespace="http://stockquote.samp.sibx.websphere.ibm.com/RealtimeService/">
- <wsdl:types>
- <xsd:schema targetNamespace="http://stockquote.samp.sibx.websphere.ibm.com/RealtimeService/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
- <xsd:element name="symbol">
- <xsd:complexType>
- <xsd:sequence maxOccurs="1" minOccurs="1">
<xsd:element maxOccurs="1" minOccurs="1" name="symbol" type="xsd:string" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
- <xsd:element name="value">
- <xsd:complexType>
- <xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="1" name="value" type="xsd:float" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
</wsdl:types>
- <wsdl:message name="getQuoteResponse">
<wsdl:part name="value" type="xsd:float" />
</wsdl:message>
- <wsdl:message name="getQuoteRequest">
<wsdl:part name="symbol" type="xsd:string" />
</wsdl:message>
- <wsdl:portType name="RealtimeServicePortType">
- <wsdl:operation name="getQuote">
<wsdl:input message="tns:getQuoteRequest" />
<wsdl:output message="tns:getQuoteResponse" />
</wsdl:operation>
</wsdl:portType>
- <wsdl:binding name="RealtimeServiceSOAP" type="tns:RealtimeServicePortType">
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" />
- <wsdl:operation name="getQuote">
<soap:operation soapAction="http://stockquote.samp.sibx.websphere.ibm.com/RealtimeService/getQuote" />
- <wsdl:input>
<soap:body use="literal" />
</wsdl:input>
- <wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
- <wsdl:service name="RealtimeService">
- <wsdl:port binding="tns:RealtimeServiceSOAP" name="RealtimeServiceSOAP">
<soap:address location="http://localhost:9080/RealtimeService/services/RealtimeServiceSOAP" />
</wsdl:port>
</wsdl:service>
</wsdl:definitions>

DelayedService.wsdl file

You can copy this into a notepad file and then change the extension from .txt to .wsdl file.

You can then import it as a WSDL file.

<?xml version="1.0" encoding="UTF-8" ?>
- <!--
 @copyright_start@      Licensed Materials - Property of IBM      5724-I82, 5724-L01, 5655-N53, 5655-R15      (C) Copyright IBM Corporation 2005. All Rights Reserved.      US Government Users Restricted Rights- Use, duplication or disclosure      restricted by GSA ADP Schedule Contract with IBM Corp.      @copyright_end@ 
-->
- <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://stockquote.samp.sibx.websphere.ibm.com/DelayedService/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="DelayedService" targetNamespace="http://stockquote.samp.sibx.websphere.ibm.com/DelayedService/">
- <wsdl:types>
- <xsd:schema targetNamespace="http://stockquote.samp.sibx.websphere.ibm.com/DelayedService/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
- <xsd:element name="symbol">
- <xsd:complexType>
- <xsd:sequence maxOccurs="1" minOccurs="1">
<xsd:element maxOccurs="1" minOccurs="1" name="symbol" type="xsd:string" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
- <xsd:element name="value">
- <xsd:complexType>
- <xsd:sequence maxOccurs="1" minOccurs="1">
<xsd:element maxOccurs="1" minOccurs="1" name="value" type="xsd:float" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
</wsdl:types>
- <wsdl:message name="getQuoteResponse">
<wsdl:part name="value" type="xsd:float" />
</wsdl:message>
- <wsdl:message name="getQuoteRequest">
<wsdl:part name="symbol" type="xsd:string" />
</wsdl:message>
- <wsdl:portType name="DelayedServicePortType">
- <wsdl:operation name="getQuote">
<wsdl:input message="tns:getQuoteRequest" />
<wsdl:output message="tns:getQuoteResponse" />
</wsdl:operation>
</wsdl:portType>
- <wsdl:binding name="DelayedServiceSOAP" type="tns:DelayedServicePortType">
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" />
- <wsdl:operation name="getQuote">
<soap:operation soapAction="http://stockquote.samp.sibx.websphere.ibm.com/DelayedService/getQuote" />
- <wsdl:input>
<soap:body use="literal" />
</wsdl:input>
- <wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
- <wsdl:service name="DelayedService">
- <wsdl:port binding="tns:DelayedServiceSOAP" name="DelayedServiceSOAP">
<soap:address location="http://localhost:9080/DelayedService/services/DelayedServiceSOAP" />
</wsdl:port>
</wsdl:service>
</wsdl:definitions>

No comments: