The Source for Java Technology Collaboration
User: Password:



Arun Gupta

Arun Gupta's Blog

TOTD #16: Optimizing Metro Stubs by locally packaging the WSDL

Posted by arungupta on November 09, 2007 at 07:14 AM | Comments (2)

When Metro stubs are used to invoke a Web service endpoint, two invocations are made over the network - one for retrieving the WSDL and the other for sending the request message.

The second invocation is easy to explain because that's when the actual message is sent to the endpoint.

The first invocation to retrieve the WSDL is necessary because the generated stubs contain only the portable method signatures and annotations. All the binding specific information, such as quality-of-service policy assertions, are retrieved at the runtime. This approach was taken because of two reasons:

  • All the binding information cannot be captured in the generated stubs
  • Quality-of-service may change between the stub generation and actual invocation.

However if the WSDL is not expected to change then you can consider locally packaging the WSDL with the client. In this case the locally packaged WSDL, instead of accessing over the network, is used to retrieve the binding information.

Metro runtime is integrated in GlassFish and can also be installed on Tomcat. Vivek explained the several Tooling options with Metro - NetBeans IDE being the most comprehensive.

Several screencasts are available to get you started with Metro.

Technorati: webservices projectmetro glassfish netbeans performance


Bookmark blog post: del.icio.us del.icio.us Digg Digg DZone DZone Furl Furl Reddit Reddit
Comments
Comments are listed in date ascending order (oldest first)

  • I'm sorry to post here this comment, but I would like know if is possible any integration between Tango and OpenESB.
    It would be nice use the same "Edit Web Service Attributes" functionality as in WSIT NetBeans plugin, on BC-SOAP compontent to enable security, reliability and other WS-* features.
    It could be possible?

    Posted by: dloiacono on November 21, 2007 at 12:54 AM

  • Answering to the above comment, yes the work to enable all the WSIT features in HTTP BC is in progress. Most of it should be available already. You can refer to open-esb.org for more details.
    You can also send specific questions to the following email aliases.
    users@open-esb.dev.java.net
    Or you can also post your questions under this forum.
    https://open-esb.dev.java.net/servlets/ForumMessageList?forumID=1689

    Posted by: paradhya on December 06, 2007 at 10:48 AM





Powered by
Movable Type 3.01D
 Feed java.net RSS Feeds