Hi,
I'm trying to create a web service using an already available wsdl using Axis2 
1.3. I've set useOriginalwsdl to true in the services.xml. But, when I try to 
access the wsdl after deployment I get an error as follows:
<error>
  <description>Unable to generate WSDL 1.1 for this service</description>
  <reason>If you wish Axis2 to automatically generate the WSDL 1.1, then please 
+set useOriginalwsdl as false in your services.xml</reason>
  </error>

I've attached the build file and the wsdl along with this mail.

Thanks in advance,
Regards,
Anumodh K.S.





**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely 
for the use of the addressee(s). If you are not the intended recipient, please 
notify the sender by e-mail and delete the original message. Further, you are 
not to copy, disclose, or distribute this e-mail or its contents to any other 
person and any such actions are unlawful. This e-mail may contain viruses. 
Infosys has taken every reasonable precaution to minimize this risk, but is not 
liable for any damage you may sustain as a result of any virus in this e-mail. 
You should carry out your own virus checks before opening the e-mail or 
attachment. Infosys reserves the right to monitor and review the content of all 
messages sent to or from this e-mail address. Messages sent to or from this 
e-mail address may be stored on the Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***
<!--
  ~ Licensed to the Apache Software Foundation (ASF) under one
  ~ or more contributor license agreements. See the NOTICE file
  ~ distributed with this work for additional information
  ~ regarding copyright ownership. The ASF licenses this file
  ~ to you under the Apache License, Version 2.0 (the
  ~ "License"); you may not use this file except in compliance
  ~ with the License. You may obtain a copy of the License at
  ~
  ~ http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing,
  ~ software distributed under the License is distributed on an
  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  ~ KIND, either express or implied. See the License for the
  ~ specific language governing permissions and limitations
  ~ under the License.
  -->
<project name="pojoguidespring" basedir="." default="generate.service">

	<property environment="env" />
	<property name="service-name" value="WeatherSpringService" />
	<property name="dest.dir" value="target" />
	<property name="axis2.home" value="../../" />
	<property name="AXIS2_HOME" value="D:/axis2-1.3"/>
	<property name="repository.path" value="${axis2.home}/repository" />

	<property name="dest.dir.classes" value="${dest.dir}/classes" />

	<property name="dest.dir.lib" value="${dest.dir}/lib" />

	<property name="catalina-modules" value="${env.CATALINA_HOME}/webapps/axis2/WEB-INF/services" />

	<path id="build.class.path">
		<fileset dir="${axis2.home}/lib">
			<include name="*.jar" />
		</fileset>
		<fileset dir="${AXIS2_HOME}/lib">
		            <include name="*.jar"/>
        	</fileset>
		<!--add downloaded spring jars to classpath-->
		<fileset dir="lib">
			<include name="*.jar" />
		</fileset>
	</path>
	<path id="axis2.classpath">
        <fileset dir="${AXIS2_HOME}/lib">
            <include name="*.jar"/>
        </fileset>
        </path>
	<path id="client.class.path">
		<pathelement location="${dest.dir.classes}" />
		<fileset dir="${axis2.home}/lib">
			<include name="*.jar" />
		</fileset>
	</path>

	<target name="clean">
		<delete dir="${dest.dir}" />
	</target>

	<target name="clean.libs">
		<delete dir="lib" />
	</target>

	<target name="prepare" depends="clean">

		<mkdir dir="${dest.dir}" />

		<mkdir dir="${dest.dir.classes}" />

		<mkdir dir="${dest.dir.classes}/META-INF" />
	</target>
	
	<target name="generate.dir" depends="prepare">
		<mkdir dir="${dest.dir}" />

		<mkdir dir="${dest.dir.classes}" />
		<mkdir dir="${dest.dir.classes}/META-INF" />

		<copy file="src/META-INF/services.xml" tofile="${dest.dir.classes}/META-INF/services.xml" overwrite="true" />
		<copy file="src/applicationContext.xml" tofile="${dest.dir.classes}/applicationContext.xml" overwrite="true" />
		<copy file="src/IWeatherSpring.wsdl" tofile="${dest.dir.classes}/META-INF/IWeatherSpring.wsdl" overwrite="true" />

		<javac debug="on" srcdir="src" destdir="${dest.dir.classes}" includes="sample/**">
			<classpath refid="build.class.path" />
		</javac>
	</target>
	
	<target name="generate.service" depends="generate.dir">
		
		
		<jar basedir="${dest.dir.classes}" destfile="${dest.dir}/${service-name}.aar" />

		<copy file="${dest.dir}/${service-name}.aar" tofile="${repository.path}/services/${service-name}.aar" overwrite="true" />
	</target>
</project>

Attachment: IWeatherSpring.wsdl
Description: IWeatherSpring.wsdl

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to