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
3
votes
2 answers

RPC/Encoded Jboss problem

I'm running jboss-4.2.1.GA to generate WS requests. I have created the WS client with the help of JWSDP-2.0/JAXRPC. I have deployed the client to Jboss and I am now trying to send requests. When I try to initialise the client service:…
Lucas T
  • 3,011
  • 6
  • 29
  • 36
3
votes
0 answers

Not able to generate server-config.wsdd using Eclipse and Tomcat 7.0

I am trying to generate the Web Service using the the following steps but could not generate the server-config.wsdd and the below message is shown: **Jul 04, 2013 10:51:23 PM org.apache.axis.configuration.EngineConfigurationFactoryServlet…
Mithil Shukla
  • 113
  • 3
  • 8
3
votes
1 answer

How to ignore empty parameters in web service?

I have the following problem. I want to make web service, which have a lot of parameters for input. Some of them are Double type. The thing is that some of doubles are not necessary and can be passed to my service as empty tags, like
Kiman
  • 137
  • 2
  • 10
3
votes
0 answers

Marshall Java object to an xml String using JAX-RPC

I need to marshall a java object using jax-RPC? Marshalling using JAXB is pretty simple JAXBContext.newInstance("myClassName").createMarshaller.marshall(myObject,new ByteArrayOutputStream Object); but no similar way found for JAX-RPC. Anyone did…
user837593
  • 337
  • 1
  • 5
  • 25
2
votes
0 answers

JAX-RPC 1.1 and Holder class

I need to create a new web service in Eclipse using File/New/Web Service. I'm using Tomcat 6 and Axis. During creating a new web service I receive following warning: The service class "XXX" does not comply to one or more requirements of the…
Wojteq
  • 1,173
  • 9
  • 23
2
votes
1 answer

wscompile JAX-RPC generates Calendar object instead of Date

I have a problem when generating java classes from WSDL using JAX-RPC wscompile ANT task. My ant script:
Paulius Matulionis
  • 23,085
  • 22
  • 103
  • 143
2
votes
2 answers

Forwarding requests from one web service to another

So the case is the following: I have an application that communicates with a JAX-RPC web service (Hosted in an .ear package on a JBoss server). We had a requirement of moving all the operations in this web service to a new one with a new name,…
Mouhammed Soueidane
  • 1,056
  • 2
  • 24
  • 42
2
votes
1 answer

JAX-RPC with Axis2

I have been researching this like crazy, and have not been able to find an answer. Is there any possible way to use JAX-RPC with Axis2? I know Axis2 is compatible with JAX-WS, but I have not been able to find anything about
user823473
  • 63
  • 1
  • 1
  • 8
2
votes
1 answer

Are JAX-RPC and Axis2 protected against XML Injection?

Do JAX-RPC and Axis2 have built-in support for XML injection? If not, how can I add custom code to perform escaping and schema validations on my own? Edit: I looked at the code generated by JAX-RPC, it looks like the code performs schema…
RonK
  • 9,472
  • 8
  • 51
  • 87
2
votes
3 answers

Exposing C++ program as a Web Service

How to expose a C++ program as a Web Service? Or is it a better idea to invoke C++ from Java and expose the resultant Java as a Web Service. In any case, the C++ program should not undergo any changes.
2
votes
0 answers

com.sun.jersey.api.client.ClientHandlerException:

i am quite new here. I am developing a java program as rest client by using jersy. My code is running fine in Eclipse. but when i create an executable jar that shows the following error : com.sun.jersey.api.client.ClientHandlerException: A message…
Marvel John
  • 193
  • 1
  • 3
  • 14
2
votes
1 answer

Does Apache Camel work only with Apache CXF or Spring-WS?

I am trying to work on a PoC to replace an IBM WESB Proxy mediation (Exposed as a web service, Receives the soap request, Invokes different other Web Services based on the Soap Header passed in the request). These web services are built using…
ah.narayanan
  • 175
  • 1
  • 11
2
votes
4 answers

Consuming web services with jboss

Can someone point me a good step-by-step tutorial to consuming an already running web service in java? PS: I tried creating the classes with wsconsume, but it cries with [ERROR] rpc/encoded wsdls are not supported in JAXWS 2.0. (my web service is…
Pablo Venturino
  • 5,208
  • 5
  • 33
  • 41
2
votes
0 answers

Consuming an RPC/encoded WSDL with java

I have successfully consumed this same wsdl with php using NuSOAP. This is the method the company has set up to use, but I was told I am welcome to try any other way. I would like to move the consumption to my middleware and this would be using…
Colin Hilbert
  • 69
  • 2
  • 10
2
votes
1 answer

JAX-RPC GenericHandler fails on Websphere Application Server v6.0.2.35

I've created an Extension of GenericHandler called SOAPHeaderHandler. I placed log4j statements in the handler and can see the constructor being built. When I generate a SOAP message, however, I don't see the message related to the handleRequest…
Mark Glass
  • 386
  • 1
  • 7
  • 15
1 2
3
11 12