• Post Reply Bookmark Topic Watch Topic
  • New Topic

portType definitions

 
Mohamed Farouk
Ranch Hand
Posts: 249
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In chapter 2 (Page 39)of the free downloaded sun webservices book, It mentions that The portType element specifies, in an abstract manner, operations and messages that are part of the Web service. A WSDL document has one or more portType definitions for each Web service it defines.

I dont understand what A WSDL document has one or more portType definitions for each Web service it defines. I was thinking port type is similar to an interface method but the book says that for each there can be one or more porttype definition. Please can anyone clarify me plz..
Thanks friends...
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A web service end point can offer several services, each under a different name. The collection of all methods bundled under a name is called a port type in the WSDL language.
So a port is not one method, but several methods that logically belong together, and are given a name.

The WSDL Specification explains it, but is a bit terse.
[ September 23, 2005: Message edited by: Ulf Dittmer ]
 
Mohamed Farouk
Ranch Hand
Posts: 249
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for that so basically PORT TYPE is like an interface with many methods where in each method is like an operation.
 
Mohamed Farouk
Ranch Hand
Posts: 249
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Still
A WSDL document has one or more portType definitions for each Web service it defines.
So basically according to the previous statement a wsdl document can have one or more interfaces defined for a web service

This is the way i am looking at it
Service 1
PortType 1
operation 11
operation 12
operation 13

PortType 2
operation 21
operation 22
operation 23

Service 2
PortType 1
operation 11
operation 12
operation 13

Is it right?>>

Thanks
Farouk
 
Mohamed Farouk
Ranch Hand
Posts: 249
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry correction
This is the way i am looking at it
Service 1
PortType 1
operation 11
operation 12
operation 13

PortType 2
operation 21
operation 22
operation 23

Service 2
PortType 21
operation 21
operation 22
operation 23
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Service 2
PortType 21
operation 21
operation 22
operation 23


I think the following would be more accurate:

Service 2
PortType 3
operation 31
operation 32
operation 33
 
Mohamed Farouk
Ranch Hand
Posts: 249
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks so you mean to say you cannot reuse porttypes in different services
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know if it's possible, but it seems strange - why would you want have the same operations as part of several different web services?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!