axis-java-dev mailing list archives

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

  A new issue has been created in JIRA.

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, 14 Apr 2004 12:07 PM
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