IntelliJ Java IDE
The moose likes Web Services and the fly likes source2wsdd ant task -- need help Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "source2wsdd ant task -- need help" Watch "source2wsdd ant task -- need help" New topic
Author

source2wsdd ant task -- need help

Dan Cleary
Greenhorn

Joined: Nov 26, 2005
Posts: 10
All,

Help would be greatly appreciated, have a ridiculous work deadline and am new to webservices.

I'm starting with a defined XML schema. With the schema, I am able to use autotype to generate java classes. (autotype entry in bold)


<target name="convertXml">
<autotype schemaFile="facSvc.xsd"
packageName="examples.webservices.basic.javaclass"
destDir="${build}" />
</target>


From there, I can build my service and generate ears, etc. However, when I attempt to use the source2wsdd ant task (entry in bold below), compilation of RubyAlarmService.java fails because of unresolved symbols (where it references classes in "examples.webservices.basic.javaclass"). My classpath points to the correct directory and I import the right package. When I use
autotype, does packageName not mean, create a package named "examples.webservices.basic.javaclass"??


<target name="wsdl">
<source2wsdd javaSource="${source}/RubyAlarmService.java"
ddFile="${ddFile}"
typesInfo="${build}/types.xml"
serviceURI="/RubyAlarm"
wsdlFile="${wsdlFiles}/RubyAlarm.wsdl" />
</target>



thanks - Dan
Dan Cleary
Greenhorn

Joined: Nov 26, 2005
Posts: 10
I'm just flat out stuck... I mucked with the sourcePath attribute of source2wsdd and also attempted to explicitly define path (shown below) to no avail. I still get the same error...

<target name="wsdl">
<source2wsdd javaSource="${source}/RubyAlarmService.java"
ddFile="${ddFile}/web-services.xml"
typesInfo="${build}/types.xml"
serviceURI="/RubyAlarm"
wsdlFile="${wsdlFiles}/RubyAlarm.wsdl">
<classpath>
<pathelement location="${build}/examples/webservices/basic/javaclass"/>
<pathelement path="${java.class.path}"/>
</classpath>
</source2wsdd>
</target>
 
 
subject: source2wsdd ant task -- need help
 
Threads others viewed
clientgen WSBuildException Could not find ejbjar for component
Generating Webservice with Ant. Source2wsdd
weblogic character set problem
Problem in creating web-services.xml
ANT build script fails with JAXB classes in use
developer file tools

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture