DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Related

  • Validate XML Request Against XML Schema in Mule 4
  • How To Create a Stub in 5 Minutes
  • Build a Java Backend That Connects With Salesforce
  • Distributed Denial-of-Service (DDoS) Attacks: What You Need to Know

Trending

  • Ujorm3: A New Lightweight ORM for JavaBeans and Records
  • Securing Everything: Mapping the Right Identity and Access Protocol (OIDC, OAuth2, and SAML) to the Right Identity
  • Smart Deployment Strategies for Modern Applications
  • The ORM Is Over: AI-Written SQL Is the New Data Access Layer
  1. DZone
  2. Software Design and Architecture
  3. Integration
  4. WSDLToJava Error: Rpc/Encoded WSDLs Are Not Supported with CXF

WSDLToJava Error: Rpc/Encoded WSDLs Are Not Supported with CXF

By 
Singaram Subramanian user avatar
Singaram Subramanian
·
Jun. 12, 13 · Interview
Likes (9)
Comment
Save
Tweet
Share
40.4K Views

Join the DZone community and get the full member experience.

Join For Free

RPC/encoded is a vestige from before SOAP objects were defined with XML Schema. It’s not widely supported anymore. You will need to generate the stubs using Apache Axis 1.0, which is from the same era.

java org.apache.axis.wsdl.WSDL2Java http://someurl?WSDL

You will need the following jars or equivalents in the -cp classpath param:

  • axis-1.4.jar
  • commons-logging-1.1.ja
  • commons-discovery-0.2.jar
  • jaxrpc-1.1.jar
  • saaj-1.1.jar
  • wsdl4j-1.4.jar
  • activation-1.1.jar
  • mail-1.4.jar

This will generate similar stubs to wsimport.

Alternatively, if you are not using the parts of the schema that require rpc/encoded, you can download a copy of the WSDL and comment out those bits. Then run wsimport against the local file.

If you look at the WSDL, the following bits are using rpc/encoded:

<soap:body use="encoded"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">

Sources

1. http://bitkickers.blogspot.com/2008/12/rpcencoded-web-services-on-java-16.html

2. http://stackoverflow.com/questions/412772/java-rpc-encoded-wsdls-are-not-supported-in-jaxws-2-0
Apache Axis Schema Stub (distributed computing) Classpath (Java) IT SOAP XML JAR (file format) Web Protocols

Published at DZone with permission of Singaram Subramanian. See the original article here.

Opinions expressed by DZone contributors are their own.

Related

  • Validate XML Request Against XML Schema in Mule 4
  • How To Create a Stub in 5 Minutes
  • Build a Java Backend That Connects With Salesforce
  • Distributed Denial-of-Service (DDoS) Attacks: What You Need to Know

Partner Resources

×

Comments

The likes didn't load as expected. Please refresh the page and try again.

  • RSS
  • X
  • Facebook

ABOUT US

  • About DZone
  • Support and feedback
  • Community research

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 215
  • Nashville, TN 37211
  • [email protected]

Let's be friends:

  • RSS
  • X
  • Facebook