[
https://issues.apache.org/jira/browse/AXIS2-1739?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Deepal Jayasinghe resolved AXIS2-1739.
--------------------------------------
Resolution: Fixed
Pls use Axis2 1.1 or above.
Thanks
Deepal
> bad Stub.getElement(...). and
> DependencyManager.configureBusinessLogicProvider(...) methods call generation
> -----------------------------------------------------------------------------------------------------------
>
> Key: AXIS2-1739
> URL: https://issues.apache.org/jira/browse/AXIS2-1739
> Project: Apache Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: codegen
> Affects Versions: 1.1
> Reporter: Jhan Yuler
>
> I've used wsdl2java tool with jibx binding. The code generated have two bugs.
> 1) In the xxxxxStub generated class the tool generates a code like
> java.lang.Object object = fromOM(
> getElement(_returnEnv,"document")...
> bug: the method getElement(..) does not exist in the Axis2 1.1
> 2) In the xxxxxxMessageReceiverInOut generated class the tool generates a
> code like
> //Inject the Message Context if it is asked for
>
> org.apache.axis2.engine.DependencyManager.configureBusinessLogicProvider(obj,
> msgContext.getOperationContext());
> bug: the class DependencyManager has not the configureBusinessLogicProvider
> method
> This is the command line
> ====================
> F:\tmp\axis2-1.1\bin\wsdl2java -o wssrc -s -p
> com.somedomain.something.webservices -ss -sd -d jibx -g -ns2p
> http://www.somedomain.com/something=com.somedomain.something.webservices.interfaces
> -uri wsworkflow.wsdl -Ebindingfile binding.xml
> Note: The environment variable CLASSPATH is not seted
> This is the WSDL
> ================
> <?xml version="1.0" encoding="UTF-8"?>
> <definitions xmlns="http://schemas.xmlsoap.org/wsdl/"
> xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
> xmlns:xs="http://www.w3.org/2001/XMLSchema"
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
> xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
> xmlns:bs="http://www.somedomain.com/something"
> xmlns:tns="http://www.somedomain.com/something"
> targetNamespace="http://www.somedomain.com/something" name="WSWorkflow">
> <types>
> <xs:schema attributeFormDefault="unqualified"
> elementFormDefault="qualified"
> targetNamespace="http://www.somedomain.com/something">
> <xs:element name="consultaCliente">
> <xs:complexType>
> <xs:sequence>
> <xs:element name="tipoDocumento"
> type="xs:string"/>
> <xs:element name="numeroDocumento"
> type="xs:string"/>
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> <xs:element name="respuestaConsultaCliente">
> <xs:complexType>
> <xs:sequence>
> <xs:element name="codigoRta" type="xs:string"/>
> <xs:element name="mensajeRta" type="xs:string"/>
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> </xs:schema>
> </types>
> <message name="ConsultaCliente">
> <part name="parameters" element="tns:consultaCliente"/>
> </message>
> <message name="RespuestaConsultaCliente">
> <part name="parameters" element="tns:respuestaConsultaCliente"/>
> </message>
> <portType name="WSWorkflowSOAP">
> <operation name="consultarCliente">
> <input message="tns:ConsultaCliente"/>
> <output message="tns:RespuestaConsultaCliente"/>
> </operation>
> </portType>
> <binding name="WSWorkflowSOAP" type="tns:WSWorkflowSOAP">
> <soap:binding style="document"
> transport="http://schemas.xmlsoap.org/soap/http"/>
> <operation name="consultarCliente">
> <soap:operation
> soapAction="http://www.somedomain.com/something/consultarCliente"
> style="document"/>
> <input>
> <soap:body use="literal"/>
> </input>
> <output>
> <soap:body use="literal"/>
> </output>
> </operation>
> </binding>
> <service name="WSWorkflow">
> <port name="WSWorkflowSOAP" binding="tns:WSWorkflowSOAP">
> <soap:address
> location="http://localhost:8888/axis2/services/WSWorkflow"/>
> </port>
> </service>
> </definitions>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://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]