• 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

Big prob writing a dynamic proxy client with JAX-RPC -- trouble with complex types!

 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am trying to write a dynamic proxy client for a JAX-RPC web service.

The particular method returns an array of complex type defined by me.

The problem is that the dynamic proxy client has problems deserializing the returned array of complex type.

It claims: deserialization error: no deserializer is registered for ({namespace}ComplexType, {1})


Must I write special serializer and deserializer for this complex type? How can I accomplish this? And how must I register it and so forth.

I've googled for a while and couldn't find any helpful articles on this :/ I found a few forum posts on the sun java forums but nothing was helpful at all in how to find a solution. I'm new to the whole concept of web services so just suggesting to write and register deserializer makes no sense to me

If worst comes to worst I will just rewrite the web service to return arrays of String (the clients just paste the data out, nothing big so I can have one large string with newlines in it or whatever). I would not like to do this however and would prefer if I could use complex types with JAX-RPC somehow (preferably nothing too complicated).



Please help if you can, I'm going nutty!


PS I'm using JWSDP and Tomcat 5.0 with JWSDP I believe. I'd like to avoid using "AXIS" if that is proprietary (not sure even what the heck it is )
[ March 28, 2005: Message edited by: Steve Buck ]
 
Ranch Hand
Posts: 1067
2
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
> I've googled for a while and couldn't find any helpful articles on this

I was able to google this see if that answers your question.

> I'd like to avoid using "AXIS" if that is proprietary

Look here
[ March 29, 2005: Message edited by: William Barnes ]
 
Steve Buck
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the link.

Unfortunately the ant task "autotype" appears to only work with the ant tool distributed with Weblogic. It comes up (Weblogic) anywhere I've researched the autotype task.

My ant (from the Apache Group site) does not support this task and nor does the task list (both the ones available) on the Ant site makes mention of it :'(

I'll try a manual way of handling it. If all else fails I'm going back to String LOL
[ March 29, 2005: Message edited by: Steve Buck ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic