jQuery in Action, 3rd edition
The moose likes Web Services Certification (SCDJWS/OCEJWSD) and the fly likes Is RPC/Encoded not allowed in JAX-WS? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Services Certification (SCDJWS/OCEJWSD)
Bookmark "Is RPC/Encoded not allowed in JAX-WS?" Watch "Is RPC/Encoded not allowed in JAX-WS?" New topic

Is RPC/Encoded not allowed in JAX-WS?

Kumar Raja
Ranch Hand

Joined: Mar 18, 2010
Posts: 547

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.


Glassfish v3
JDK 1.6

Please advice.


Mark Heron

Joined: Aug 19, 2010
Posts: 20

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

Joined: Mar 18, 2010
Posts: 547

Thank you Mark.
Dan Drillich
Ranch Hand

Joined: Jul 09, 2001
Posts: 1183
Which style of WSDL should I use? says -

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

Excellent article.


William Butler Yeats: All life is a preparation for something that probably will never happen. Unless you make it happen.
zuned ahmed

Joined: Aug 15, 2008
Posts: 5
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 ?
I agree. Here's the link: http://aspose.com/file-tools
subject: Is RPC/Encoded not allowed in JAX-WS?
It's not a secret anymore!