axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject [jira] Created: (AXIS-1312) Java2WSDL Document/Literal
Date Wed, 14 Apr 2004 19:09:43 GMT
Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/AXIS-1312

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

     Status: Unassigned
   Priority: Major

    Project: Axis
 Components: 
             WSDL processing
   Versions:
             1.2 Alpha

   Assignee: 
   Reporter: Ross Yakulis

    Created: Wed, 14 Apr 2004 12:07 PM
    Updated: Wed, 14 Apr 2004 12:07 PM
Environment: Win2k Java 1.4

Description:
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
WS-I BP.

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
           (Emitter.java:1717)
        at org.apache.axis.wsdl.fromJava.Emitter.writeRequestMessage
           (Emitter.java:1394)
        at org.apache.axis.wsdl.fromJava.Emitter.writeMessages(Emitter.java:1086
	 ...
       ...

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.

Ross


------------ Java files TestService.java -----------------------
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 Info.java -----------------------
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) {
        this.name = name;
    }
    public java.lang.String getPhone() {
        return phone;
    }
    public void setPhone(java.lang.String phone) {
        this.phone = phone;
    }
}



---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


Mime
View raw message