• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to use fast infoset.

 
Niiraj Patel
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

For study purpose, I have created standalone SOAP based image upload/download service using MTOM.
I want to use fast infoset to make it optimized. But don't know how to use it.
I looked it to this URL (http://docs.oracle.com/middleware/1212/core/WSCPT/jrf-ws-fastinfoset.htm). But, when I try it I am not able to find 'com.oracle.webservices.api.FastInfosetService' class in jdk.
Can anyone tell me how can we use 'fast infoset' ?

Regards,
Niraj
 
Frits Walraven
Creator of Enthuware JWS+ V6
Saloon Keeper
Pie
Posts: 2533
113
Android Chrome Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JAX-WS comes with MTOM for this purpose.

I guess you have to download and include a fastinfoset jar in your project.
 
Souvik Dasgupta
Ranch Hand
Posts: 95
Eclipse IDE Java Spring
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Niraj,

This is how fastinfoset is enabled in client:



Thats all!!

Or you can use below command to run the client also:

java -Dcom.sun.xml.ws.client.ContentNegotiation=pessimistic
 
Frits Walraven
Creator of Enthuware JWS+ V6
Saloon Keeper
Pie
Posts: 2533
113
Android Chrome Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are right: the fastinfoset.jar is packaged in the jdk!
 
Niiraj Patel
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Frits and Souvik for your response.

I am really confused with fast infoset.

Can you post a client and service code and link of jar file which need to place.

your help would be greatly appreciated!

Thanks,
Niraj
 
Frits Walraven
Creator of Enthuware JWS+ V6
Saloon Keeper
Pie
Posts: 2533
113
Android Chrome Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does this manual help?
 
Niiraj Patel
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Frits, This manual does not tell how to enable Fast Infoset for Service Side. I will enable it at client side as Souvik said above. but I also have to enable it at Service Side.
 
Frits Walraven
Creator of Enthuware JWS+ V6
Saloon Keeper
Pie
Posts: 2533
113
Android Chrome Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think it is supported by most application servers and you only have to enable it on the client. Metro (included in Glassfish) supports it and you should be able to use it if you follow this: Metro FastInfoset.

Let us know if it works!
 
Souvik Dasgupta
Ranch Hand
Posts: 95
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I also believe it is already enabled in most of the application servers including Glassfish.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic