This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

is it valid to have solicit and req-res in single portType ?  RSS feed

 
Ayub ali khan
Ranch Hand
Posts: 395
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it valid to have solicit response type operation and request response type operation in a single PortType of a wsdl file ?




---Ayub
 
Peer Reynders
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not aware that there is a WSDL based restriction against mixing message exchange patterns in the same port type. In fact it is quite natural to have a "subscribe" In-Out operation and a "publish" Out-In (or Out-Only) operation in the same portType.

However looking at the semantics of your portType the Out-In message exchange seems misplaced. If a service offers an In-Out "searchEmployee" operation then I would also expect an In-Out "getEmployeeDetails" operation.

Also just because something is legal WSDL doesn't automatically imply that it is supported by your SOAP web service stack (or that of your web service consumer for that matter).
 
Ayub ali khan
Ranch Hand
Posts: 395
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for your comment. I agree with you. I wanted to have an independent view on this point. I was also expecting getEmployeeDetails would have same symantics as that of searchEmployee.

Thank you
Ayub
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!