• 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

WS Packaging

 
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've written a basic WS that uses transfer objects and found that I could only package these objects in the base directory, com.ws. If I put the objects in their own dir, com.ws.model, the client which discovered the WS would put the classes in com.ws and the compilation would fail.

Is it possible to package the transfer objects in their own directory or are they required to be in the base dir?

Is it possible to use classes that are packaged in another jar as the transfer objects for a web service?

Trying so gives ill generated client files. Such as:

becomes:


or, on the server:

becomes this on the client:


I'm a newbie to this paradigm and could use some pointers.

Thanks,
Graham
[ March 22, 2007: Message edited by: graham king ]
 
graham king
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It looks to be resolved by using the namespaceMappingRegistry entry in the config.xml, i.e.,


along with a model entry in the jaxrpc-ri.xml, i.e.,


Only now I'm not able to deploy the cooked war. I get the following:


Anyone know how to fix this?

Using JBoss4.0.3SP1 running on jre1.4.2_13b.

The jaxrpc-impl.jar file is in the server/lib/endorsed as well as:


Thanks.
[ March 23, 2007: Message edited by: graham king ]
 
graham king
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I moved the jaxrpc-impl.jar to the /server/default/lib
and added the others

I also added jars from jaxb:


The deployment is successful, but, the client code still references the base packaging.

Anyone know how I can fix this? Running outta ideas.
 
graham king
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


If I only had a brain... The Scarecrow, The Wizard of Oz



Didn't add the namespace value to the client config.xml, because, in all my brightness thought that I was creating everything from the wsdl document.

Man.
 
Ranch Hand
Posts: 228
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Brian, I would like 2 call you a perfect endpoint
asking and answering urself the questions.
 
Karthik Rajendiran
Ranch Hand
Posts: 228
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
yes man you are rit
did you refer deployment chapter IN RMH book j2ee webservices
<java-wsdl-mapping ...>
<package-mapping>
<package-type>com.jwsbook.jaxrpc</package-type>
<namespaceURI>http://www.Monson-Haefel.com/jwsbook/BookQuote
</namespaceURI>
</package-mapping>
</java-wsdl-mapping>

if you have two differen namespace
one for wsdl and one for complext type inside wsdl types tag,you can present two different package structure
reply
    Bookmark Topic Watch Topic
  • New Topic