Hi! You can run Java 5 code including JAXB 2 on JDK 1.4.x from Sun, IBM, BEA, and Apple with Retrotranslator. This configuration works, but officially unsupported.
I am the author of Retrotranslator. Regards, Taras. On 12/7/06, Klaus Kramer <[EMAIL PROTECTED]> wrote:
Hello everybody! Which JAXB 1.0.x version is supported by XFire 1.2.x ? On the homepage JAXB 1.1 is mentioned, but i didn't find any release of this version. I use JAXB 1.0.6 and have problems with complex data structure. I use on the server side XFire with JDK 5.0 and on the client side I must use JDK 1.4.2 . With JAXB 1.0.6 on the client side XFire 1.2.2 generates wrong SOAP Request. My sample WSDL: <wsdl:definitions targetNamespace="http://calculation.iksgmbh.com" xmlns:tns="http://calculation.iksgmbh.com" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope" xmlns:ns1="http://domain.calculation.iksgmbh.com" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenc11="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soapenc12="http://www.w3.org/2003/05/soap-encoding" xmlns:soap11="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:con="http://eviware.com/soapui/config"> <wsdl:types> <xsd:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://domain.calculation.iksgmbh.com"> <xsd:complexType name="CalculationParams"> <xsd:sequence> <xsd:element minOccurs="0" name="duration" type="xsd:int"/> <xsd:element minOccurs="0" name="initialCapital" nillable="true" type="xsd:decimal"/> <xsd:element minOccurs="0" name="interestRate" nillable="true" type="xsd:decimal"/> <xsd:element minOccurs="0" name="personList" nillable="true" type="ns1:ArrayOfPerson"/> </xsd:sequence> </xsd:complexType> <xsd:complexType name="ArrayOfPerson"> <xsd:sequence> <xsd:element maxOccurs="unbounded" minOccurs="0" name="Person" nillable="true" type="ns1:Person"/> </xsd:sequence> </xsd:complexType> <xsd:complexType name="Person"> <xsd:sequence> <xsd:element minOccurs="0" name="firstname" nillable="true" type="xsd:string"/> <xsd:element minOccurs="0" name="name" nillable="true" type="xsd:string"/> </xsd:sequence> </xsd:complexType> <xsd:complexType name="CalcualtionResult"> <xsd:sequence> <xsd:element minOccurs="0" name="endkapital" type="xsd:double"/> </xsd:sequence> </xsd:complexType> </xsd:schema> <xsd:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://calculation.iksgmbh.com"> <xsd:element name="calculateCompoundInterest"> <xsd:complexType> <xsd:sequence> <xsd:element maxOccurs="1" minOccurs="1" name="in0" nillable="true" type="ns1:CalculationParams"/> </xsd:sequence> </xsd:complexType> </xsd:element> <xsd:element name="calculateCompoundInterestResponse"> <xsd:complexType> <xsd:sequence> <xsd:element maxOccurs="1" minOccurs="1" name="out" nillable="true" type="ns1:CalcualtionResult"/> </xsd:sequence> </xsd:complexType> </xsd:element> </xsd:schema> </wsdl:types> <wsdl:message name="calculateCompoundInterestResponse"> <wsdl:part name="parameters" element="tns:calculateCompoundInterestResponse"/> </wsdl:message> <wsdl:message name="calculateCompoundInterestRequest"> <wsdl:part name="parameters" element="tns:calculateCompoundInterest"/> </wsdl:message> <wsdl:portType name="CompoundInterestPortType"> <wsdl:operation name="calculateCompoundInterest"> <wsdl:input name="calculateCompoundInterestRequest" message="tns:calculateCompoundInterestRequest"/> <wsdl:output name="calculateCompoundInterestResponse" message="tns:calculateCompoundInterestResponse"/> </wsdl:operation> </wsdl:portType> <wsdl:binding name="CompoundInterestHttpBinding" type="tns:CompoundInterestPortType"> <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/> <wsdl:operation name="calculateCompoundInterest"> <wsdlsoap:operation soapAction=""/> <wsdl:input name="calculateCompoundInterestRequest"> <wsdlsoap:body use="literal"/> </wsdl:input> <wsdl:output name="calculateCompoundInterestResponse"> <wsdlsoap:body use="literal"/> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:service name="CompoundInterest"> <wsdl:port name="CompoundInterestHttpPort" binding="tns:CompoundInterestHttpBinding"> <wsdlsoap:address location="http://localhost:8080/Tarifrechner/services/CompoundInterest"/> </wsdl:port> </wsdl:service> </wsdl:definitions> and generates this wrong SOAP Request: <?xml version="1.0" encoding="UTF-8"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soap:Body> <calculateCompoundInterest xmlns="http://client.iksgmbh.com"> <in0> <duration xmlns="http://domain.calculation.iksgmbh.com">5</duration> <initialCapital xmlns="http://domain.calculation.iksgmbh.com">5800.00</initialCapital> <interestRate xmlns="http://domain.calculation.iksgmbh.com">4.00</interestRate> <personList xmlns="http://domain.calculation.iksgmbh.com"> <person> <---- *_this tag is to much_* <Person> <firstname>Paul</firstname> <name>Neu</name> </Person> </person> </personList> </in0> </calculateCompoundInterest> </soap:Body> </soap:Envelope> Is there a soluton for this Problem ? kind regards Klaus --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email
--------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email
