Questions tagged [jax-rpc]

JAX-RPC is a technology for building web services and clients that use remote procedure calls (RPC) and XML

JAX-RPC stands for Java API for XML-based RPC. Often used in a distributed client-server model, an RPC mechanism enables clients to execute procedures on other systems.

In JAX-RPC, a remote procedure call is represented by an XML-based protocol such as SOAP. The SOAP specification defines the envelope structure, encoding rules, and conventions for representing remote procedure calls and responses. These calls and responses are transmitted as SOAP messages (XML files) over HTTP.

Although SOAP messages are complex, the JAX-RPC API hides this complexity from the application developer. On the server side, the developer specifies the remote procedures by defining methods in an interface written in the Java programming language. The developer also codes one or more classes that implement those methods. Client programs are also easy to code. A client creates a proxy (a local object representing the service) and then simply invokes methods on the proxy. With JAX-RPC, the developer does not generate or parse SOAP messages. It is the JAX-RPC runtime system that converts the API calls and responses to and from SOAP messages.

With JAX-RPC, clients and web services have a big advantage: the platform independence of the Java programming language. In addition, JAX-RPC is not restrictive: a JAX-RPC client can access a web service that is not running on the Java platform, and vice versa. This flexibility is possible because JAX-RPC uses technologies defined by the World Wide Web Consortium (W3C): HTTP, SOAP, and the Web Service Description Language (WSDL). WSDL specifies an XML format for describing a service as a set of endpoints operating on messages.

Read more

173 questions
38
votes
3 answers

Best way to consume RPC/encoded webservice?

I need to consume old-school RPC/encoded WSDL webservice for my backend. At first I tried to use Apache CXF and JAX-WS for that, but JAX-WS wsimport tool doesn't eat rpc/enoded WSDL. [ERROR] rpc/encoded wsdls are not supported in JAXWS 2.0. I'm…
ilvez
  • 1,235
  • 3
  • 16
  • 27
22
votes
2 answers

JAX-WS vs. JAX-RPC

I wrote 2 web services, one with Jax-WS and one with Jax-RPC. They just return a String. I stress-tested both with jMeter and, strangely, thereby Jax-RPC was a bit faster. When do I really profit from Jax-WS in aspects of performance (response time,…
norminka
  • 221
  • 1
  • 2
  • 3
18
votes
2 answers

How to write effective web services in java

Though this might appear as a duplicate of Java Web Services , I would like to know Where to start and to continue.In the past, I have invested so much of time to find where to start but I wasn't able to. There are so many jargons and chaos (at…
gekrish
  • 2,201
  • 11
  • 29
  • 46
12
votes
2 answers

Where can i find the JAX-WS version shipped with Java 6?

I'm using Java 6 for learning more about web Services (JAX-WS). I also read that JAX-WS latest version is available with Metro, i.e. If you're not using JDK6 and planning to use JAX-WS, you can use Metro. I would like to know which version of the…
Vicky
  • 5,380
  • 18
  • 60
  • 83
12
votes
3 answers

Cannot start Netbeans 8.0.1 after JAX-RPC Web Services plugin installation

I have a problem with Netbeans. I have installed the JAX-RPC Web Services from http://deadlock.netbeans.org/hudson/job/nbms-and-javadoc/lastStableBuild/artifact/nbbuild/nbms/updates.xml.gz But, after restart the IDE when the plugin is installed,…
Eliel Avelar
  • 121
  • 1
  • 3
12
votes
8 answers

Axis2's wsdl2java fails on RPC/Encoded style web services

Is there any alternative to Axis2? Or the way to make it work (different data binding, for example)? Retrieving document at '...'. Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException:…
Andrey Adamovich
  • 20,285
  • 14
  • 94
  • 132
8
votes
8 answers

How to set a connection timeout when using JAXRPC-RI web services client?

I'm working with a bit of a legacy component in which we interact with a SOAP web service (a technology which I absolutely, positively abhor) using some client code built using the JAXRPC-RI (reference implementation) library. I'm interested in…
matt b
  • 138,234
  • 66
  • 282
  • 345
8
votes
2 answers

JAX-RPC support in Netbeans 6.9.1

I am trying to generate new Web Service Client. When choosing Client Style to JAX-RPC Style I get a notification from Netbeans: "You must download JAX-RPC support plugin to create a JAX-RPC Client". Plugin is not listed in Available Plugins. I…
Aliens
  • 984
  • 3
  • 14
  • 23
8
votes
4 answers

Adding custom HTTP headers to Axis 1.4 web service responses

I'm trying to add custom HTTP headers to Axis 1.4 web servers. I've created a handler which extends BasicHandler: public class HttpHeaderHandler extends BasicHandler { . . . @Override public void invoke(org.apache.axis.MessageContext…
mip
  • 1,886
  • 8
  • 26
  • 32
7
votes
1 answer

Get attachments from a JAX-WS WebService with a JAX-RPC Client

As we migrate from JAX-RPC to JAX-WS I'm trying to Call a WebService, which uses JAX-W/JAXB. The client itself is still using JAX-RPC. The WSDL File is kept the same. This works fine, as long, as there are no attachments. With attachments, it…
Michael
  • 91
  • 1
  • 3
7
votes
3 answers

SoapUI endpoint error randomly

I don't understand something about SoapUI and his mockservice's behaviour. I'm using the client of SoapUI (testcase) and a Java EE application with JAX-RPC. My problem is : when I'm trying to call any webservice, from my Java Client, or the testcase…
Emmanuel Gauthier
  • 531
  • 2
  • 4
  • 15
7
votes
3 answers

JAX-RPC / JAX-WS runtime in Apache Tomcat

I am using Apache Tomcat v6 server. While creating a new Web Service, I get the Web service runtime options for "Apache Axis", "Apache Axis2" and "Apache CXF2.x". Is it possible to have the runtime as "JAX-RPC" or "Jax-WS"? I am using Eclipse IDE.
user182944
  • 7,897
  • 33
  • 108
  • 174
7
votes
3 answers

How to change address location of JAX-WS webservice

We have currently exposed JAX-RPC webservice with following URL http://xx.xx.xx.xx/myservice/MYGatewaySoapHttpPort?wsdl We migrated webservice to JAX-WS by generating WebService from above WSDL But new webservice is accessible from following…
ImranRazaKhan
  • 1,955
  • 5
  • 33
  • 74
6
votes
2 answers

Configuring WSDD to match the WSDL in AXIS

I have WSDL (I got it from external provider). There are lines like this:
ses
  • 13,174
  • 31
  • 123
  • 226
5
votes
1 answer

Apache Axis 1.4 on Java 12

I am currently trying to migrate from a Java 8 project to Java 12. (Hopefully) the last hurdle is an old WebService we are forced to use. Using the WebService 'as is' in Java 8 per se is not a problem, it has been working for many years. The wsdl…
Krann Sock
  • 933
  • 1
  • 7
  • 12
1
2 3
11 12