Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / March 2008

Tip: Looking for answers? Try searching our database.

Generation of multiple portTypes in a single WSDL

Thread view: 
traveller - 11 Mar 2008 11:05 GMT
Hi All,

We all know the development model of Glassfish. We can apply the
annotation @WebService and a WSDL file gets generated among others
when deployed as a Web Service.

Technically a WSDL can have more than one portType.

I want to inquire whether it is possible to map two different
interfaces as two portTypes in a single WSDL file while doing
development on Glassfish. In other words is it all possible to have
(or generate) more than one portType in a single WSDL and successfully
deploy the web service with correct operation invocation.

Appreciate any pointers.
Cheers
Ravi
Suyog Bapat - 29 Mar 2008 08:04 GMT
> Hi All,
>
[quoted text clipped - 13 lines]
> Cheers
> Ravi

hi,
In case of any model which uses jaxws,
1) with  top-down (wsdl first) approach, u can write 2 portTypes in
single wsdl (with 2 ports under
  single service referring them via 2 different bindings ). It will
result in two interfaces (1
  per portType) when java code is generated. But only 1 service class
will be generated having 2
  methods for returning proxies for those 2 ports.
2) with bottom-up (java first) approach, according to me there is no
way in which its possible to
  map 2 different classes to portType/s under single wsdl.
cheers,
  :-))


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.