axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [jira] Commented: (AXIS-1312) Java2WSDL Document/Literal
Date Wed, 21 Apr 2004 18:53:53 GMT
The following comment has been added to this issue:

     Author: Ross Yakulis
    Created: Wed, 21 Apr 2004 11:53 AM
I suggest you make sure the following cases work before
relesing Axis 1.2.   Given the tools Java2WSDL and WSDL2Java
a user should be able to run the simple java in this bug report 
through Java2WSDL using the various combinations, and then 
take that output (wdsl files) and inpu them into WSDL2Java
to create the services.  Otherwise the tools are usless.

// create wsdl files in the various combinations
java org.apache.axis.wsdl.Java2WSDL -l http://localhost:8080 -T 1.2 -u encoded -n NS.TestService
-y rpc -o RpcEnc.wsdl TestService

java org.apache.axis.wsdl.Java2WSDL -l http://localhost:8080 -T 1.2 -u literal -n NS.TestService
-y rpc -o RpcLit.wsdl TestService

java org.apache.axis.wsdl.Java2WSDL -l http://localhost:8080 -u encoded -T 1.2 -n NS.TestService
-y document -o DocEnc.wsdl TestService

java org.apache.axis.wsdl.Java2WSDL -l http://localhost:8080 -u literal -T 1.2 -n NS.TestService
-y document -o DocLit.wsdl TestService

java org.apache.axis.wsdl.Java2WSDL -l http://localhost:8080 -u encoded -T 1.2 -n NS.TestService
-y wrapped -o WrapEnc.wsdl TestService

java org.apache.axis.wsdl.Java2WSDL -l http://localhost:8080 -u literal -T 1.2 -n NS.TestService
-y wrapped -o WrapLit.wsdl TestService

// Now generate the services for the above combinations
java org.apache.axis.wsdl.WSDL2Java -s -a -p service.rpc.enc  -T 1.2 -o src RpcEnc.wsdl

java org.apache.axis.wsdl.WSDL2Java -s -a -p service.rpc.literal  -T 1.2 -o src RpcLit.wsdl

java org.apache.axis.wsdl.WSDL2Java -s -a -p service.doc.enc  -T 1.2 -o src DocEnc.wsdl

java org.apache.axis.wsdl.WSDL2Java -s -a -p service.doc.literal  -T 1.2 -o src DocLit.wsdl

java org.apache.axis.wsdl.WSDL2Java -s -a -p service.wrap.enc  -T 1.2 -o src WrapEnc.wsdl

java org.apache.axis.wsdl.WSDL2Java -s -a -p service.wrap.literal  -T 1.2 -o src WrapLit.wsdl

View this comment:

View the issue:

Here is an overview of the issue:
        Key: AXIS-1312
    Summary: Java2WSDL Document/Literal
       Type: Bug

     Status: Unassigned
   Priority: Major

    Project: Axis
             WSDL processing
             1.2 Alpha

   Reporter: Ross Yakulis

    Created: Wed, 14 Apr 2004 12:07 PM
    Updated: Wed, 21 Apr 2004 11:53 AM
Environment: Win2k Java 1.4

With axis 1.1 I was able to use Java2WSDL and WSDL2Java to generate 
a web service given a some java files in RPC/Literal RPC/Encoded
Document/Encodec and Document/Literal.   

However, doing the same with 1.2 I receive errors using the same source files.  I assume this
has to do with making the RPC literal and document literal support more conformant for the

In particular I get the following error when generating a document/literal wsdl file:

	Please register a typemapping/beanmapping for 'Info'
        at org.apache.axis.wsdl.fromJava.Emitter.writePartToMessage
        at org.apache.axis.wsdl.fromJava.Emitter.writeRequestMessage
        at org.apache.axis.wsdl.fromJava.Emitter.writeMessages(

However I see no place on the command line options to specify such a mapping.  Note I am not
using EJB or any thing fancy.  My test service
just illustrates a few basic cases:

 - send an int param, receive an int response
 - send a simple bean (Info) and receive a bean reply
 - send an array of simple beans (Info) and receive the array back.
 - send an array of int and receive the int array back.


------------ Java files -----------------------
public class TestService {
	public int add(int ax, int bx) {
		return (0);
    public int sub(int a1, int b1) {
		return (0);
    public Info srInfo(Info info) {
		return (null);
    public Info[] srArrayInfo(Info[] info) {
		return (null);
    public int[] srArrayInt(int[] ints) {
		return (null);

------------ Java files -----------------------
public class Info {
    private int age;
    private java.lang.String name;
    private java.lang.String phone;

    public Info() {
    public int getAge() {
        return age;
    public void setAge(int age) {
        this.age = age;
    public java.lang.String getName() {
        return name;
    public void setName(java.lang.String name) { = name;
    public java.lang.String getPhone() {
        return phone;
    public void setPhone(java.lang.String phone) { = phone;

This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:

If you want more information on JIRA, or have a bug to report see:

View raw message