aspose file tools*
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
Author

How to call WebService from Java

madhukiran kommalapati
Greenhorn

Joined: Jul 06, 2009
Posts: 1
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=['http://ShowData.org/']:RationalData

As RationalData is my method to invoke.

Please help me out.

Thanks
madhu
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 Spring Roo Web Applications
 
Consider Paul's rocket mass heater.
 
subject: How to call WebService from Java
 
Similar Threads
javax.xml.rpc.JAXRPCException when using Call.invoke() to invoke a web-method using a dynamic client
Deserialization Error in WebService Client
Failed to find a suitable binding type for use in marshalling
WSDL
getting null response while calling glue webservice