• Post Reply Bookmark Topic Watch Topic
  • New Topic

source2wsdd ant task -- need help

 
Dan Cleary
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • 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
  • 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>
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!