Hi, i have a similiar problem... I have a simple person.xsd file that describes a person. Using xmlbean i obtain a jar file that maps the xsd. I use this object PersonDocument as parameter or return type of a method that i want to become a web service. Then using java2wsdl i obtain a WSDL that Eclipse don't recognize (i don't know if it is correct). I can't reach my target.
Please help me. This is the wsdl generated <wsdl:definitions xmlns:axis2="http://ws.apache.org/axis2" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:ns="http://ws.apache.org/axis2/xsd" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://ws.apache.org/axis2"><wsdl:types><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ns0="http://noNamespace/xsd" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://ws.apache.org/axis2/xsd"> <xs:element name="salutaPersona"> <xs:complexType> <xs:sequence> <xs:element name="persona" nillable="true" type="ns0:PersonaDocument" /> </xs:sequence> </xs:complexType> </xs:element> </xs:schema><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ax21="http://noNamespace/xsd" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://noNamespace/xsd"> <xs:element name="PersonaDocument" type="ax21:PersonaDocument" /> <xs:complexType name="PersonaDocument"> <xs:sequence> <xs:element name="persona" nillable="true" type="ax21:PersonaDocument$Persona" /> </xs:sequence> </xs:complexType> <xs:element name="PersonaDocument$Persona" type="ax21:PersonaDocument$Persona" /> <xs:complexType name="PersonaDocument$Persona"> <xs:sequence /> </xs:complexType> </xs:schema></wsdl:types><wsdl:message name="salutaPersonaMessage"><wsdl:part name="part1" element="ns:salutaPersona" /></wsdl:message><wsdl:portType name="TestPortType"><wsdl:operation name="salutaPersona"><wsdl:input message="axis2:salutaPersonaMessage" /></wsdl:operation></wsdl:portType><wsdl:binding name="TestSOAP11Binding" type="axis2:TestPortType"><soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" /><wsdl:operation name="salutaPersona"><soap:operation soapAction="urn:salutaPersona" style="document" /><wsdl:input><soap:body use="literal" namespace="http://ws.apache.org/axis2" /></wsdl:input></wsdl:operation></wsdl:binding><wsdl:binding name="TestSOAP12Binding" type="axis2:TestPortType"><soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" /><wsdl:operation name="salutaPersona"><soap12:operation soapAction="urn:salutaPersona" style="document" /><wsdl:input><soap12:body use="literal" namespace="http://ws.apache.org/axis2" /></wsdl:input></wsdl:operation></wsdl:binding><wsdl:service name="Test"><wsdl:port name="TestSOAP11port" binding="axis2:TestSOAP11Binding"><soap:address location="http://localhost:8080/axis2/services/Test" /></wsdl:port><wsdl:port name="TestSOAP12port" binding="axis2:TestSOAP12Binding"><soap12:address location="http://localhost:8080/axis2/services/Test" /></wsdl:port></wsdl:service></wsdl:definitions> Anne Thomas Manes wrote: > > Add a default constructor to your classes. > > On 5/21/05, Joris Van der Mijnsbrugge <[EMAIL PROTECTED]> wrote: >> Hi all, >> >> when trying to generate a wsdl file. My xmlbeans don't get the right >> type. >> Should i replace the schemas manually or is their a way to get it >> automatically. The xmlbeans are compiled from these schemas. >> >> I included the outcome of generate-wsdl >> >> Any help is welcome, >> >> Joris >> >> [EMAIL PROTECTED]:~/glycemieant$ ant generate-wsdl >> Buildfile: build.xml >> Overriding previous definition of reference to axis.classpath >> >> generate-wsdl: >> [axis-java2wsdl] Java2WSDL be.vdm.joris.glycemie.WSGlycemie >> [axis-java2wsdl] - The class >> be.ugent.atlantis.erato3.commandsSchema.CommandDescriptionsDocument does >> not contain a default constructor, which is a requirement for a bean >> class. The class cannot be converted into an xml schema type. An xml >> schema anyType will be used to define this class in the wsdl file. >> [axis-java2wsdl] - The class >> be.ugent.atlantis.erato3.genericMsgSchema.GenericMsgDocument does not >> contain a default constructor, which is a requirement for a bean class. >> The class cannot be converted into an xml schema type. An xml schema >> anyType will be used to define this class in the wsdl file. >> [axis-java2wsdl] - The class >> be.ugent.atlantis.erato3.triggers.TriggersDocument does not contain a >> default constructor, which is a requirement for a bean class. The class >> cannot be converted into an xml schema type. An xml schema anyType will >> be used to define this class in the wsdl file. >> >> BUILD SUCCESSFUL >> Total time: 2 seconds >> [EMAIL PROTECTED]:~/glycemieant$ >> >> >> >> >> >> > > -- View this message in context: http://www.nabble.com/java2wsdl---XMLBeans-tf22596.html#a7949267 Sent from the Axis - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
