You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org> on 2007/11/19 14:06:48 UTC
[jira] Resolved: (AXIS2-3066) Unresolved symbol when using
attribute
[ https://issues.apache.org/jira/browse/AXIS2-3066?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Amila Chinthaka Suriarachchi resolved AXIS2-3066.
-------------------------------------------------
Resolution: Fixed
fixed in the nighly builds
> Unresolved symbol when using attribute
> ---------------------------------------
>
> Key: AXIS2-3066
> URL: https://issues.apache.org/jira/browse/AXIS2-3066
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: wsdl
> Affects Versions: nightly
> Reporter: Davanum Srinivas
> Assignee: Amila Chinthaka Suriarachchi
> Priority: Critical
>
> Cut-n-paste from email on axis-user
> Here is the build.xml
> <!--Start Build XML -->
> <?xml version='1.0' encoding='UTF-8' ?>
> <!--
> $Author: sjh $
> $Revision: 108 $
> $Date: 2007-08-03 15:22:13 +0100 (Fri, 03 Aug 2007) $
> Build file for testing wsdl
> Copyright (c) British Telecommunications plc 2007
> -->
> <project name="Test WSDL2Java" default="compile" basedir=".">
> <!-- ==================== External Dependencies ========== -->
> <!-- Locations -->
> <property name="classes" value="${basedir}/classes"/>
> <property name="java" value="${basedir}/java"/>
> <property name="source" value="${java}/src"/>
> <!-- WSDL -->
> <property name="wsdl.file" value="test.wsdl"/>
> <!-- Downloads Under Test -->
> <property name="test.downloads" value="${user.home}/.downloads"/>
> <property name="axis2.v1_2" value="${test.downloads}/axis2-1.2"/>
> <property name="axis2.v1_3" value="${test.downloads}/axis2-1.3-RC3"/>
> <property name="axis2.home" value="${axis2.v1_3}"/>
> <!-- Axis -->
> <property name="axis2.lib" value="${axis2.home}/lib"/>
> <path id="axis.classpath">
> <fileset dir="${axis2.lib}">
> <include name="**/*.jar"/>
> </fileset>
> </path>
> <taskdef name="wsdl2java"
> classname="org.apache.axis2.tool.ant.AntCodegenTask"
> classpathref="axis.classpath" />
> <!-- ==================== WSDL Target ==================== -->
> <target name="wsdl-client"
> description="Generate WSDL implementation classes for the client
> side"
> >
> <wsdl2java
> wsdlfilename="${wsdl.file}"
> output="${java}/"
> unpackClasses="true"
> />
> </target>
> <target name="wsdl" depends="wsdl-client"
> description="Generate the classes required for a default build"/>
> <!-- ==================== Compile Target ================= -->
> <target name="compile"
> description="Compile generated SOAP classes">
> <mkdir dir="${classes}"/>
> <javac srcdir="${source}" destdir="${classes}"
> classpathref="axis.classpath"/>
> </target>
> <!-- ==================== Clean Target =================== -->
> <target name="clean"
> description="Remove auto-generated WSDL implementation classes">
> <delete dir="${classes}"/>
> <delete dir="${source}"/>
> <delete dir="${java}"/>
> </target>
> <!-- ==================== END OF PROJECT ================= -->
> </project>
> <!-- ==================== End ============================ -->
> <!-- End Build XML -->
> And here is the WSDL file
> <!-- Start Test WSDL -->
> <?xml version='1.0' encoding='UTF-8' ?>
> <!--
> $Author: sjh $
> $Revision: 107 $
> $Date: 2007-08-03 15:21:15 +0100 (Fri, 03 Aug 2007) $
> Service definition for SOAP testing
> Copyright (c) British Telecommunications plc 2007
> -->
> <wsdl:definitions
> name="testWsdl"
> targetNamespace="http://localhost/testWsdl"
> xmlns="http://schemas.xmlsoap.org/wsdl/"
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
> xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
> xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
> xmlns:test="http://localhost/testWsdl"
> - Show quoted text -
> >
> <!-- ==================== Types ========================== -->
> <wsdl:types>
> <xsd:schema
> targetNamespace="http://localhost/testWsdl"
> >
> <xsd:complexType name="abstractMessage" abstract="true">
> <xsd:attribute name="sequence" type="xsd:unsignedLong"/>
> </xsd:complexType>
> <xsd:complexType name="message">
> <xsd:complexContent>
> <xsd:extension base="test:abstractMessage">
> <xsd:choice>
> <xsd:element name="userId" type="xsd:string"/>
> <xsd:element name="content" type="xsd:string"/>
> </xsd:choice>
> </xsd:extension>
> </xsd:complexContent>
> </xsd:complexType>
> <xsd:element name="messageReq" type="test:message"/>
> <xsd:element name="messageResp" type="test:message"/>
> </xsd:schema>
> </wsdl:types>
> <!-- ==================== Messages ======================= -->
> <wsdl:message name="messageRequest">
> <wsdl:part name="parameters" element="test:messageReq"/>
> </wsdl:message>
> <wsdl:message name="messageResponse">
> <wsdl:part name="parameters" element="test:messageResp"/>
> </wsdl:message>
> <!-- ==================== PortType Operations ============ -->
> <wsdl:portType name="MessagePortType">
> <wsdl:operation name="sendMessage">
> <wsdl:input message="test:messageRequest"/>
> <wsdl:output message="test:messageResponse"/>
> </wsdl:operation>
> </wsdl:portType>
> <!-- ==================== Protocol Binding =============== -->
> <wsdl:binding name="MessageBinding" type="test:MessagePortType">
> <soap:binding transport="http://schemas.xmlsoap.org/soap/http"
> style="document"/>
> <wsdl:operation name="sendMessage">
> <soap:operation soapAction=""/>
> <wsdl:input>
> <soap:body use="literal"/>
> </wsdl:input>
> <wsdl:output>
> <soap:body use="literal"/>
> </wsdl:output>
> </wsdl:operation>
> </wsdl:binding>
> <!-- ==================== Service Name =================== -->
> <wsdl:service name="TestMessageService">
> <wsdl:port name="TestPort" binding="test:MessageBinding">
> <soap:address location="https://localhost/wsdlTest/"/>
> </wsdl:port>
> </wsdl:service>
> <!-- ==================== End ============================ -->
> </wsdl:definitions>
> <!-- ===================================================== -->
> <!-- End Test WSDL -->
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org