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 ji...@apache.org on 2004/04/14 21:09:43 UTC
[jira] Created: (AXIS-1312) Java2WSDL Document/Literal
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
[jira] Commented: (AXIS-1312) Java2WSDL Document/Literal
Posted by ji...@apache.org.
The following comment has been added to this issue:
Author: Ross Yakulis
Created: Wed, 21 Apr 2004 11:53 AM
Body:
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:
http://issues.apache.org/jira/browse/AXIS-1312?page=comments#action_35193
---------------------------------------------------------------------
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, 21 Apr 2004 11:53 AM
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