[ http://issues.apache.org/jira/browse/AXIS2-1125?page=all ]
Davanum Srinivas resolved AXIS2-1125.
-------------------------------------
Resolution: Fixed
Fix in r442593
-- dims
> Compilation error from WSDL2Java on a complex type with two base64binary
> elements
> ---------------------------------------------------------------------------------
>
> Key: AXIS2-1125
> URL: http://issues.apache.org/jira/browse/AXIS2-1125
> Project: Apache Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: Tools
> Environment: Win XP, Jboss
> Reporter: Blaise Thomson
> Priority: Minor
>
> Hi,
> When running WSDL2Java on a WSDL file with a complex type with two
> base64binary elements, the code created gives a compilation error: Duplicate
> local variable binaryTextNode. The code giving this error is:
> org.apache.axiom.om.impl.llom.OMTextImpl binaryTextNode = new
> org.apache.axiom.om.impl.llom.OMTextImpl( localModulus,
> org.apache.axiom.om.OMAbstractFactory.getOMFactory());
>
> binaryTextNode.internalSerializeAndConsume(xmlWriter);
>
> org.apache.axiom.om.impl.llom.OMTextImpl
> binaryTextNode = new org.apache.axiom.om.impl.llom.OMTextImpl(
> localExponent, org.apache.axiom.om.OMAbstractFactory.getOMFactory());
>
> binaryTextNode.internalSerializeAndConsume(xmlWriter);
> This is not a big problem to hand edit - you just change the second variable
> to binaryTextNode2 but it would be preferable if the WSDL2Java tool worked
> straight away. I've attached a sample WSDL file that causes the error.
> Regards,
> Blaise
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions targetNamespace="http://registerkey.webservice.bugproj"
> xmlns:apachesoap="http://xml.apache.org/xml-soap"
> xmlns:tns="http://registerkey.webservice.bugproj"
> xmlns:impl="http://registerkey.webservice.bugproj"
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
> xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema">
> <wsdl:types>
> <xsd:schema elementFormDefault="qualified"
> targetNamespace="http://registerkey.webservice.bugproj"
> xmlns="http://www.w3.org/2001/XMLSchema">
> <!-- Exceptions -->
> <complexType name="KeyRegisterException">
> <sequence>
> <element name="message" nillable="true" type="xsd:string"/>
> </sequence>
> </complexType>
> <!-- Messaging -->
> <element name="registerKey">
> <complexType>
> <sequence>
> <element name="modulus" type="xsd:base64Binary"/>
> <element name="exponent" type="xsd:base64Binary"/>
> <element name="description" type="xsd:string"/>
> </sequence>
> </complexType>
> </element>
> <element name="registerKeyResponse">
> <complexType/>
> </element>
> <element name="registerFault" type="tns:KeyRegisterException"/>
> </xsd:schema>
> </wsdl:types>
> <wsdl:message name="registerKeyRequest">
> <wsdl:part element="impl:registerKey" name="parameters"/>
> </wsdl:message>
> <wsdl:message name="KeyRegisterException">
> <wsdl:part element="impl:registerFault" name="fault"/>
> </wsdl:message>
> <wsdl:message name="registerKeyResponse">
> <wsdl:part element="impl:registerKeyResponse" name="parameters"/>
> </wsdl:message>
> <wsdl:portType name="RegisterKeyServicePortType">
> <wsdl:operation name="registerKey">
> <wsdl:input message="impl:registerKeyRequest"
> name="registerKeyRequest"/>
> <wsdl:output message="impl:registerKeyResponse"
> name="registerKeyResponse"/>
> <wsdl:fault message="impl:KeyRegisterException"
> name="KeyRegisterException"/>
> </wsdl:operation>
> </wsdl:portType>
> <wsdl:binding name="RegisterKeyServiceSoapBinding"
> type="impl:RegisterKeyServicePortType">
> <wsdlsoap:binding style="document"
> transport="http://schemas.xmlsoap.org/soap/http"/>
> <wsdl:operation name="registerKey">
> <wsdlsoap:operation soapAction=""/>
> <wsdl:input name="registerKeyRequest">
> <wsdlsoap:body use="literal"/>
> </wsdl:input>
> <wsdl:output name="registerKeyResponse">
> <wsdlsoap:body use="literal"/>
> </wsdl:output>
> <wsdl:fault name="KeyRegisterException">
> <wsdlsoap:fault name="KeyRegisterException" use="literal"/>
> </wsdl:fault>
> </wsdl:operation>
> </wsdl:binding>
> <wsdl:service name="RegisterKeyService">
> <wsdl:port binding="impl:RegisterKeyServiceSoapBinding"
> name="RegisterKeyService">
> <wsdlsoap:address
> location="http://localhost:8080/axis/services/RegisterKeyService"/>
> </wsdl:port>
> </wsdl:service>
> </wsdl:definitions>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]