• Post Reply Bookmark Topic Watch Topic
  • New Topic

Two services in wsdl

 
Hijas Muhammed
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi..

I am new to this forum and webservices..
I have a doubt in webservices.

Is it possible to describe more than one services in wsdl?

Thanks in advance
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello "Hijas MD"-

Welcome to JavaRanch.

On your way in you may have missed that we have a policy on screen names here at JavaRanch. Basically, it must consist of a first name, a space, and a last name, and not be obviously fictitious. Since yours does not conform with it, please take a moment to change it, which you can do right here.

As to your question, that depends a bit of what you mean by "service". A WSDL can describe several methods that a client can call. Is that what you mean?
 
Hijas Muhammed
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I mean service as 'Interface' Let me give an example..

suppose we have an interface 'GREETING_INTERFACE'(my service)

In this interface, we have funtions gudMrng(),gudEvng(),gudNite()

can i have another service/interface like 'HELLO_INTERFACE' (with some 3 fns)inside a same wsdl?

Thanks in advance


 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A service can have multiple ports, each of which can have its own port type comprised of different operations, so, yes, WSDL can handle this (although it has no concept of a Java interface).

(The words "service", "port" and "operation" are used here as they are used in the WSDL specification.)
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!