Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is RPC/Encoded not allowed in JAX-WS?

 
Kumar Raja
Ranch Hand
Posts: 547
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.
 
Mark Heron
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: 547
2
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Mark.
 
Dan Drillich
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
 
zuned ahmed
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 ?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic