Using web service with jaxb as an external type?

E

Elhanan

hi...

i wrote a rather large Service Wraper and tested it in regular java
application with main method.

the wraper is composed mainly from a massve JAXB graph composed from
schema and transformation classes using xsl sheets.

in order to use it i have to specify in run config the property
-Djava.endorsed.dirs= which points to folder containing jaxp, and dom
jars (something about jwsdp using new interfaces), now i know that
tomcat has endorsed directory in it's common folder, but how do i
place these jars in a wtp project (can't see any endorsed stuff there)

the jars are looking for the xslt files in a sub folder called
transform, they look for it via property files, what do i have to do to
modify this in a container enviorment?

another thing:
my class looks like this:

public class CompassService {

private CompassWebService ws=null;
public CompassService() throws

TransformerConfigurationException
,ParserConfigurationException
,JAXBException
,IOException{
ws = new CompassWebService();
}

public Case getResults(Case c) throws
RemoteException
,MalformedURLException
,TransformerException
,SAXException
,JAXBException
,IOException
, NotBoundException
, CompassConnectException{

return ws.getCaseResults(c);
}
}

my question is can i generate wsdl from Jasb class Case i have (i tried
but it failed saying ClassnotFound even thought i've added the jars the
project build path.

if not can i create a wsdl manually and import in it the xsd which
created the schema, and then specify in the input the Case element,
will this interopble? will it auto validate and auto marshall incoming
xml strings?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,066
Latest member
VytoKetoReviews

Latest Threads

Top