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 Davanum Srinivas <di...@yahoo.com> on 2002/11/25 17:46:42 UTC
RE: cvs commit: xml-axis/java/src/org/apache/axis/wsdl/symbolTabl e SchemaUtils.java
Tom,
I need to tweak it....Nothing special needs to be documented. Just run wsdl2java, compile the
generated code, write a main method to invoke the service. See test/wsdl/dataset for a sample.
Thanks for the encouragement,
dims
--- Tom Jordahl <to...@macromedia.com> wrote:
>
> Once again, Dims proves that he is "da MAN"!
>
> Dims, how does this work? Do we need to document it special?
>
> --
> Tom Jordahl
> Macromedia Server Development
>
>
>
> -----Original Message-----
> From: dims@apache.org [mailto:dims@apache.org]
> Sent: Sunday, November 24, 2002 9:44 AM
> To: xml-axis-cvs@apache.org
> Subject: cvs commit: xml-axis/java/src/org/apache/axis/wsdl/symbolTable
> SchemaUtils.java
>
>
> dims 2002/11/24 06:43:59
>
> Modified: java/src/org/apache/axis Constants.java
> java/src/org/apache/axis/encoding
> DefaultTypeMappingImpl.java
> java/src/org/apache/axis/wsdl/symbolTable SchemaUtils.java
> Added: java/test/wsdl/dataset build.xml DataService.wsdl
> DataServiceTestCase.java
> java/src/org/apache/axis/types Schema.java
> java/src/org/apache/axis/holders SchemaHolder.java
> Log:
> Fix for Bug 8419 - DotNet's DataSet is not supported
>
> Notes:
> - Added test case
> - support for xsd:schema in wsdl2java
>
> Revision Changes Path
> 1.1 xml-axis/java/test/wsdl/dataset/build.xml
>
> Index: build.xml
> ===================================================================
> <?xml version="1.0" ?>
> <!DOCTYPE project [
> <!ENTITY properties SYSTEM "file:../../../xmls/properties.xml">
> <!ENTITY paths SYSTEM "file:../../../xmls/path_refs.xml">
> <!ENTITY taskdefs SYSTEM "file:../../../xmls/taskdefs.xml">
> <!ENTITY taskdefs_post_compile SYSTEM "file:../../../xmls/taskdefs_post_compile.xml">
> <!ENTITY targets SYSTEM "file:../../../xmls/targets.xml">
> ]>
>
> <!-- ===================================================================
> <description>
> Test/Sample Component file for Axis
>
> Notes:
> This is a build file for use with the Jakarta Ant build tool.
>
> Prerequisites:
>
> jakarta-ant from http://jakarta.apache.org
>
> Build Instructions:
> To compile
> ant compile
> To execute
> ant run
>
> Author:
> Matt Seibert mseibert@us.ibm.com
>
> Copyright:
> Copyright (c) 2002-2003 Apache Software Foundation.
> </description>
> ==================================================================== -->
>
> <project default="compile">
>
> <property name="axis.home" location="../../.." />
> <property name="componentName" value="test/wsdl/dataset" />
> &properties;
> &paths;
> &taskdefs;
> &taskdefs_post_compile;
> &targets;
>
> <target name="clean">
> <echo message="Removing ${build.dir}/classes/${componentName} and
> ${build.dir}/work/${componentName}" />
> <delete dir="${build.dir}/classes/${componentName}"/>
> <delete dir="${build.dir}/work/${componentName}"/>
> </target>
>
> <target name="copy" depends="setenv"/>
>
> <target name="compile" depends="copy">
> <echo message="Compiling test.wsdl.dataset"/>
> <!-- This is a DII test with multiple output params -->
> <wsdl2java url="${axis.home}/test/wsdl/dataset/DataService.wsdl"
> output="${axis.home}/build/work"
> serverSide="no"
> testcase="no">
> <mapping namespace="http://tempuri.org/" package="test.wsdl.dataset"/>
> </wsdl2java>
>
> <copy todir="${build.dir}/work/test/wsdl/dataset" overwrite="yes">
> <fileset dir="${axis.home}/test/wsdl/dataset">
> <include name="*TestCase.java"/>
> </fileset>
> </copy>
>
> <javac srcdir="${build.dir}/work" destdir="${build.dest}" fork="${javac.fork}"
> debug="${debug}">
> <classpath refid="classpath" />
> <include name="test/wsdl/dataset/*.java" />
> <include name="test/wsdl/dataset/**/*.java" />
> </javac>
>
> </target>
>
> <target name="run" >
> <antcall target="execute-Component-noServer" />
> </target>
>
> </project>
>
>
>
> 1.1 xml-axis/java/test/wsdl/dataset/DataService.wsdl
>
> Index: DataService.wsdl
> ===================================================================
> <?xml version="1.0" encoding="utf-8"?>
> <definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
> xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s="http://www.w3.org/2001/XMLSchema"
> xmlns:s0="http://tempuri.org/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
> xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"
> xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" targetNamespace="http://tempuri.org/"
> xmlns="http://schemas.xmlsoap.org/wsdl/">
> <types>
> <s:schema elementFormDefault="qualified" targetNamespace="http://tempuri.org/">
> <s:import namespace="http://www.w3.org/2001/XMLSchema" />
> <s:element name="GetTitleAuthors">
> <s:complexType />
> </s:element>
> <s:element name="GetTitleAuthorsResponse">
> <s:complexType>
> <s:sequence>
> <s:element minOccurs="0" maxOccurs="1" name="GetTitleAuthorsResult">
> <s:complexType>
> <s:sequence>
> <s:element ref="s:schema" />
> <s:any />
> </s:sequence>
> </s:complexType>
> </s:element>
> </s:sequence>
> </s:complexType>
> </s:element>
> <s:element name="PutTitleAuthors">
> <s:complexType>
> <s:sequence>
> <s:element minOccurs="0" maxOccurs="1" name="DS">
> <s:complexType>
> <s:sequence>
> <s:element ref="s:schema" />
> <s:any />
> </s:sequence>
> </s:complexType>
> </s:element>
> </s:sequence>
> </s:complexType>
> </s:element>
> <s:element name="PutTitleAuthorsResponse">
> <s:complexType>
> <s:sequence>
> <s:element minOccurs="1" maxOccurs="1" name="PutTitleAuthorsResult" type="s:int"
> />
> </s:sequence>
> </s:complexType>
> </s:element>
> <s:element name="DataSet" nillable="true">
> <s:complexType>
> <s:sequence>
> <s:element ref="s:schema" />
> <s:any />
> </s:sequence>
> </s:complexType>
> </s:element>
> </s:schema>
> </types>
> <message name="GetTitleAuthorsSoapIn">
> <part name="parameters" element="s0:GetTitleAuthors" />
> </message>
> <message name="GetTitleAuthorsSoapOut">
> <part name="parameters" element="s0:GetTitleAuthorsResponse" />
> </message>
> <message name="PutTitleAuthorsSoapIn">
> <part name="parameters" element="s0:PutTitleAuthors" />
> </message>
> <message name="PutTitleAuthorsSoapOut">
> <part name="parameters" element="s0:PutTitleAuthorsResponse" />
>
=== message truncated ===
=====
Davanum Srinivas - http://xml.apache.org/~dims/
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus � Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com