Você está na página 1de 20

(c) eaDocX Ltd 2011

Test & Sample Documents


WSDL Example
This document uses content from the EAExample model, which is (c) Sparx Systems.
It shows how WSDL definitions, stored in an EA model, can be printed using eaDocX.
Most of the useful tagged values have been included, but there are a large number of tagged
values defined for WSDL elements, so you may need to add to this list.

Section: docInfo

Generated
on

At

Author

Repository

21/03/2013

10:12

eaDocX
Development

C:\Users\Ian\Google Drive\1 - Marketing\Sample


documents and models\Domain-specific
examples\EAExample.eap

End

Page 1

WSDL Example

(c) eaDocX Ltd 2011

Page 2

WSDL Example

(c) eaDocX Ltd 2011


Section: Section1

1 WSDL
pkg WSDL
WSDLnamespace
WSDLPackage1

WSDLnamespace
WSDLPackage2

WSDLnamespace
WSDLPackage3

+ SampleWSDLFile1

+ SampleWSDLFile2

+ SampleWSDLFile3

+ Types

+ Messages

+ Types

+ Messages

+ PortTypes

+ Messages

+ PortTypes

+ Bindings

+ PortTypes

+ Bindings

+ Services

+ Bindings

+ Services

+ Services

XSDschema
Schema
+ InPrm
+ OtPrm

Figure 1 : WSDL

1.1 WSDLPackage1
class Ov erv iew

TODO: Add your WSDL Types, Messages, Portypes, Binding and Services by dragging elements from the WSDL
toolbox. Double-click the packages below to navigate between the relevant diagrams.
You can automatically generate WSDLs from this model. Drag WSDL components from the toolbox onto this
diagram and specify which services should be exposed.

XSDschema
Types
+ InputParameters

Messages

PortTypes

Bindings

+ SampleInput

+ SamplePortTypeHTTP

+ SampleBindingHTTP

+ SampleOutput

+ SamplePortTypeSOAP

+ SampleBindingSOAP

Serv ices
+ SampleService

+ OutputParameters

WSDL
SampleWSDLFile1
SampleService

Generate this WSDL by selecting


the WSDLnamespace in the Project
View and using the menu option
Project | Web Services | Generate
WSDL

Figure 2 : Overview

Page 3

WSDL Example

(c) eaDocX Ltd 2011


1.1.1

WSDL - SampleWSDLFile1

1.1.1.1 Children

Name

Description

SampleService

1.1.2

Types

class Types

TODO : Drag Elements, Simple Types and Complex Types from


the Schema toolbox to add types for your WSDL

XSDcomplexType
InputParameters

XSDcomplexType
OutputParameters
XSDelement
+ externalElement :OtPrm

externalElement is referring to the XSDsimpleType


OtPrm in the package Schema

Figure 3 : Types
1.1.2.1 XSDcomplexType - InputParameters
1.1.2.2 XSDcomplexType - OutputParameters
1.1.2.2.1 Attributes

Attributes

Details

externalElement

Page 4

WSDL Example

(c) eaDocX Ltd 2011


1.1.3

Messages

class Messages

TODO : Create your WSDL messages by dragging


Message and Message Parts from the WSDL toolbox.
Select types for the Message Parts from those defined
in the WSDLTypes package

WSDLmessage
SampleInput
+

WSDLmessage
SampleOutput

InputParam :InputParameters

ResponseParam :OutputParameters

Figure 4 : Messages

WSDL Message

Description Attributes

SampleOutput

ResponseParam

SampleInput

InputParam

1.1.4

PortTypes

class PortTypes

TODO : Create additional PortTypes by dragging PortType


elements from the WSDL toolbox. PortTypes must be defined for
use by the Bindings package.

WSDLportType
SamplePortTypeHTTP
+

GetSampleHTTP(SampleInput, SampleOutput*)

WSDLportType
SamplePortTypeSOAP
+

GetSampleSOAP(SampleInput, SampleOutput*)

Figure 5 : PortTypes
WSDL Port Type: SamplePortTypeSOAP

Page 5

WSDL Example

(c) eaDocX Ltd 2011


1.1.4.1.1 Methods

Methods

Details

Parameter Summary
(in) Request: SampleInput

GetSampleSOAP

(out) Response:
SampleOutput

WSDL Port Type: SamplePortTypeHTTP


1.1.4.1.2 Methods

Methods

Details

Parameter Summary
(in) Request: SampleInput

GetSampleHTTP

1.1.5

(out) Response:
SampleOutput

Bindings

class Bindings

TODO : Create additional Bindings by dragging Binding elements from


the WSDL toolbox. Each Binding must realize one of the PortType
interfaces defined in the PortTypes package.

WSDLportType
PortTypes::SamplePortTypeHTTP
+

GetSampleHTTP(SampleInput, SampleOutput*)

WSDLportType
PortTypes::SamplePortTypeSOAP
+

GetSampleSOAP(SampleInput, SampleOutput*)

SamplePortTypeHTTP

SamplePortTypeSOAP

WSDLbinding
SampleBindingHTTP

WSDLbinding
SampleBindingSOAP

GetSampleHTTP(SampleInput, SampleOutput*)
tags

protocol = http
verb = GET

GetSampleSOAP(SampleInput, SampleOutput*)

tags
protocol = soap
style = document
transport = http://schemas.xmlsoap.org/soap/http

Figure 6 : Bindings

Page 6

WSDL Example

(c) eaDocX Ltd 2011


1.1.5.1 Class - WSDLbinding - SampleBindingSOAP
1.1.5.1.1 Methods

Methods

Details

Parameter Summary
(in) Request: SampleInput

GetSampleSOAP

(out) Response:
SampleOutput

Protocol: soap
Style: document
Transport: http://schemas.xmlsoap.org/soap/http
1.1.5.2 Class - WSDLbinding - SampleBindingHTTP
1.1.5.2.1 Methods

Methods

Details

Parameter Summary
(in) Request: SampleInput

GetSampleHTTP

(out) Response:
SampleOutput

Protocol: http
Verb: GET

Page 7

WSDL Example

(c) eaDocX Ltd 2011


1.1.6

Services

class SampleServ ice

TODO : Create additional services by dragging Service elements from the WSDL toolbox. You may
specify Service Ports for each Binding defined in the Bindings package.

WSDLbinding
Bindings::SampleBindingHTTP

WSDLbinding
Bindings::SampleBindingSOAP
+

GetSampleSOAP(SampleInput, SampleOutput*)

GetSampleHTTP(SampleInput, SampleOutput*)

SamplePortHTTP

SamplePortSOAP

WSDLser...
SampleServ ice

Figure 7 : SampleService

WDSL Service

Description

SampleService

1.2 WSDLPackage2
class Ov erv iew

TODO: Add your WSDL Types, Messages, Portypes, Binding and Services by dragging elements from the WSDL
toolbox. Double-click the packages below to navigate between the relevant diagrams.
You can automatically generate WSDLs from this model. Drag WSDL components from the toolbox onto this
diagram and specify which services should be exposed.

Messages

PortTypes

Bindings

+ SampleInput

+ SamplePortTypeHTTP

+ SampleBindingHTTP

+ SampleOutput

+ SamplePortTypeSOAP

+ SampleBindingSOAP

WSDL
SampleWSDLFile2
SampleService

Serv ices
+ SampleService

Generate this WSDL by selecting


the WSDLnamespace in the Project
View and using the menu option
Project | Web Services | Generate
WSDL

Page 8

WSDL Example

(c) eaDocX Ltd 2011


Figure 8 : Overview
1.2.1

WSDL - SampleWSDLFile2

1.2.1.1 Children

Name

Description

SampleService

1.2.2

Messages

class Messages

TODO : Create your WSDL messages by dragging


Message and Message Parts from the WSDL toolbox.
Select types for the Message Parts from those defined
in the WSDLTypes package

WSDLmessage
SampleInput
+

InputParam :InPrm

WSDLmessage
SampleOutput
+

The WSDL Message Part InputParam is


referring to the XSDsimpleType InPrm in
the package Schema

ResponseParam :OtPrm

The WSDL Message Part ResponseParam is


referring to the XSDsimpleType OtPrm in the
package Schema

Figure 9 : Messages

WSDL Message

Description Attributes

SampleInput

InputParam

SampleOutput

ResponseParam

Page 9

WSDL Example

(c) eaDocX Ltd 2011


1.2.3

PortTypes

class PortTypes

TODO : Create additional PortTypes by dragging PortType


elements from the WSDL toolbox. PortTypes must be defined for
use by the Bindings package.

WSDLportType
SamplePortTypeHTTP
+

GetSampleHTTP(SampleInput, SampleOutput*)

WSDLportType
SamplePortTypeSOAP
+

GetSampleSOAP(SampleInput, SampleOutput*)

Figure 10 : PortTypes
WSDL Port Type: SamplePortTypeSOAP
1.2.3.1.1 Methods

Methods

Details

Parameter Summary
(in) Request: SampleInput

GetSampleSOAP

(out) Response:
SampleOutput

WSDL Port Type: SamplePortTypeHTTP


1.2.3.1.2 Methods

Methods

Details

Parameter Summary
(in) Request: SampleInput

GetSampleHTTP

(out) Response:
SampleOutput

Page 10

WSDL Example

(c) eaDocX Ltd 2011


1.2.4

Bindings

class Bindings

TODO : Create additional Bindings by dragging Binding elements from


the WSDL toolbox. Each Binding must realize one of the PortType
interfaces defined in the PortTypes package.

WSDLportType
PortTypes::SamplePortTypeHTTP
+

GetSampleHTTP(SampleInput, SampleOutput*)

WSDLportType
PortTypes::SamplePortTypeSOAP
+

GetSampleSOAP(SampleInput, SampleOutput*)

SamplePortTypeHTTP

SamplePortTypeSOAP

WSDLbinding
SampleBindingHTTP

WSDLbinding
SampleBindingSOAP

GetSampleHTTP(SampleInput, SampleOutput*)
tags

protocol = http
verb = GET

GetSampleSOAP(SampleInput, SampleOutput*)

tags
protocol = soap
style = document
transport = http://schemas.xmlsoap.org/soap/http

Figure 11 : Bindings
1.2.4.1 Class - WSDLbinding - SampleBindingSOAP
1.2.4.1.1 Methods

Methods

Details

Parameter Summary
(in) Request: SampleInput

GetSampleSOAP

(out) Response:
SampleOutput

Protocol: soap
Style: document
Transport: http://schemas.xmlsoap.org/soap/http
1.2.4.2 Class - WSDLbinding - SampleBindingHTTP
1.2.4.2.1 Methods

Methods

Details

Parameter Summary
Page 11

WSDL Example

(c) eaDocX Ltd 2011

Methods

Details

Parameter Summary
(in) Request: SampleInput

GetSampleHTTP

(out) Response:
SampleOutput

Protocol: http
Verb: GET
1.2.5

Services

class SampleServ ice

TODO : Create additional services by dragging Service elements from the WSDL toolbox. You may
specify Service Ports for each Binding defined in the Bindings package.

WSDLbinding
Bindings::SampleBindingHTTP

WSDLbinding
Bindings::SampleBindingSOAP
+

GetSampleSOAP(SampleInput, SampleOutput*)

GetSampleHTTP(SampleInput, SampleOutput*)

SamplePortHTTP

SamplePortSOAP

WSDLser...
SampleServ ice

Figure 12 : SampleService

WDSL Service

Description

SampleService

Page 12

WSDL Example

(c) eaDocX Ltd 2011

1.3 WSDLPackage3
class Ov erv iew

TODO: Add your WSDL Types, Messages, Portypes, Binding and Services by dragging elements from the WSDL
toolbox. Double-click the packages below to navigate between the relevant diagrams.
You can automatically generate WSDLs from this model. Drag WSDL components from the toolbox onto this
diagram and specify which services should be exposed.

XSDschema
Types

Messages

+ InputParameters

PortTypes

Bindings

+ SampleInput

+ SamplePortTypeHTTP

+ SampleBindingHTTP

+ SampleOutput

+ SamplePortTypeSOAP

+ SampleBindingSOAP

Serv ices
+ SampleService

+ OutputParameters

WSDL
SampleWSDLFile3
SampleService

Generate this WSDL by selecting


the WSDLnamespace in the Project
View and using the menu option
Project | Web Services | Generate
WSDL

Figure 13 : Overview
1.3.1

WSDL - SampleWSDLFile3

1.3.1.1 Children

Name

Description

SampleService

1.3.2

Types

class Types

TODO : Drag Elements, Simple Types and Complex Types from


the Schema toolbox to add types for your WSDL

XSDcomplex...
InputParameters

XSDtopLevelElement
OutputParameters

XSDcomplex...
OutputParameters::
ComplexType1

Page 13

WSDL Example

(c) eaDocX Ltd 2011


Figure 14 : Types
1.3.2.1 XSDcomplexType - InputParameters
1.3.3

Messages

class Messages

TODO : Create your WSDL messages by dragging


Message and Message Parts from the WSDL toolbox.
Select types for the Message Parts from those defined
in the WSDLTypes package

WSDLmessage
SampleInput
+

InputParam :InputParameters

The WSDL Message Part InputParam is referring


to an XSDcomplexType class InputParameters in
the Types package

WSDLmessage
SampleOutput
+

ResponseParam :OutputParameters

The WSDL Message Part ResponseParam is


referring to an XSDtopLevelElement class
OutputParameters in the Types package

Figure 15 : Messages

WSDL Message

Description Attributes

SampleInput

InputParam

SampleOutput

ResponseParam

Page 14

WSDL Example

(c) eaDocX Ltd 2011


1.3.4

PortTypes

class PortTypes

TODO : Create additional PortTypes by dragging PortType


elements from the WSDL toolbox. PortTypes must be defined for
use by the Bindings package.

WSDLportType
SamplePortTypeHTTP
+

GetSampleHTTP(SampleInput, SampleOutput*)

WSDLportType
SamplePortTypeSOAP
+

GetSampleSOAP(SampleInput, SampleOutput*)

Figure 16 : PortTypes
WSDL Port Type: SamplePortTypeSOAP
1.3.4.1.1 Methods

Methods

Details

Parameter Summary
(in) Request: SampleInput

GetSampleSOAP

(out) Response:
SampleOutput

WSDL Port Type: SamplePortTypeHTTP


1.3.4.1.2 Methods

Methods

Details

Parameter Summary
(in) Request: SampleInput

GetSampleHTTP

(out) Response:
SampleOutput

Page 15

WSDL Example

(c) eaDocX Ltd 2011


1.3.5

Bindings

class Bindings

TODO : Create additional Bindings by dragging Binding elements from


the WSDL toolbox. Each Binding must realize one of the PortType
interfaces defined in the PortTypes package.

WSDLportType
PortTypes::SamplePortTypeHTTP
+

GetSampleHTTP(SampleInput, SampleOutput*)

WSDLportType
PortTypes::SamplePortTypeSOAP
+

GetSampleSOAP(SampleInput, SampleOutput*)

SamplePortTypeHTTP

SamplePortTypeSOAP

WSDLbinding
SampleBindingHTTP

WSDLbinding
SampleBindingSOAP

GetSampleHTTP(SampleInput, SampleOutput*)
tags

protocol = http
verb = GET

GetSampleSOAP(SampleInput, SampleOutput*)

tags
protocol = soap
style = document
transport = http://schemas.xmlsoap.org/soap/http

Figure 17 : Bindings
1.3.5.1 Class - WSDLbinding - SampleBindingSOAP
1.3.5.1.1 Methods

Methods

Details

Parameter Summary
(in) Request: SampleInput

GetSampleSOAP

(out) Response:
SampleOutput

Protocol: soap
Style: document
Transport: http://schemas.xmlsoap.org/soap/http
1.3.5.2 Class - WSDLbinding - SampleBindingHTTP
1.3.5.2.1 Methods

Methods

Details

Parameter Summary
Page 16

WSDL Example

(c) eaDocX Ltd 2011

Methods

Details

Parameter Summary
(in) Request: SampleInput

GetSampleHTTP

(out) Response:
SampleOutput

Protocol: http
Verb: GET
1.3.6

Services

class SampleServ ice

TODO : Create additional services by dragging Service elements from the WSDL toolbox. You may
specify Service Ports for each Binding defined in the Bindings package.

WSDLbinding
Bindings::SampleBindingHTTP

WSDLbinding
Bindings::SampleBindingSOAP
+

GetSampleSOAP(SampleInput, SampleOutput*)

GetSampleHTTP(SampleInput, SampleOutput*)

SamplePortHTTP

SamplePortSOAP

WSDLser...
SampleServ ice

Figure 18 : SampleService

WDSL Service

Description

SampleService

1.4 Schema
class Schema
string
XSDsimple...
InPrm

string
XSDsimple...
OtPrm

Page 17

WSDL Example

(c) eaDocX Ltd 2011


Figure 19 : Schema

XD Simple Types

Description

OtPrm
InPrm

End

Appendix A
It contains the following Word styles:

2 Heading 1
2.1 Heading 2
2.1.1 Heading 3
2.1.1.1 Heading 4
2.1.1.1.1 Heading 5
2.1.1.1.1.1

Heading 6

2.1.1.1.1.1.1 Heading 7
Style: Normal

2.2 Styles for Inline Text


Style: GenNormal
Inline Normal

Inline Bullet

1. Inline Numbered

Page 18

WSDL Example

(c) eaDocX Ltd 2011

2.3 Styles for Tables

Table Heading

Red, bold, 12 point

Table text

Table bullet

No indent, no spacing above & below

1. Table List

No indent, no spacing

2.4 Styles for Matrix Reports


Matrix Title

Matrix Target Heading

Matrix Title
Matrix Source
Heading

Matrix body

V small

Page 19

WSDL Example

(c) eaDocX Ltd 2011

Page 20

WSDL Example

Você também pode gostar