cancel
Showing results for 
Search instead for 
Did you mean: 

External Definition

Former Member
0 Kudos

Where are these definitions created? Can they be created in the IR? Could anyone send a code of this as a reference.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Dear Aprajitha,

You can create External Definitons in IR.You can use External definitons when you want to import external structure. No need to create Data Type. Below is the sample wsdl file. Just import this in external definition. You can see the structure in Mapping clearly.

<?xml version="1.0" encoding="UTF-8"?>

<wsdl:definitions targetNamespace="http://webservices.imacination.com/distance/Distance.jws" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:intf="http://webservices.imacination.com/distance/Distance.jws" xmlns:impl="http://webservices.imacination.com/distance/Distance.jws">

<wsdl:message name="getLongitudeResponse">

<wsdl:part name="getLongitudeReturn" type="xsd:double"/>

</wsdl:message>

<wsdl:message name="getLongitudeRequest">

<wsdl:part name="zip" type="xsd:string"/>

</wsdl:message>

<wsdl:message name="getLatitudeRequest">

<wsdl:part name="zip" type="xsd:string"/>

</wsdl:message>

<wsdl:message name="getLatitudeResponse">

<wsdl:part name="getLatitudeReturn" type="xsd:double"/>

</wsdl:message>

<wsdl:message name="getCityResponse">

<wsdl:part name="getCityReturn" type="xsd:string"/>

</wsdl:message>

<wsdl:message name="getCityRequest">

<wsdl:part name="zip" type="xsd:string"/>

</wsdl:message>

<wsdl:message name="getLocationResponse">

<wsdl:part name="getLocationReturn" type="xsd:string"/>

</wsdl:message>

<wsdl:message name="getStateResponse">

<wsdl:part name="getStateReturn" type="xsd:string"/>

</wsdl:message>

<wsdl:message name="getStateRequest">

<wsdl:part name="zip" type="xsd:string"/>

</wsdl:message>

<wsdl:message name="getLocationRequest">

<wsdl:part name="zip" type="xsd:string"/>

</wsdl:message>

<wsdl:message name="getDistanceResponse">

<wsdl:part name="getDistanceReturn" type="xsd:double"/>

</wsdl:message>

<wsdl:message name="getDistanceRequest">

<wsdl:part name="fromZip" type="xsd:string"/>

<wsdl:part name="toZip" type="xsd:string"/>

</wsdl:message>

<wsdl:portType name="Distance">

<wsdl:operation name="getState" parameterOrder="zip">

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

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

</wsdl:operation>

<wsdl:operation name="getLocation" parameterOrder="zip">

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

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

</wsdl:operation>

<wsdl:operation name="getCity" parameterOrder="zip">

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

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

</wsdl:operation>

<wsdl:operation name="getDistance" parameterOrder="fromZip toZip">

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

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

</wsdl:operation>

<wsdl:operation name="getLatitude" parameterOrder="zip">

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

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

</wsdl:operation>

<wsdl:operation name="getLongitude" parameterOrder="zip">

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

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

</wsdl:operation>

</wsdl:portType>

<wsdl:binding name="DistanceSoapBinding" type="impl:Distance">

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

<wsdl:operation name="getState">

<wsdlsoap:operation soapAction=""/>

<wsdl:input name="getStateRequest">

<wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://DefaultNamespace"/>

</wsdl:input>

<wsdl:output name="getStateResponse">

<wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://webservices.imacination.com/distance/Distance.jws"/>

</wsdl:output>

</wsdl:operation>

<wsdl:operation name="getLocation">

<wsdlsoap:operation soapAction=""/>

<wsdl:input name="getLocationRequest">

<wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://DefaultNamespace"/>

</wsdl:input>

<wsdl:output name="getLocationResponse">

<wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://webservices.imacination.com/distance/Distance.jws"/>

</wsdl:output>

</wsdl:operation>

<wsdl:operation name="getCity">

<wsdlsoap:operation soapAction=""/>

<wsdl:input name="getCityRequest">

<wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://DefaultNamespace"/>

</wsdl:input>

<wsdl:output name="getCityResponse">

<wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://webservices.imacination.com/distance/Distance.jws"/>

</wsdl:output>

</wsdl:operation>

<wsdl:operation name="getDistance">

<wsdlsoap:operation soapAction=""/>

<wsdl:input name="getDistanceRequest">

<wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://DefaultNamespace"/>

</wsdl:input>

<wsdl:output name="getDistanceResponse">

<wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://webservices.imacination.com/distance/Distance.jws"/>

</wsdl:output>

</wsdl:operation>

<wsdl:operation name="getLatitude">

<wsdlsoap:operation soapAction=""/>

<wsdl:input name="getLatitudeRequest">

<wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://DefaultNamespace"/>

</wsdl:input>

<wsdl:output name="getLatitudeResponse">

<wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://webservices.imacination.com/distance/Distance.jws"/>

</wsdl:output>

</wsdl:operation>

<wsdl:operation name="getLongitude">

<wsdlsoap:operation soapAction=""/>

<wsdl:input name="getLongitudeRequest">

<wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://DefaultNamespace"/>

</wsdl:input>

<wsdl:output name="getLongitudeResponse">

<wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://webservices.imacination.com/distance/Distance.jws"/>

</wsdl:output>

</wsdl:operation>

</wsdl:binding>

<wsdl:service name="DistanceService">

<wsdl:port name="Distance" binding="impl:DistanceSoapBinding">

<wsdlsoap:address location="http://webservices.imacination.com/distance/Distance.jws"/>

</wsdl:port>

</wsdl:service>

</wsdl:definitions>

Answers (6)

Answers (6)

Former Member
0 Kudos

Hi,

These External Definitions, helps to import third-party schemas. Its supports for DTD,XSD and WSDL formats.

Thanks.

Boopathi

Former Member
0 Kudos

Hi,

External Definitions are used when you want to import an external message structure to your namespace. They are created in the IR and are used for importing XSD, DTD and WSDL files.

Regards,

Geetha J.

Former Member
0 Kudos

Hi Aparajita,

An external definiton is a way of defining the message structure at run time, as in WSDl and XSD.If u already have a structure in this form u can import it in IR rather doin it manually from data type . U can use it in message interface as well as to define mapings.

If u want to see how it looks like ...just use a simple wsdl like currency coverter.

import it as external definiton..then u will see the following tabs :

Once you have selected the file, use the tab pages to call up the following information:

Imported Document: Your file in text format.

Messages: The message schema that have been extracted using the selected mode.

WSDL: The result of the conversion to WSDL.

External References: Overview of the references used in the imported document. This will show any other imported documents that have been recognized

Should help u out

Edited by: Mohd Tauseef Ibrahim on Jul 10, 2008 6:40 AM

Former Member
0 Kudos

Hi Aparjitha,

There is a series of standard schema for describing the message structure at runtime. WSDL (Web Service Description Language), XSD (XML Schema Definition Language), or DTDs (Document Type Definitions) are often used to describe message schema. If a description of the message structure already exists in one of the above formats, you can use it in the Integration Repository by importing it as an external definition rather than re-entering it manually using the data type editor.

http://help.sap.com/saphelp_nw04/helpdata/en/26/9e97b0f525d743882936c2d6f375c7/frameset.htm

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/50171256-1ee2-2a10-3f84-ddecf098...

if found worth pls do the req

Thanx

Sampath

Former Member
0 Kudos

hi

external definitions are created in the IR...generally these are mean to import the external XSD,WSDL,DTD into the IR...

reward points if helpfull

Thanks

kummari

former_member194786
Active Contributor
0 Kudos