Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Unabel to hit the webservice usind DII approach

 
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

I am trying to invoke webservices through DII approach and followed some samples which are provided.

Most of the samples provided passes String datatype as input and recieves the same datatype as output.

In my case I want to pass a request bean object and get back a response bean object.

I was able to invoke the wsdl using the classes provided in SAAJ api but not using rpc.Call class.



SampleInput and SampleOutput are the request response classes which has got only the getters and setters. When using the SAAJ classes these classes were not used.

When I execute the above snippet I faced a error as below,

javax.xml.rpc.JAXRPCException: failed to invoke operation 'getDefaultRechargeValues' due to an error in the soap layer (SAAJ); nested exception is: Message[ failed to serialize class com.sample.SampleInputweblogic.xml.schema.binding.SerializationException: mapping lookup failure. class=class com.sample.SampleInput class context=TypedClassContext{schemaType=['http://www.sample.com/sample/workflow/samplereqcs']:SampleInput}]StackTrace[

javax.xml.soap.SOAPException: failed to serialize class com.sample.SampleInputweblogic.xml.schema.binding.SerializationException: mapping lookup failure. class=class com.sample.SampleInput class context=TypedClassContext{schemaType=['http://www.sample.com/sample/workflow/samplereqcs']:SampleInput}
at weblogic.webservice.core.DefaultPart.invokeSerializer(DefaultPart.java:339)
at weblogic.webservice.core.DefaultPart.toXML(DefaultPart.java:304)
at weblogic.webservice.core.DefaultMessage.toXML(DefaultMessage.java:651)
at weblogic.webservice.core.ClientDispatcher.send(ClientDispatcher.java:209)
at weblogic.webservice.core.ClientDispatcher.dispatch(ClientDispatcher.java:146)
at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:473)
at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:459)
at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:569)
at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:422)
at com.sample.SampleDynamic.testService(SampleDynamic.java:112)
at com.sample.SampleDynamic.main(SampleDynamic.java:55)
Caused by: weblogic.xml.schema.binding.SerializationException: mapping lookup failure. class=class com.sample.SampleInput class context=TypedClassContext{schemaType=['http://www.sample.com/sample/workflow/samplereqcs']:SampleInput}


I am not sure where I have gone wrong.

Thanks
 
Their achilles heel is the noogie! Give them noogies tiny ad!
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic