This week's book giveaway is in the Android forum.
We're giving away four copies of Learning Java by Building Android Games and have Jean-Marcel Belmont on-line!
See this thread for details.
Win a copy of Learning Java by Building Android Games this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • Devaka Cooray
Saloon Keepers:
  • Ganesh Patekar
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
Bartenders:
  • Ron McLeod
  • Frits Walraven
  • Pete Letkeman

Is RPC/Encoded not allowed in JAX-WS?  RSS feed

 
Ranch Hand
Posts: 552
2
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,

I'm trying to learn @SOAPBinding annotations with different options and compare the generated WSDL.

This example is taken from Ivan's notes


I modified Style to RPC and use to ENCODED.

When I try to wsgen, it failed with error message


From this, I'm thinking that RPC/Encoded is not permitted though RPC/Literal is.

Is this a change from JAX-RPC? or RPC was never allowed ENCODING.

Can I assume that, through JAX-WS

Only DOCUMENT - LITERAL or RPC - LITERAL are permitted and nothing else.

Environment:

Glassfish v3
JDK 1.6

Please advice.
 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Latest J2EE containters in market are trying to comply with basic profile so they can achieve Interoperability across diffrent platforms. Glassfish is no exception. As per WS basic profile 1.1 RPC/Encoded or Document/Encoded style is not allowed because it is a major source of conflicts. Remember, JAX-RPC is renamed to JAX-WS to avoid confusion created by word RPC in name.

Hope this helps.
 
Kumar Raja
Ranch Hand
Posts: 552
2
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Mark.
 
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which style of WSDL should I use? says -

Although it is legal WSDL, RPC/encoded is not WS-I compliant.



Excellent article.

Regards,
Dan
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can You please help me out by answering the same Question ?

Can RPC/Encoded be allowed for JAX-WS ?

My WSDL is also using Message Level Security.. Please suggest me best way for client implementation ?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!