Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to call WebService from Java

 
madhukiran kommalapati
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 69
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic