You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Jhan Yuler (JIRA)" <ji...@apache.org> on 2006/11/17 17:20:38 UTC
[jira] Created: (AXIS2-1739) bad Stub.getElement(...). and
DependencyManager.configureBusinessLogicProvider(...) methods call
generation
bad Stub.getElement(...). and DependencyManager.configureBusinessLogicProvider(...) methods call generation
-----------------------------------------------------------------------------------------------------------
Key: AXIS2-1739
URL: http://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: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Resolved: (AXIS2-1739) bad Stub.getElement(...). and
DependencyManager.configureBusinessLogicProvider(...) methods call
generation
Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
[ 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Commented: (AXIS2-1739) bad Stub.getElement(...). and
DependencyManager.configureBusinessLogicProvider(...) methods call
generation
Posted by "Thilina Gunarathne (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/AXIS2-1739?page=comments#action_12459983 ]
Thilina Gunarathne commented on AXIS2-1739:
-------------------------------------------
Please check whether you have mixed up jars from diffrent Axis2 versions...
Please use the latest 1.1 release jars for code generation as well as to run the generated code..
> bad Stub.getElement(...). and DependencyManager.configureBusinessLogicProvider(...) methods call generation
> -----------------------------------------------------------------------------------------------------------
>
> Key: AXIS2-1739
> URL: http://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: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org