jax-rpc

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 rpc/encoded) If I can consume web services entirely by hand (using no wizards), and under...

Polymorphism in JAX-RPC web services

I have a JAX-RPC (Java) web service that needs to return a complex polymorphic value. To be more specific, the class structure is something like this: abstract class Child { } class Question extends Child { private String name; // other fields, getters, and setters } class Section extends Child { private String label; ...

JAX-RPC, Spring web services, and UnsupportedOperationCallException

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 inte...

How to assign a unique ID to a webservice instance

I'd like to assign an unique identifier to a soap request as soon as it arrives at my (GlassFish 2) server. I suppose I use a handler for this. But where can I store such an ID? I need it to relate log-lines from multiple classes. For this I need some sort of context-object. Anyone an idea? ...

Exception occurs with JAX-RPC handler

I have some SOAP webservices build with JAX-RPC. These work fine. But as soon as I add a handler, I get an exception. When the binding is removed from the webservices.xml, everything works fine again. The weird thing is, the handler itself isn't included in the stacktrace of the exception. I also noticed, the init and getHeaders method...

Getting information about configured (webservices.xml) web service handlers programatically

In a Web Service, I have few GenericHandlers configured as server (Role) in webservices.xml (for IBM Runtime) & server-config.wsdd (Axis Runtime). Say the handlers are A, B & C. Now, when there is an inbound call, A, B & C are getting invoked as expected. I am basically looking for a way to know (programmatically) the number of handler...

Java web service client:

Hi guys, I'm developing a web service client that needs to execute operation exposed on tomcat with axis2. The client has all the wsdl files that are needed. I can't import them statically with netbeans or eclipse because the client needs to discover the wsdl at runtime (this has been already done) and then execute them in an fixed order...

Java web service, xsd date instead of dateTime

In Java EE 1.4 using JAX-RPC 1.1, how can i expose web service, so the wsdl has a complex type (person) where one of the properties of the person is a date which is shown in the WSDL/XSD as only a date (such as a birthdate) instead of a dateTime (where the time is not wanted) in the WSDL/XSD? i would like the xsd referenced in the wsdl ...

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: java.lang.reflect.InvocationTargetException at org.apache.axis2.wsdl.codegen.CodeGenerati...

Java JAX-RPC NoClassDefFoundError

I am new to JAX-RPC. I tried creating a simple Java bean in RAD 7.0, and went through the options to create a JAX-RPC webservice. My method is as below. public byte[] getData(byte[] argument) { <Customclass> proxy = new <Customclass>(); List outputList = new ArrayList(); try { // Call a method on proxy } catch ...

com.sun.xml.rpc.tools.ant.Wscompile cannot be found

Hi I need to use a service at http://mihansmscenter.com/webservice/?wsdl so i should use jax-rpc i add jax-rpc plugin to my netbeans then righ click on my project > New > Web service client > and set: WSDL URL:http://mihansmscenter.com/webservice/?wsdl project: my project package: smsService client style: JAX-RPC Style but when cl...

Way to place a bad request in a dead-letter queue when using JAX-RPC?

I'm using JAX-RPC 1.1 to generate services for a set of applications running on WAS 6.0, communicating via Websphere MQ. A mainframe will be sending messages to the services, so if for some reason the message can't be converted to objects (likely due to EBCDIC-to-ASCII weirdness), the message needs to be placed on the dead-letter queue ...

Can Groovy be a client to JAX-RPC-style web service?

Apparently, Groovy easily consumes web services. Can it consume a web service that needs JAX-RPC instead of JAX-WS? Should I use an older version of Groovy or its libraries to do so? ...

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 method. I've registered the Handler in the stub as follows: if (service == null)...

RPC/Encoded Jboss problem

Hi there, 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: javax.xml.rpc.Service service = servicefactory.createService(new URL(wsdlURL), serviceQN), J...

RPC/Encoded Jboss solution

I recently posted a question regarding RPC/Encoded Jboss problem since I was having problems with jboss-4.2.1.GA to generate RPC/Encoded WS requests. The solution I found was to have jaxrpc.jar, saaj.jar and wsdl4j-1.5.1.jar files in the EAR file that I deploy to Jboss. I did not have to run Axis as a client from inside JBoss as kindly ...

Accessing Spring-WS service with JAX-RPC client model

I have deployed a service using spring-ws and accessed it using <bean id="messageFactory" class="org.springframework.ws.soap.saaj.SaajSoapMessageFactory"/> <bean id="webServiceTemplate" class="org.springframework.ws.client.core.WebServiceTemplate"> <constructor-arg ref="messageFactory"/> <property name="defaultUri" value="http://localh...

simple WSDL and JAX RPC mapping file generating tools

guys, what are the simple tools for generating WSDL and JAX RPC mapping files from java ServiceEndPoint Interface. or I just need that generates JAX RPC mapping file generator ...

JAX-WS client with Axis service

I'm relatively new to web services, but I need to integrate a call to an existing service in my application. Ideally, I'd like to use JAX-WS because I'm looking for the simplest, quickest-to-develop solution on my end, and MyEclipse is able to generate a JAX-WS client from a WSDL. Unfortunately, the WSDL I've inherited was built from wha...

Dozer deep mapping not working

I am trying to use dozer 4.1 to map between classes. I have a source class that looks like this: public class initRequest{ protected String id; protected String[] details } I have a destination class that looks like this: public class initResponse{ protected String id; protected DetailsObject detObj; } p...