• Post Reply Bookmark Topic Watch Topic
  • New Topic

Polymorphic operations in AXIS 1  RSS feed

 
William Stephens
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've been looking at the AXIS 1 docs and haven't found an answer to this question.

Is it possible to have polymorphic operations on an AXIS web service? I'm using a tool that generates the code and it's failing. I'm not sure if it's a tool issue or an AXIS limitation.

Lets assume the following are the operations:
Person getById (Id id)
Person getById (Id id, String credential)

thanks,
Bill

 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
If you intend to develop a SOAP web service that conforms with the WS-I Basic Profile 1.1, then operator overloading is not allowed. From the BP:

4.5.3 Distinctive Operations
Operation name overloading in a wsdl:portType is disallowed by the Profile.
R2304 A wsdl:portType in a DESCRIPTION MUST have operations with distinct values for their name attributes.
Note that this requirement applies only to the wsdl:operations within a given wsdl:portType. A wsdl:portType may have wsdl:operations with names that are the same as those found in other wsdl:portTypes.

Best wishes!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!