Re: Returning a java map

2007-07-23 Thread Dan Diephouse

Hiya,

Now I've really fixed this in SVN and integrated in a test case. You can try
building the CXF sources yourself, or we'll get a snapshot published
sometime before tomorrow I believe. Thanks,

- Dan

On 7/22/07, Dan Diephouse [EMAIL PROTECTED] wrote:


Hi Julio,
In case you thought we've forgotten about you - I've confirmed this issue
and am working on a fix. I should have something within the next 24 hours,
if not tonight. Thanks,
- Dan

On 7/20/07, Julio Arias [EMAIL PROTECTED] wrote:

 I try the latest SNAPSHOT (apache-cxf-2.0.1-
 incubator-20070720.021044-2.tar.gz ) and still is not working. The
 WSDL here is not the same I put first but it has the same problem.

 --SEI---

 @WebService(
  targetNamespace = http://client.webservice.crm.ecot.com/
 skeleton/StudentService,
  name = StudentService
 )
 @SOAPBinding(style = SOAPBinding.Style.RPC, use =
 SOAPBinding.Use.LITERAL)
 public interface StudentService {

  public StudentVO findStudent(Long id);

  public MapLong, StudentVO getStudentsMap();

  public ListStudentVO getStudents(MapString, String filters);

  public ListStudentVO getStudentsByIds(ListString ids);

 }

 ---Spring config-


  bean id=aegisDatabinding
class=org.apache.cxf.aegis.databinding.AegisDatabinding/


  bean id=userServiceImpl
 class=com.altair.cls.web.service.crm.UserServiceImpl 
  property name=userManager ref=userManager/
  /bean

  jaxws:endpoint id=userService address=/UserService
 implementor=#userServiceImpl

  jaxws:serviceFactory
  bean
 class=org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean
  property name=dataBinding ref=aegisDatabinding/
  /bean
  /jaxws:serviceFactory

   /jaxws:endpoint


  WSDL-

 ?xml version=1.0 encoding=utf-8?
 wsdl:definitions name=StudentService targetNamespace=http://
 client.webservice.crm.ecot.com/skeleton/StudentService
 xmlns:ns1=http://client.webservice.crm.ecot.com/skeleton/
 StudentService xmlns:ns2=urn:com:ecot:crm:webservice:vo:student
 xmlns:soap= http://schemas.xmlsoap.org/wsdl/soap/; xmlns:wsdl=http://
 schemas.xmlsoap.org/wsdl/ xmlns:xsd= http://www.w3.org/2001/XMLSchema
 
wsdl:types
 schema attributeFormDefault=qualified
 elementFormDefault=qualified targetNamespace=http://
 client.webservice.crm.ecot.com/skeleton/StudentService xmlns=http://
 www.w3.org/2001/XMLSchema
 complexType name=ArrayOfString
 sequence
 element maxOccurs=unbounded minOccurs=0 name=string
 nillable=true type=string/
 /sequence
 /complexType
 complexType name=anyType2anyTypeMap
 sequence
 element maxOccurs=unbounded minOccurs=0 name=entry
 complexType
 sequence
 element minOccurs=0 name=key type=anyType/
 element minOccurs=0 name=value type=anyType/

 /sequence
 /complexType
 /element
 /sequence
 /complexType
 /schema

 schema attributeFormDefault=qualified
 elementFormDefault=qualified
 targetNamespace=urn:com:ecot:crm:webservice:vo:student
 xmlns= http://www.w3.org/2001/XMLSchema;
 complexType name=ArrayOfStudentVO
 sequence
 element maxOccurs=unbounded minOccurs=0 name=StudentVO
 nillable=true type=ns1:StudentVO/
 /sequence
 /complexType
 complexType name=StudentVO
 sequence
 element minOccurs=0 name=SEPId nillable=true type=long/
 element minOccurs=0 name=address nillable=true type=string/

 element minOccurs=0 name=admittedDate nillable=true
 type=string/
 element minOccurs=0 name=adultFirstName nillable=true
 type=string/
 element minOccurs=0 name=adultLastName nillable=true
 type=string/
 element minOccurs=0 name=birthDate nillable=true type=string/
 element minOccurs=0 name=country nillable=true type=string/
 element minOccurs=0 name=email nillable=true type=string/
 element minOccurs=0 name=enrolledDate nillable=true
 type=string/
 element minOccurs=0 name=firstName nillable=true type=string/
 element minOccurs=0 name=gender nillable=true type=string/
 element minOccurs=0 name=grade nillable=true type=string/
 element minOccurs=0 name=lastName nillable=true type=string/
 element minOccurs=0 name=phone nillable=true type=string/
 element minOccurs=0 name=status nillable=true type=string/
 any maxOccurs=unbounded/
 /sequence
 /complexType
 /schema

/wsdl:types
wsdl:message name=findStudent
  wsdl:part name=arg0 type=xsd:long
  /wsdl:part
/wsdl:message
wsdl:message name=getStudentsByIdsResponse
  wsdl:part name=return type=ns2:ArrayOfStudentVO
  /wsdl:part

/wsdl:message
wsdl:message name=getStudentsByIds
  wsdl:part name=arg0 type=ns1:ArrayOfString
  /wsdl:part
/wsdl:message
wsdl:message name=findStudentResponse
  wsdl:part name=return type=ns2:StudentVO
  /wsdl:part
/wsdl:message

wsdl:message name=getStudentsMap
/wsdl:message
wsdl:message name=getStudentsResponse
  wsdl:part name=return 

Re: Returning a java map

2007-07-23 Thread Julio Arias

Thanks Dan, I'll test it and let u know.

On Jul 23, 2007, at 7:31 AM, Dan Diephouse wrote:


Hiya,

Now I've really fixed this in SVN and integrated in a test case.  
You can try

building the CXF sources yourself, or we'll get a snapshot published
sometime before tomorrow I believe. Thanks,

- Dan

On 7/22/07, Dan Diephouse [EMAIL PROTECTED] wrote:


Hi Julio,
In case you thought we've forgotten about you - I've confirmed  
this issue
and am working on a fix. I should have something within the next  
24 hours,

if not tonight. Thanks,
- Dan

On 7/20/07, Julio Arias [EMAIL PROTECTED] wrote:

 I try the latest SNAPSHOT (apache-cxf-2.0.1-
 incubator-20070720.021044-2.tar.gz ) and still is not working. The
 WSDL here is not the same I put first but it has the same problem.

 --SEI---

 @WebService(
  targetNamespace = http://client.webservice.crm.ecot.com/
 skeleton/StudentService,
  name = StudentService
 )
 @SOAPBinding(style = SOAPBinding.Style.RPC, use =
 SOAPBinding.Use.LITERAL)
 public interface StudentService {

  public StudentVO findStudent(Long id);

  public MapLong, StudentVO getStudentsMap();

  public ListStudentVO getStudents(MapString, String  
filters);


  public ListStudentVO getStudentsByIds(ListString ids);

 }

 ---Spring config-


  bean id=aegisDatabinding
 
class=org.apache.cxf.aegis.databinding.AegisDatabinding/



  bean id=userServiceImpl
 class=com.altair.cls.web.service.crm.UserServiceImpl 
  property name=userManager ref=userManager/
  /bean

  jaxws:endpoint id=userService address=/UserService
 implementor=#userServiceImpl

  jaxws:serviceFactory
  bean
 class=org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean
  property name=dataBinding  
ref=aegisDatabinding/

  /bean
  /jaxws:serviceFactory

   /jaxws:endpoint


  WSDL-

 ?xml version=1.0 encoding=utf-8?
 wsdl:definitions name=StudentService targetNamespace=http://
 client.webservice.crm.ecot.com/skeleton/StudentService
 xmlns:ns1=http://client.webservice.crm.ecot.com/skeleton/
 StudentService xmlns:ns2=urn:com:ecot:crm:webservice:vo:student
 xmlns:soap= http://schemas.xmlsoap.org/wsdl/soap/;  
xmlns:wsdl=http://
 schemas.xmlsoap.org/wsdl/ xmlns:xsd= http://www.w3.org/2001/ 
XMLSchema

 
wsdl:types
 schema attributeFormDefault=qualified
 elementFormDefault=qualified targetNamespace=http://
 client.webservice.crm.ecot.com/skeleton/StudentService  
xmlns=http://

 www.w3.org/2001/XMLSchema
 complexType name=ArrayOfString
 sequence
 element maxOccurs=unbounded minOccurs=0 name=string
 nillable=true type=string/
 /sequence
 /complexType
 complexType name=anyType2anyTypeMap
 sequence
 element maxOccurs=unbounded minOccurs=0 name=entry
 complexType
 sequence
 element minOccurs=0 name=key type=anyType/
 element minOccurs=0 name=value type=anyType/

 /sequence
 /complexType
 /element
 /sequence
 /complexType
 /schema

 schema attributeFormDefault=qualified
 elementFormDefault=qualified
 targetNamespace=urn:com:ecot:crm:webservice:vo:student
 xmlns= http://www.w3.org/2001/XMLSchema;
 complexType name=ArrayOfStudentVO
 sequence
 element maxOccurs=unbounded minOccurs=0 name=StudentVO
 nillable=true type=ns1:StudentVO/
 /sequence
 /complexType
 complexType name=StudentVO
 sequence
 element minOccurs=0 name=SEPId nillable=true type=long/
 element minOccurs=0 name=address nillable=true  
type=string/


 element minOccurs=0 name=admittedDate nillable=true
 type=string/
 element minOccurs=0 name=adultFirstName nillable=true
 type=string/
 element minOccurs=0 name=adultLastName nillable=true
 type=string/
 element minOccurs=0 name=birthDate nillable=true  
type=string/
 element minOccurs=0 name=country nillable=true  
type=string/

 element minOccurs=0 name=email nillable=true type=string/
 element minOccurs=0 name=enrolledDate nillable=true
 type=string/
 element minOccurs=0 name=firstName nillable=true  
type=string/
 element minOccurs=0 name=gender nillable=true  
type=string/

 element minOccurs=0 name=grade nillable=true type=string/
 element minOccurs=0 name=lastName nillable=true  
type=string/

 element minOccurs=0 name=phone nillable=true type=string/
 element minOccurs=0 name=status nillable=true  
type=string/

 any maxOccurs=unbounded/
 /sequence
 /complexType
 /schema

/wsdl:types
wsdl:message name=findStudent
  wsdl:part name=arg0 type=xsd:long
  /wsdl:part
/wsdl:message
wsdl:message name=getStudentsByIdsResponse
  wsdl:part name=return type=ns2:ArrayOfStudentVO
  /wsdl:part

/wsdl:message
wsdl:message name=getStudentsByIds
  wsdl:part name=arg0 type=ns1:ArrayOfString
  /wsdl:part
/wsdl:message
wsdl:message name=findStudentResponse
  wsdl:part name=return type=ns2:StudentVO
  /wsdl:part
/wsdl:message


Re: Returning a java map

2007-07-22 Thread Dan Diephouse

Hi Julio,
In case you thought we've forgotten about you - I've confirmed this issue
and am working on a fix. I should have something within the next 24 hours,
if not tonight. Thanks,
- Dan

On 7/20/07, Julio Arias [EMAIL PROTECTED] wrote:


I try the latest SNAPSHOT (apache-cxf-2.0.1-
incubator-20070720.021044-2.tar.gz ) and still is not working. The
WSDL here is not the same I put first but it has the same problem.

--SEI---

@WebService(
 targetNamespace = http://client.webservice.crm.ecot.com/
skeleton/StudentService,
 name = StudentService
)
@SOAPBinding(style = SOAPBinding.Style.RPC, use =
SOAPBinding.Use.LITERAL)
public interface StudentService {

 public StudentVO findStudent(Long id);

 public MapLong, StudentVO getStudentsMap();

 public ListStudentVO getStudents(MapString, String filters);

 public ListStudentVO getStudentsByIds(ListString ids);

}

---Spring config-


 bean id=aegisDatabinding
   class=org.apache.cxf.aegis.databinding.AegisDatabinding/


 bean id=userServiceImpl
class=com.altair.cls.web.service.crm.UserServiceImpl
 property name=userManager ref=userManager/
 /bean

 jaxws:endpoint id=userService address=/UserService
implementor=#userServiceImpl

 jaxws:serviceFactory
 bean
class=org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean
 property name=dataBinding ref=aegisDatabinding/
 /bean
 /jaxws:serviceFactory

  /jaxws:endpoint


 WSDL-

?xml version=1.0 encoding=utf-8?
wsdl:definitions name=StudentService targetNamespace=http://
client.webservice.crm.ecot.com/skeleton/StudentService
xmlns:ns1=http://client.webservice.crm.ecot.com/skeleton/
StudentService xmlns:ns2=urn:com:ecot:crm:webservice:vo:student
xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/; xmlns:wsdl=http://
schemas.xmlsoap.org/wsdl/ xmlns:xsd=http://www.w3.org/2001/XMLSchema;
   wsdl:types
schema attributeFormDefault=qualified
elementFormDefault=qualified targetNamespace=http://
client.webservice.crm.ecot.com/skeleton/StudentService xmlns=http://
www.w3.org/2001/XMLSchema
complexType name=ArrayOfString
sequence
element maxOccurs=unbounded minOccurs=0 name=string
nillable=true type=string/
/sequence
/complexType
complexType name=anyType2anyTypeMap
sequence
element maxOccurs=unbounded minOccurs=0 name=entry
complexType
sequence
element minOccurs=0 name=key type=anyType/
element minOccurs=0 name=value type=anyType/

/sequence
/complexType
/element
/sequence
/complexType
/schema

schema attributeFormDefault=qualified
elementFormDefault=qualified
targetNamespace=urn:com:ecot:crm:webservice:vo:student
xmlns=http://www.w3.org/2001/XMLSchema;
complexType name=ArrayOfStudentVO
sequence
element maxOccurs=unbounded minOccurs=0 name=StudentVO
nillable=true type=ns1:StudentVO/
/sequence
/complexType
complexType name=StudentVO
sequence
element minOccurs=0 name=SEPId nillable=true type=long/
element minOccurs=0 name=address nillable=true type=string/

element minOccurs=0 name=admittedDate nillable=true
type=string/
element minOccurs=0 name=adultFirstName nillable=true
type=string/
element minOccurs=0 name=adultLastName nillable=true
type=string/
element minOccurs=0 name=birthDate nillable=true type=string/
element minOccurs=0 name=country nillable=true type=string/
element minOccurs=0 name=email nillable=true type=string/
element minOccurs=0 name=enrolledDate nillable=true
type=string/
element minOccurs=0 name=firstName nillable=true type=string/
element minOccurs=0 name=gender nillable=true type=string/
element minOccurs=0 name=grade nillable=true type=string/
element minOccurs=0 name=lastName nillable=true type=string/
element minOccurs=0 name=phone nillable=true type=string/
element minOccurs=0 name=status nillable=true type=string/
any maxOccurs=unbounded/
/sequence
/complexType
/schema

   /wsdl:types
   wsdl:message name=findStudent
 wsdl:part name=arg0 type=xsd:long
 /wsdl:part
   /wsdl:message
   wsdl:message name=getStudentsByIdsResponse
 wsdl:part name=return type=ns2:ArrayOfStudentVO
 /wsdl:part

   /wsdl:message
   wsdl:message name=getStudentsByIds
 wsdl:part name=arg0 type=ns1:ArrayOfString
 /wsdl:part
   /wsdl:message
   wsdl:message name=findStudentResponse
 wsdl:part name=return type=ns2:StudentVO
 /wsdl:part
   /wsdl:message

   wsdl:message name=getStudentsMap
   /wsdl:message
   wsdl:message name=getStudentsResponse
 wsdl:part name=return type=ns2:ArrayOfStudentVO
 /wsdl:part
   /wsdl:message
   wsdl:message name=getStudents
 wsdl:part name=arg0 type=ns1:anyType2anyTypeMap
 /wsdl:part

   /wsdl:message
   wsdl:message name=getStudentsMapResponse
 wsdl:part name=return type=ns1:anyType2anyTypeMap
 /wsdl:part
   /wsdl:message
   wsdl:portType name=StudentService
 wsdl:operation name=getStudentsByIds
   

Re: Returning a java map

2007-07-20 Thread Jim Ma

Hi ,

I used eclipse stp to validate this wsdl and found two errors  : 
in  this line element minOccurs=0 name=id nillable=true 
type=ns0:UUID/, the namespace prefix  ns0 is not defined .
in this line element minOccurs=0 name=context nillable=true 
type=ns1:Context/ , context element can not be found in ns1 namespace ,

it's defined in namespace http://metadata.core.lor.rbx.com; .

Cheers
Jim



Julio Arias wrote:

Hi Jim -

I partially fix this, I change the data binding to Aegis (now the map 
has a type in the WSDL) but now I get a different problem with wsdl2java
The WSDL looks very similar at the one generated by xFire I think 
there is a problem with the WSDL namespaces but I'm not sure what.

This is the WSDL:

?xml version=1.0 encoding=utf-8?
wsdl:definitions name=MetadataService 
targetNamespace=http://lor.rbx.com/ws/metadata; 
xmlns:ns1=http://lor.rbx.com/ws/metadata; 
xmlns:ns2=urn:com:rbx:lor:ws:model xmlns:ns3=http://util.java; 
xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/; 
xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/; 
xmlns:xsd=http://www.w3.org/2001/XMLSchema;

  wsdl:types
schema attributeFormDefault=qualified 
elementFormDefault=qualified 
targetNamespace=http://metadata.core.lor.rbx.com; 
xmlns=http://www.w3.org/2001/XMLSchema;

simpleType name=DocumentLanguage
restriction base=string
enumeration value=Any/
enumeration value=English/
/restriction
/simpleType
simpleType name=DocumentDegreeInteractivity
restriction base=string
enumeration value=Any/
enumeration value=VeryLow/
enumeration value=Low/
enumeration value=Medium/

enumeration value=High/
enumeration value=VeryHigh/
/restriction
/simpleType
simpleType name=DocumentFormat
restriction base=string
enumeration value=Any/
enumeration value=HTML_XHTML/
enumeration value=SHOWCKWAVE_FLASH/
enumeration value=FLASH_VIDEO/
enumeration value=JPEG/
enumeration value=GIF/
enumeration value=MPEG/
enumeration value=PDF/
enumeration value=MSWORD/
enumeration value=MSEXCEL/
enumeration value=MSPOWERPOINT/

enumeration value=XML/
/restriction
/simpleType
simpleType name=DocumentDifficulty
restriction base=string
enumeration value=Any/
enumeration value=VeryLow/
enumeration value=Low/
enumeration value=Medium/
enumeration value=High/
enumeration value=VeryHigh/
/restriction
/simpleType
simpleType name=DocumentLearningResourceType
restriction base=string
enumeration value=Any/
enumeration value=Excercise/

enumeration value=Simulation/
enumeration value=Questionnaire/
enumeration value=Diagram/
enumeration value=Figure/
enumeration value=Graph/
enumeration value=Index/
enumeration value=Slide/
enumeration value=Table/
enumeration value=NarrativeText/
enumeration value=Exam/
enumeration value=Experiment/
enumeration value=ProblemStatement/
enumeration value=SelfAssesment/
/restriction
/simpleType
simpleType name=DocumentIntendedEndUser
restriction base=string

enumeration value=Any/
enumeration value=Teacher/
enumeration value=Author/
enumeration value=Learner/
enumeration value=Manager/
/restriction
/simpleType
simpleType name=Context
restriction base=string
enumeration value=Any/
enumeration value=PrimaryEducation/
enumeration value=SecondaryEducation/
enumeration value=HigherEducation/
enumeration value=UniversityFirstCycle/
enumeration value=UniversitySecondCycle/
enumeration value=UniversityPostgrade/
enumeration value=TechnicalSchoolFirstCycle/

enumeration value=TechnicalSchoolSecondCycle/
enumeration value=ProfessionalFormation/
enumeration value=ContinuousFormation/
enumeration value=VocationalTraining/
/restriction
/simpleType
simpleType name=DocumentStatus
restriction base=string
enumeration value=Any/
enumeration value=Draft/
enumeration value=Final/
enumeration value=Revised/
enumeration value=Unavailable/
/restriction
/simpleType
simpleType name=DocumentInteractivityType
restriction base=string

enumeration value=Any/
enumeration value=Active/
enumeration value=Expositive/
enumeration value=Mixed/
enumeration value=Undefined/
/restriction
/simpleType
/schema

schema attributeFormDefault=qualified 
elementFormDefault=qualified 
targetNamespace=http://lor.rbx.com/ws/metadata; 
xmlns=http://www.w3.org/2001/XMLSchema;

complexType name=anyType2anyTypeMap
sequence
element maxOccurs=unbounded minOccurs=0 name=entry
complexType
sequence
element minOccurs=0 name=key type=anyType/
element minOccurs=0 name=value type=anyType/

/sequence
/complexType
/element
/sequence
/complexType
/schema

schema attributeFormDefault=qualified 
elementFormDefault=qualified 
targetNamespace=urn:com:rbx:lor:ws:model 
xmlns=http://www.w3.org/2001/XMLSchema; xmlns:ns0=http://util.java; 
xmlns:ns1=http://metadata.core.lor.rbx.com;

complexType name=User
sequence
element minOccurs=0 name=firstName nillable=true type=string/
element minOccurs=0 name=id nillable=true type=ns0:UUID/
element minOccurs=0 name=lastName nillable=true type=string/
any maxOccurs=unbounded/
/sequence
/complexType
complexType name=Metadata

sequence
element minOccurs=0 name=ageFrom type=int/

Re: Returning a java map

2007-07-20 Thread Dan Diephouse

Hi Julio,

I believe I fixed this yesterday as part of CXF-811. Could you try a
SNAPSHOT build?

http://incubator.apache.org/cxf/download.html

The fixes will be part of our 2.0.1 release. Thanks,

- Dan

On 7/19/07, Julio Arias [EMAIL PROTECTED] wrote:


Hi Jim -

I partially fix this, I change the data binding to Aegis (now the map
has a type in the WSDL) but now I get a different problem with wsdl2java
The WSDL looks very similar at the one generated by xFire I think
there is a problem with the WSDL namespaces but I'm not sure what.
This is the WSDL:

?xml version=1.0 encoding=utf-8?
wsdl:definitions name=MetadataService targetNamespace=http://
lor.rbx.com/ws/metadata xmlns:ns1=http://lor.rbx.com/ws/metadata;
xmlns:ns2=urn:com:rbx:lor:ws:model xmlns:ns3=http://util.java;
xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/; xmlns:wsdl=http://
schemas.xmlsoap.org/wsdl/ xmlns:xsd=http://www.w3.org/2001/XMLSchema;
   wsdl:types
schema attributeFormDefault=qualified
elementFormDefault=qualified targetNamespace=http://
metadata.core.lor.rbx.com xmlns=http://www.w3.org/2001/XMLSchema;
simpleType name=DocumentLanguage
restriction base=string
enumeration value=Any/
enumeration value=English/
/restriction
/simpleType
simpleType name=DocumentDegreeInteractivity
restriction base=string
enumeration value=Any/
enumeration value=VeryLow/
enumeration value=Low/
enumeration value=Medium/

enumeration value=High/
enumeration value=VeryHigh/
/restriction
/simpleType
simpleType name=DocumentFormat
restriction base=string
enumeration value=Any/
enumeration value=HTML_XHTML/
enumeration value=SHOWCKWAVE_FLASH/
enumeration value=FLASH_VIDEO/
enumeration value=JPEG/
enumeration value=GIF/
enumeration value=MPEG/
enumeration value=PDF/
enumeration value=MSWORD/
enumeration value=MSEXCEL/
enumeration value=MSPOWERPOINT/

enumeration value=XML/
/restriction
/simpleType
simpleType name=DocumentDifficulty
restriction base=string
enumeration value=Any/
enumeration value=VeryLow/
enumeration value=Low/
enumeration value=Medium/
enumeration value=High/
enumeration value=VeryHigh/
/restriction
/simpleType
simpleType name=DocumentLearningResourceType
restriction base=string
enumeration value=Any/
enumeration value=Excercise/

enumeration value=Simulation/
enumeration value=Questionnaire/
enumeration value=Diagram/
enumeration value=Figure/
enumeration value=Graph/
enumeration value=Index/
enumeration value=Slide/
enumeration value=Table/
enumeration value=NarrativeText/
enumeration value=Exam/
enumeration value=Experiment/
enumeration value=ProblemStatement/
enumeration value=SelfAssesment/
/restriction
/simpleType
simpleType name=DocumentIntendedEndUser
restriction base=string

enumeration value=Any/
enumeration value=Teacher/
enumeration value=Author/
enumeration value=Learner/
enumeration value=Manager/
/restriction
/simpleType
simpleType name=Context
restriction base=string
enumeration value=Any/
enumeration value=PrimaryEducation/
enumeration value=SecondaryEducation/
enumeration value=HigherEducation/
enumeration value=UniversityFirstCycle/
enumeration value=UniversitySecondCycle/
enumeration value=UniversityPostgrade/
enumeration value=TechnicalSchoolFirstCycle/

enumeration value=TechnicalSchoolSecondCycle/
enumeration value=ProfessionalFormation/
enumeration value=ContinuousFormation/
enumeration value=VocationalTraining/
/restriction
/simpleType
simpleType name=DocumentStatus
restriction base=string
enumeration value=Any/
enumeration value=Draft/
enumeration value=Final/
enumeration value=Revised/
enumeration value=Unavailable/
/restriction
/simpleType
simpleType name=DocumentInteractivityType
restriction base=string

enumeration value=Any/
enumeration value=Active/
enumeration value=Expositive/
enumeration value=Mixed/
enumeration value=Undefined/
/restriction
/simpleType
/schema

schema attributeFormDefault=qualified
elementFormDefault=qualified targetNamespace=http://lor.rbx.com/ws/
metadata xmlns=http://www.w3.org/2001/XMLSchema;
complexType name=anyType2anyTypeMap
sequence
element maxOccurs=unbounded minOccurs=0 name=entry
complexType
sequence
element minOccurs=0 name=key type=anyType/
element minOccurs=0 name=value type=anyType/

/sequence
/complexType
/element
/sequence
/complexType
/schema

schema attributeFormDefault=qualified
elementFormDefault=qualified
targetNamespace=urn:com:rbx:lor:ws:model xmlns=http://www.w3.org/
2001/XMLSchema xmlns:ns0=http://util.java; xmlns:ns1=http://
metadata.core.lor.rbx.com
complexType name=User
sequence
element minOccurs=0 name=firstName nillable=true type=string/
element minOccurs=0 name=id nillable=true type=ns0:UUID/
element minOccurs=0 name=lastName nillable=true type=string/
any maxOccurs=unbounded/
/sequence
/complexType
complexType name=Metadata

sequence
element minOccurs=0 name=ageFrom type=int/
element minOccurs=0 name=ageTo type=int/
element minOccurs=0 name=context nillable=true
type=ns1:Context/
element minOccurs=0 name=coverage nillable=true
type=ns3:Coverage/
element 

Re: Returning a java map

2007-07-20 Thread Daniel Kulp

Julio,

Dan D. thinks he fixed the namespace issue in the Aegis binding 
yesterday.  Is there any way you could grab the latest snapshot that I 
deployed last night from:

http://people.apache.org/repo/m2-snapshot-repository/org/apache/cxf/apache-cxf/2.0.1-incubator-SNAPSHOT/

and give that a try?

Thanks!
Dan


On Thursday 19 July 2007 23:07, Julio Arias wrote:
 Hi Jim -

 I partially fix this, I change the data binding to Aegis (now the map
 has a type in the WSDL) but now I get a different problem with
 wsdl2java The WSDL looks very similar at the one generated by xFire I
 think there is a problem with the WSDL namespaces but I'm not sure
 what. This is the WSDL:

 ?xml version=1.0 encoding=utf-8?
 wsdl:definitions name=MetadataService targetNamespace=http://
 lor.rbx.com/ws/metadata xmlns:ns1=http://lor.rbx.com/ws/metadata;
 xmlns:ns2=urn:com:rbx:lor:ws:model xmlns:ns3=http://util.java;
 xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/; xmlns:wsdl=http://
 schemas.xmlsoap.org/wsdl/
 xmlns:xsd=http://www.w3.org/2001/XMLSchema; wsdl:types
 schema attributeFormDefault=qualified
 elementFormDefault=qualified targetNamespace=http://
 metadata.core.lor.rbx.com xmlns=http://www.w3.org/2001/XMLSchema;
 simpleType name=DocumentLanguage
 restriction base=string
 enumeration value=Any/
 enumeration value=English/
 /restriction
 /simpleType
 simpleType name=DocumentDegreeInteractivity
 restriction base=string
 enumeration value=Any/
 enumeration value=VeryLow/
 enumeration value=Low/
 enumeration value=Medium/

 enumeration value=High/
 enumeration value=VeryHigh/
 /restriction
 /simpleType
 simpleType name=DocumentFormat
 restriction base=string
 enumeration value=Any/
 enumeration value=HTML_XHTML/
 enumeration value=SHOWCKWAVE_FLASH/
 enumeration value=FLASH_VIDEO/
 enumeration value=JPEG/
 enumeration value=GIF/
 enumeration value=MPEG/
 enumeration value=PDF/
 enumeration value=MSWORD/
 enumeration value=MSEXCEL/
 enumeration value=MSPOWERPOINT/

 enumeration value=XML/
 /restriction
 /simpleType
 simpleType name=DocumentDifficulty
 restriction base=string
 enumeration value=Any/
 enumeration value=VeryLow/
 enumeration value=Low/
 enumeration value=Medium/
 enumeration value=High/
 enumeration value=VeryHigh/
 /restriction
 /simpleType
 simpleType name=DocumentLearningResourceType
 restriction base=string
 enumeration value=Any/
 enumeration value=Excercise/

 enumeration value=Simulation/
 enumeration value=Questionnaire/
 enumeration value=Diagram/
 enumeration value=Figure/
 enumeration value=Graph/
 enumeration value=Index/
 enumeration value=Slide/
 enumeration value=Table/
 enumeration value=NarrativeText/
 enumeration value=Exam/
 enumeration value=Experiment/
 enumeration value=ProblemStatement/
 enumeration value=SelfAssesment/
 /restriction
 /simpleType
 simpleType name=DocumentIntendedEndUser
 restriction base=string

 enumeration value=Any/
 enumeration value=Teacher/
 enumeration value=Author/
 enumeration value=Learner/
 enumeration value=Manager/
 /restriction
 /simpleType
 simpleType name=Context
 restriction base=string
 enumeration value=Any/
 enumeration value=PrimaryEducation/
 enumeration value=SecondaryEducation/
 enumeration value=HigherEducation/
 enumeration value=UniversityFirstCycle/
 enumeration value=UniversitySecondCycle/
 enumeration value=UniversityPostgrade/
 enumeration value=TechnicalSchoolFirstCycle/

 enumeration value=TechnicalSchoolSecondCycle/
 enumeration value=ProfessionalFormation/
 enumeration value=ContinuousFormation/
 enumeration value=VocationalTraining/
 /restriction
 /simpleType
 simpleType name=DocumentStatus
 restriction base=string
 enumeration value=Any/
 enumeration value=Draft/
 enumeration value=Final/
 enumeration value=Revised/
 enumeration value=Unavailable/
 /restriction
 /simpleType
 simpleType name=DocumentInteractivityType
 restriction base=string

 enumeration value=Any/
 enumeration value=Active/
 enumeration value=Expositive/
 enumeration value=Mixed/
 enumeration value=Undefined/
 /restriction
 /simpleType
 /schema

 schema attributeFormDefault=qualified
 elementFormDefault=qualified targetNamespace=http://lor.rbx.com/ws/
 metadata xmlns=http://www.w3.org/2001/XMLSchema;
 complexType name=anyType2anyTypeMap
 sequence
 element maxOccurs=unbounded minOccurs=0 name=entry
 complexType
 sequence
 element minOccurs=0 name=key type=anyType/
 element minOccurs=0 name=value type=anyType/

 /sequence
 /complexType
 /element
 /sequence
 /complexType
 /schema

 schema attributeFormDefault=qualified
 elementFormDefault=qualified
 targetNamespace=urn:com:rbx:lor:ws:model xmlns=http://www.w3.org/
 2001/XMLSchema xmlns:ns0=http://util.java; xmlns:ns1=http://
 metadata.core.lor.rbx.com
 complexType name=User
 sequence
 element minOccurs=0 name=firstName nillable=true
 type=string/ element minOccurs=0 name=id nillable=true
 type=ns0:UUID/ element minOccurs=0 name=lastName
 nillable=true type=string/ any maxOccurs=unbounded/
 /sequence
 /complexType
 

Re: Returning a java map

2007-07-20 Thread Julio Arias
I try the latest SNAPSHOT (apache-cxf-2.0.1- 
incubator-20070720.021044-2.tar.gz ) and still is not working. The  
WSDL here is not the same I put first but it has the same problem.


--SEI---

@WebService(
targetNamespace = http://client.webservice.crm.ecot.com/ 
skeleton/StudentService,

name = StudentService
)
@SOAPBinding(style = SOAPBinding.Style.RPC, use =  
SOAPBinding.Use.LITERAL)

public interface StudentService {

public StudentVO findStudent(Long id);

public MapLong, StudentVO getStudentsMap();

public ListStudentVO getStudents(MapString, String filters);

public ListStudentVO getStudentsByIds(ListString ids);

}

---Spring config-


bean id=aegisDatabinding
  class=org.apache.cxf.aegis.databinding.AegisDatabinding/


bean id=userServiceImpl  
class=com.altair.cls.web.service.crm.UserServiceImpl

property name=userManager ref=userManager/
/bean

jaxws:endpoint id=userService address=/UserService  
implementor=#userServiceImpl


jaxws:serviceFactory
bean  
class=org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean

property name=dataBinding ref=aegisDatabinding/
/bean
/jaxws:serviceFactory

 /jaxws:endpoint


 WSDL-

?xml version=1.0 encoding=utf-8?
wsdl:definitions name=StudentService targetNamespace=http:// 
client.webservice.crm.ecot.com/skeleton/StudentService  
xmlns:ns1=http://client.webservice.crm.ecot.com/skeleton/ 
StudentService xmlns:ns2=urn:com:ecot:crm:webservice:vo:student  
xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/; xmlns:wsdl=http:// 
schemas.xmlsoap.org/wsdl/ xmlns:xsd=http://www.w3.org/2001/XMLSchema;

  wsdl:types
schema attributeFormDefault=qualified  
elementFormDefault=qualified targetNamespace=http:// 
client.webservice.crm.ecot.com/skeleton/StudentService xmlns=http:// 
www.w3.org/2001/XMLSchema

complexType name=ArrayOfString
sequence
element maxOccurs=unbounded minOccurs=0 name=string  
nillable=true type=string/

/sequence
/complexType
complexType name=anyType2anyTypeMap
sequence
element maxOccurs=unbounded minOccurs=0 name=entry
complexType
sequence
element minOccurs=0 name=key type=anyType/
element minOccurs=0 name=value type=anyType/

/sequence
/complexType
/element
/sequence
/complexType
/schema

schema attributeFormDefault=qualified  
elementFormDefault=qualified  
targetNamespace=urn:com:ecot:crm:webservice:vo:student  
xmlns=http://www.w3.org/2001/XMLSchema;

complexType name=ArrayOfStudentVO
sequence
element maxOccurs=unbounded minOccurs=0 name=StudentVO  
nillable=true type=ns1:StudentVO/

/sequence
/complexType
complexType name=StudentVO
sequence
element minOccurs=0 name=SEPId nillable=true type=long/
element minOccurs=0 name=address nillable=true type=string/

element minOccurs=0 name=admittedDate nillable=true  
type=string/
element minOccurs=0 name=adultFirstName nillable=true  
type=string/
element minOccurs=0 name=adultLastName nillable=true  
type=string/

element minOccurs=0 name=birthDate nillable=true type=string/
element minOccurs=0 name=country nillable=true type=string/
element minOccurs=0 name=email nillable=true type=string/
element minOccurs=0 name=enrolledDate nillable=true  
type=string/

element minOccurs=0 name=firstName nillable=true type=string/
element minOccurs=0 name=gender nillable=true type=string/
element minOccurs=0 name=grade nillable=true type=string/
element minOccurs=0 name=lastName nillable=true type=string/
element minOccurs=0 name=phone nillable=true type=string/
element minOccurs=0 name=status nillable=true type=string/
any maxOccurs=unbounded/
/sequence
/complexType
/schema

  /wsdl:types
  wsdl:message name=findStudent
wsdl:part name=arg0 type=xsd:long
/wsdl:part
  /wsdl:message
  wsdl:message name=getStudentsByIdsResponse
wsdl:part name=return type=ns2:ArrayOfStudentVO
/wsdl:part

  /wsdl:message
  wsdl:message name=getStudentsByIds
wsdl:part name=arg0 type=ns1:ArrayOfString
/wsdl:part
  /wsdl:message
  wsdl:message name=findStudentResponse
wsdl:part name=return type=ns2:StudentVO
/wsdl:part
  /wsdl:message

  wsdl:message name=getStudentsMap
  /wsdl:message
  wsdl:message name=getStudentsResponse
wsdl:part name=return type=ns2:ArrayOfStudentVO
/wsdl:part
  /wsdl:message
  wsdl:message name=getStudents
wsdl:part name=arg0 type=ns1:anyType2anyTypeMap
/wsdl:part

  /wsdl:message
  wsdl:message name=getStudentsMapResponse
wsdl:part name=return type=ns1:anyType2anyTypeMap
/wsdl:part
  /wsdl:message
  wsdl:portType name=StudentService
wsdl:operation name=getStudentsByIds
  wsdl:input message=ns1:getStudentsByIds  
name=getStudentsByIds

/wsdl:input

  wsdl:output message=ns1:getStudentsByIdsResponse  
name=getStudentsByIdsResponse

/wsdl:output
/wsdl:operation
wsdl:operation name=findStudent
 

Re: Returning a java map

2007-07-19 Thread Julio Arias

Hi Jim -

I partially fix this, I change the data binding to Aegis (now the map  
has a type in the WSDL) but now I get a different problem with wsdl2java
The WSDL looks very similar at the one generated by xFire I think  
there is a problem with the WSDL namespaces but I'm not sure what.

This is the WSDL:

?xml version=1.0 encoding=utf-8?
wsdl:definitions name=MetadataService targetNamespace=http:// 
lor.rbx.com/ws/metadata xmlns:ns1=http://lor.rbx.com/ws/metadata;  
xmlns:ns2=urn:com:rbx:lor:ws:model xmlns:ns3=http://util.java;  
xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/; xmlns:wsdl=http:// 
schemas.xmlsoap.org/wsdl/ xmlns:xsd=http://www.w3.org/2001/XMLSchema;

  wsdl:types
schema attributeFormDefault=qualified  
elementFormDefault=qualified targetNamespace=http:// 
metadata.core.lor.rbx.com xmlns=http://www.w3.org/2001/XMLSchema;

simpleType name=DocumentLanguage
restriction base=string
enumeration value=Any/
enumeration value=English/
/restriction
/simpleType
simpleType name=DocumentDegreeInteractivity
restriction base=string
enumeration value=Any/
enumeration value=VeryLow/
enumeration value=Low/
enumeration value=Medium/

enumeration value=High/
enumeration value=VeryHigh/
/restriction
/simpleType
simpleType name=DocumentFormat
restriction base=string
enumeration value=Any/
enumeration value=HTML_XHTML/
enumeration value=SHOWCKWAVE_FLASH/
enumeration value=FLASH_VIDEO/
enumeration value=JPEG/
enumeration value=GIF/
enumeration value=MPEG/
enumeration value=PDF/
enumeration value=MSWORD/
enumeration value=MSEXCEL/
enumeration value=MSPOWERPOINT/

enumeration value=XML/
/restriction
/simpleType
simpleType name=DocumentDifficulty
restriction base=string
enumeration value=Any/
enumeration value=VeryLow/
enumeration value=Low/
enumeration value=Medium/
enumeration value=High/
enumeration value=VeryHigh/
/restriction
/simpleType
simpleType name=DocumentLearningResourceType
restriction base=string
enumeration value=Any/
enumeration value=Excercise/

enumeration value=Simulation/
enumeration value=Questionnaire/
enumeration value=Diagram/
enumeration value=Figure/
enumeration value=Graph/
enumeration value=Index/
enumeration value=Slide/
enumeration value=Table/
enumeration value=NarrativeText/
enumeration value=Exam/
enumeration value=Experiment/
enumeration value=ProblemStatement/
enumeration value=SelfAssesment/
/restriction
/simpleType
simpleType name=DocumentIntendedEndUser
restriction base=string

enumeration value=Any/
enumeration value=Teacher/
enumeration value=Author/
enumeration value=Learner/
enumeration value=Manager/
/restriction
/simpleType
simpleType name=Context
restriction base=string
enumeration value=Any/
enumeration value=PrimaryEducation/
enumeration value=SecondaryEducation/
enumeration value=HigherEducation/
enumeration value=UniversityFirstCycle/
enumeration value=UniversitySecondCycle/
enumeration value=UniversityPostgrade/
enumeration value=TechnicalSchoolFirstCycle/

enumeration value=TechnicalSchoolSecondCycle/
enumeration value=ProfessionalFormation/
enumeration value=ContinuousFormation/
enumeration value=VocationalTraining/
/restriction
/simpleType
simpleType name=DocumentStatus
restriction base=string
enumeration value=Any/
enumeration value=Draft/
enumeration value=Final/
enumeration value=Revised/
enumeration value=Unavailable/
/restriction
/simpleType
simpleType name=DocumentInteractivityType
restriction base=string

enumeration value=Any/
enumeration value=Active/
enumeration value=Expositive/
enumeration value=Mixed/
enumeration value=Undefined/
/restriction
/simpleType
/schema

schema attributeFormDefault=qualified  
elementFormDefault=qualified targetNamespace=http://lor.rbx.com/ws/ 
metadata xmlns=http://www.w3.org/2001/XMLSchema;

complexType name=anyType2anyTypeMap
sequence
element maxOccurs=unbounded minOccurs=0 name=entry
complexType
sequence
element minOccurs=0 name=key type=anyType/
element minOccurs=0 name=value type=anyType/

/sequence
/complexType
/element
/sequence
/complexType
/schema

schema attributeFormDefault=qualified  
elementFormDefault=qualified  
targetNamespace=urn:com:rbx:lor:ws:model xmlns=http://www.w3.org/ 
2001/XMLSchema xmlns:ns0=http://util.java; xmlns:ns1=http:// 
metadata.core.lor.rbx.com

complexType name=User
sequence
element minOccurs=0 name=firstName nillable=true type=string/
element minOccurs=0 name=id nillable=true type=ns0:UUID/
element minOccurs=0 name=lastName nillable=true type=string/
any maxOccurs=unbounded/
/sequence
/complexType
complexType name=Metadata

sequence
element minOccurs=0 name=ageFrom type=int/
element minOccurs=0 name=ageTo type=int/
element minOccurs=0 name=context nillable=true  
type=ns1:Context/
element minOccurs=0 name=coverage nillable=true  
type=ns3:Coverage/

element minOccurs=0 name=creator nillable=true type=ns3:User/
element minOccurs=0 name=degreeInteractivity nillable=true  
type=ns1:DocumentDegreeInteractivity/
element minOccurs=0 name=description nillable=true  
type=string/
element