dimanche 29 mars 2015

services.xml build.xml cannot generate the stubs



build xml file



<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE project>
<project name="3500259" basedir="." default="generate.stubs">
<property environment="env"/>
<property file="build.properties"/>
<property name="build.dir" value="build"/>
<path id="axis2.classpath">
<!-- pick up log4j.properties in the project root -->
<pathelement location="./src"/>
<fileset dir="F:\axisServiceHome\axis2-1.6.2/lib">
<include name="*.jar"/>
</fileset>
</path>
<target name="generate.stubs">
<!-- modified and commented by 3500259 -->
<java classname="org.apache.axis2.wsdl.WSDL2Java" classpathref="axis2.classpath">
<!-- the location of the wsdl (which is automatically generated
by Axis) -->
<arg line="-uri ${librarywsdl.uri}"/>
<!-- overwrite existing generated code (if it exists) -->
<arg line="-or"/>
<!-- Generate Java stub (since axis is multi-language) -->
<arg line="-l java"/>
<!-- unwrap paramaters to java types -->
<arg line="-uw"/>
<!-- specifiy destination package -->
<arg line="-p stubs"/>
<!-- databinding technique between SOAP and Java (ADB=proprietry
Axis data binding) -->
<arg line="-d adb"/>
</java>
</target>
</project>


build properties file



librarywsdl.uri=http://localhost:8080/axis2/services/Library?wsdl
axis2.home=F:/axisServiceHome/axis2-1.6.2


services xml file



<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xml>
<servicegroup>
<service name="AccommodationServiceImpl"class="accommodation.AccommodationServiceImpl"scope="application" targetNamespace="http://AccommodationServiceImpl/">
<description>AccommodationService</description>
<messageReceivers>
<messageReceiver mep="http://ift.tt/1v6LyEG"
class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver" />
<messageReceiver mep="http://ift.tt/1sYKKjP"
class="org.apache.axis2.rpc.receivers.RPCMessageReceiver" />
</messageReceivers>
<schema schemaNamespace="http://AccommodationServiceImpl/xsd" />
<parameter name="AccommodationServiceImpl">AccommodationServiceImpl</parameter>
</service>
<service name="AirlineServiceImpl" class="airline.AirlineServiceImpl" scope="application" targetNamespace="http://AirlineServiceImpl/">
<description>AirlineService</description>
<messageReceivers>
<messageReceiver mep="http://ift.tt/1v6LyEG"
class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver" />
<messageReceiver mep="http://ift.tt/1sYKKjP"
class="org.apache.axis2.rpc.receivers.RPCMessageReceiver" />
</messageReceivers>
<schema schemaNamespace="http://AirlineServiceImpl/xsd" />
<parameter name="AirlineServiceImpl">AirlineServiceImpl</parameter>
</service>
</servicegroup>


error are throw out



Retrieving document at '${librarywsdl.uri}'.
[java] org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL


Is there anything wrong with the three files? I cannot generate the .arr file. These three files are from a web service project I am working on.




Aucun commentaire:

Enregistrer un commentaire