File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes How to call WebService from Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "How to call WebService from Java" Watch "How to call WebService from Java" New topic

How to call WebService from Java

madhukiran kommalapati

Joined: Jul 06, 2009
Posts: 3
Hi All,
This is Madhu and I am new to WebService.
I need to call a WebService, Which is in dot net, from my application.
I am trying to access it.
But I could not able to invoke the method.
I could able to create a service and Call.
But whenever I am invoking na, it is giving error saying that,

javax.xml.rpc.JAXRPCException: failed to invoke operation 'RationalData' due to an error in the soap
layer (SAAJ); nested exception is: Message[ failed to serialize interface javax.xml.soap.SOAPElemen
tweblogic.xml.schema.binding.SerializationException: mapping lookup failure. class=interface javax.x
ml.soap.SOAPElement class context=TypedClassContext{schemaType=['']:RationalData

As RationalData is my method to invoke.

Please help me out.

Lalit Bhatt
Ranch Hand

Joined: Dec 27, 2007
Posts: 69

Can you tell more details about how you have created your client? Also looking at exception it seems you are using JAX-RPC client. IF possible use JAX-WS client.

Java-JavaEE Hibernate Spring Software Development Business Process Analysis
I agree. Here's the link:
subject: How to call WebService from Java
It's not a secret anymore!