wood burning stoves*
The moose likes Web Services and the fly likes Invoking webservice in one application through a dynamic client in other application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Invoking webservice in one application through a dynamic client in other application" Watch "Invoking webservice in one application through a dynamic client in other application" New topic
Author

Invoking webservice in one application through a dynamic client in other application

aparna chi
Greenhorn

Joined: May 19, 2004
Posts: 16
Hi ,

I have two applications deployed on weblogic 8.1. Both have separate set of webservices . When I try to invoke these web services through a simple java application client it is possible to invoke the service normally. But when i try to invoke the webservice in one application through a dynamic client in other webservice it fails giving following error:

javax.xml.rpc.JAXRPCException: failed to invoke operation 'execute' due to an error in the soap layer (SAAJ); nested exception is: Message[ failed to serialize xml:weblogic.xml.schema.binding.SerializationException: mapping lookup failure. class=interface javax.xml.soap.SOAPElement class context=TypedClassContext{schemaType=['http://example/xsd']:inputDTO}]StackTrace[

javax.xml.soap.SOAPException: failed to serialize xml:weblogic.xml.schema.binding.SerializationException: mapping lookup failure. class=interface javax.xml.soap.SOAPElement class context=TypedClassContext{schemaType=['http://example/xsd']:inputDTO}
at weblogic.webservice.core.DefaultPart.toXML(DefaultPart.java:292)
at weblogic.webservice.core.DefaultMessage.toXML(DefaultMessage.java:610)
at weblogic.webservice.core.ClientDispatcher.send(ClientDispatcher.java:193)
at weblogic.webservice.core.ClientDispatcher.dispatch(ClientDispatcher.java:130)
at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:439)
at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:425)
at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:536)
at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:389)
at myclient.WebserviceClient.executeWeb(WebserviceClient.java:190)
at java.lang.Thread.run(Thread.java:536)
Caused by: weblogic.xml.schema.binding.SerializationException: mapping lookup failure. class=interface javax.xml.soap.SOAPElement class context=TypedClassContext{schemaType=['http://example/xsd']:inputDTO}
at weblogic.xml.schema.binding.RuntimeUtils.lookup_serializer(RuntimeUtils.java:151)
at weblogic.xml.schema.binding.RuntimeUtils.invoke_serializer(RuntimeUtils.java:187)
at weblogic.xml.schema.binding.RuntimeUtils.invoke_serializer(RuntimeUtils.java:174)
at weblogic.webservice.core.DefaultPart.toXML(DefaultPart.java:284)
... 12 more
]

at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:545)
at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:389)
at myclient.WebserviceClient.executeWeb(WebserviceClient.java:190)
at java.lang.Thread.run(Thread.java:536)


Can anybody please tell me the cause and workaround for this problem ?

I have registered all the data types with respective names explicitly. Even then it is not working.

Please help me on this.

Thanks and Regards
Aparna
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Invoking webservice in one application through a dynamic client in other application
 
Similar Threads
javax.xml.rpc.JAXRPCException when using Call.invoke() to invoke a web-method using a dynamic client
Problem invoking web service using dynamic client with WSDL
Unabel to hit the webservice usind DII approach
how to invoke a webservice
JAX-RPC Client invoking Document based web service