You can use the ant task to specify these - see
http://cvs.apache.org/viewcvs.cgi/*checkout*/ws-axis/java/samples/ejb/ant-build.xml
for an
example.
-- dims
--- "Yakulis, Ross (Ross)" <[EMAIL PROTECTED]> wrote:
> 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 hte 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 not place on the commandline options to specify such a mapping.
> Is this a bug in Java2WSDL, or did I miss something?
>
> 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;
> }
> }
=====
Davanum Srinivas - http://webservices.apache.org/~dims/