• 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
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

wscompile generating a bad jax-rpc mapping file

 
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
To be clear I know that I can use jax-ws and this problem goes away, but I am in an environment where I HAVE to use jax-rpc so if someone out there is defining SOAP faults in there wsdl and using jax-rpc please help!!!

I am trying to create a custom soap fault and I am having problems because wscompile is generating a mapping file that has the same name for two elements. This mkaes JBoss choke with an Ambiguous name exception.

Here is the mapping file:


So as you can see the typeNS:TestExceptionValue is mapped to TestExceptionValue_Exception and TestExceptionValue_Type. JBoss does not like this and I get an ambiguos type error on deployment.

I know that I can modify the mapping file such that it may work because the generated one is incorrect but I am not sure how to change it. Just giving them different names did not help I got another JBoss exception when it tried to read the mapping file.

The searchschema option is specified in the wscompile features and this is generating the TestExceptionValue_Exception and the TestExceptionValue_Type
so I took that out to see if that would help and JBoss still had trouble parsing the mapping file.

Here is my wsd:


Types file:


build.xml


wsConfig.xml file:
 
The harder you work, the luckier you get. This tiny ad brings luck - just not good luck or bad luck.
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic