Win a copy of Terraform in Action this week in the Cloud 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

Is RPC/Encoded not allowed in JAX-WS?

 
Ranch Hand
Posts: 558
2
Hibernate Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 558
2
Hibernate Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you Mark.
 
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic