• 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

source2wsdd ant task -- need help

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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>
 
reply
    Bookmark Topic Watch Topic
  • New Topic