Win a copy of Spring Boot in Practice this week in the Spring forum!

Lillo Birillo

Greenhorn
+ Follow
since Aug 04, 2005
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Lillo Birillo

I have a problem with Betwixt. I'm trying to map a simple xml file:



I've created two beans:

ActionsBean:


The ActionsBeans isn't null but the problem is that the ActionsBeans size is always 0.

Thanks in advance

Edit Comment: Please use UBB [ code ] tags (without he spaces when posting source code.
Thanks.

- m
[ February 08, 2006: Message edited by: Madhav Lakkapragada ]
The wsdl file was generated by Axis.

I have used Axis just in order not to have to learn these concepts.
But now, I think I'll learn them.

Thanks for now...

Ciao.
16 years ago
Now I'm seeing a warning from axis :

- The class java.util.Enumeration is defined in a java or javax package and cannot be converted into
an xml schema type. An xml schema anyType will be used to define this class in the wsdl file.

What does it mean ?

The error after launch wsdl2tojava command remains:

java.io.IOException: Type {http://util.java}Enumeration is referenced but not defined.
at org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(SymbolTable.java:665)
at org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:545)
at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:518)
at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:495)
at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)
at java.lang.Thread.run(Thread.java:534)
16 years ago
Here's the revelant part of the wsdls file.

<?xml version="1.0" encoding="UTF-8"?>
<wsdl efinitions targetNamespace="http://localhost:8080/axis/services/urn:WebServiceTest"
xmlns:apachesoap="http://xml.apache.org/xml-soap"
xmlns:impl="http://localhost:8080/axis/services/urn:WebServiceTest"
xmlns:intf="http://localhost:8080/axis/services/urn:WebServiceTest"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:tns1="http://cont1.li.com"
xmlns:tns2="http://cont2.li.com"
xmlns:tns3="http://util.java"
xmlns:tns4="http://cont3.li.com"
xmlns:tns5="http://lang.java"
xmlns:tns6="http://values.li.com"
xmlns:tns7="http://sql.java"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<!--WSDL created by Apache Axis version: 1.2.1
Built on Jun 14, 2005 (09:15:57 EDT)-->
<wsdl:types>
<schema targetNamespace="http://cont2.li.com" xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://localhost:8080/axis/services/urn:WebServiceTest"/>
<import namespace="http://util.java"/>
<import namespace="http://cont1.li.com"/>
<import namespace="http://cont3.li.com"/>
<import namespace="http://lang.java"/>
<import namespace="http://values.li.com"/>
<import namespace="http://sql.java"/>
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<complexType name="ObjComp1">
<sequence>
<element name="allListNames" nillable="true" type="xsd:anyType"/>
<element name="ObjName" nillable="true" type="xsd:string"/>
</sequence>
</complexType>
<complexType name="ObjComp2">
<sequence/>
</complexType>
<complexType name="ObjComp3">
<sequence>
<element maxOccurs="unbounded" name="javaClass" nillable="true" type="xsd:anyType"/>
<element maxOccurs="unbounded" name="type" nillable="true" type="xsd:string"/>
<element maxOccurs="unbounded" name="length" type="xsd:int"/>
<element name="size" type="xsd:int"/>
<element maxOccurs="unbounded" name="name" nillable="true" type="xsd:string"/>
<element maxOccurs="unbounded" name="ObjComp2" nillable="true" type="tns2 bjComp2"/>
<element name="fieldEnumeration" nillable="true" type="tns3:Enumeration"/>
<element maxOccurs="unbounded" name="mayBeNull" type=" :boolean"/>
<element maxOccurs="unbounded" name="refData" nillable="true" type="xsd:string"/>
</sequence>
</complexType>
<complexType name="ObjComp4">
<sequence>
<element name="enumeration" nillable="true" type="tns3:Enumeration"/>
<element name="refDataTRanslation" type="xsd:boolean"/>
<element name="null" nillable="true" type="xsd:string"/>
<element name="metaData" nillable="true" type="tns2 bjComp3"/>
<element name="attributeCount" type="xsd:int"/>
</sequence>
</complexType>
</schema>
.
.
.
.

</wsdl:types>
.
.
.
.
.


Thanks
16 years ago
Thank you RR Kumaran for the answer

The wsdl was generate by Axis 1.2.
I've tried to validate it with XMLSpy 2005.

" Cannot resolve declaration or definition 'Enumeration' in namespace 'http://util.java' ".

How can I resolve the problem?

Thanks again
16 years ago
I'm currently running Apache Tomcat 4.1 with Axis 1.2.
I am not able to generate Client side code using WSDL2Java. I am getting this error:

java.io.IOException: Type {http://util.java}Enumeration is referenced but not defined.
at org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(SymbolTable.java:665)
at org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:545)
at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:518)
at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:495)
at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)
at java.lang.Thread.run(Thread.java:534)

I'm using complex objects between server and client.

Thanks!
16 years ago
Tim, thank you for the answer.
I dont'use any EJB.

The situation is:

CLIENT <-----> WEBSERVICE <----->SERVLET

The servlet sets some attributes in the session, I would read these attributes
from the web service in order to pass them to the client. The servlet and the Web Service are in the same Web Container.

THX.Bye
Lillo
17 years ago
It's possible to invoke a servlet from a web service maintainig the state ?
I would call the servlet from the web service and using the session from within it. I'm using Axis.

Thanks
Lillo
17 years ago