Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 78617
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T21:00:56+00:00 2026-05-10T21:00:56+00:00

I have a JAX-RPC web service that I am attempting to consume using Spring.

  • 0

I have a JAX-RPC web service that I am attempting to consume using Spring. This is my first time using Spring to consume a web service, so right now I’m just trying to get it to integrate with the JAX-RPC web service as a test.

The web service has several dozen operations in it, but for right now I only care about one. Here are the interfaces I’ve created on the Spring/client side:

public interface WSClient {     public boolean userExists(int userid); }  public interface WSService {     //this method matches the method signature of the Web Service     public com.company.data.User getUser(int userid); } 

And here is my applicationContext.xml:

<bean id='WSClient' class='com.company.ws.test.WSClientImpl'>     <property name='service' ref='myWebService'></property> </bean>  <bean id='myWebService' class='org.springframework.remoting.jaxrpc.JaxRpcPortProxyFactoryBean'>     <property name='serviceInterface' value='com.company.ws.test.WSService'/>     <property name='endpointAddress' value='http://1.2.3.4/web-service/data'/>     <property name='namespaceUri' value='http://www.company.com/wdsl'/>     <property name='serviceName' value='CompanyWebService'/>     <property name='username' value='username'/>     <property name='password' value='password'/>     <property name='maintainSession' value='true'/> </bean> 

Using this configuration of JaxRpcPortProxyFactoryBean, invoking the Service returns the following exception:

org.springframework.remoting.RemoteProxyFailureException: Invalid JAX-RPC call configuration; nested exception is operation style: ‘rpc’ not supported

I’ve never fully understood the difference between RPC and document-style web services; however, I believe this web service is using RPC-style – so this exception confuses me.

Second, I’m confused on which properties I should be setting with JaxRpcPortProxyFactoryBean:

  1. If I set the wsdlDocumentUrl property, I end up getting a HTTP 401 error as this web service sits behind HTTP Basic Authentication, and it seems Spring does not use the username/password properties when fetching the WSDL.
  2. If I specify a PortInterface property (with a value of CompanyWebServiceInterfacePort), then I get a different Exception stating:

    Failed to initialize service for JAX-RPC port [{http://www.company.com/wdsl}CompanyWebServiceInterfacePort]; nested exception is WSDL data missing, this operation is not available

In other words, it’s telling me that the WSDL is missing – which I can’t set since Spring won’t use the username/password to fetch it from the server!

I’m not sure if any of this makes any sense, but in essence what I’m unsure of is:

  1. For a JAX-RPC service, do I need to set the PortInterface property? Is this the path I should be going down?
  2. Similiarly, does Spring need me to set the wsdlDocumentUrl property? If so, is there any way I can tell Spring which WSDL and get around the authentication problem?
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T21:00:56+00:00Added an answer on May 10, 2026 at 9:00 pm

    I eventually solved this by saving a copy of the WSDL file locally, and, since JaxRpcPortProxyFactoryBean expects a java.net.URL for the wsdlDocumentUrl property, had to set it with a path like file:///c:/.../blah.wsdl.

    This isn’t really all that desireable, I would hate to have to put a file:/// URI in a Spring context file that might be deployed on a server, especially on a different platform – seems odd that this class behaves this way.

    I’m guessing most people aren’t using Spring aren’t using JAX-RPC anyway.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Spring application that uses JAX-WS to consume another web service. Everything
I have an AXIS2/JAX-WS web service using a code first implementation (yes I know,
I have a JAX-RPC (Java) web service that needs to return a complex polymorphic
I have to make a web service using JAX-RPC for a project and I
I have a jax-rpc web service. When i try to pass xml to the
I have a jax-ws web service developped using netbeans 7 and glassfish 3.1.2 .
I have a JAX-B java web service which I'm using to update a database.
I have a JAX-WS web service that has been running in a production environment
I have a CXF JAX-WS web service operation named diagnosticPing that accepts two params,
We have an application that uses a JAX-RPC client library and is running on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.