Re: [Dev] About boxcarring and set-cookie issue.
Hi Harsha, Using DSS 3.2.2 it work fine but when I try with a java client I noted the following: 1. Using the stub generated by the WSO2 Developer Studio with the WSDL created by the DSS does not work. I´ve got an error making the call to begin boxcarring, the java client expected some response data, as I can see in the stub class, but nothing is returned. 2. To overcome the issue in point 1 I used the WSDL generated by WSO2 5.2.1 for the same service, then I generated the stub and my java client worked fine, using the data service deployed in WSO2 DSS, of course. 3. When all my BE are fine and online it work just fine, If an error occurs, because of an offline DB, I´ve got a DataServiceFault as I expected, see [1], but with an error during the response processing, see [2]. [1] axis2ns20:DataServiceFault xmlns:axis2ns20=http://ws.wso2.org/dataservice;axis2ns20:current_params{numerocell=53242123}/axis2ns20:current_paramsaxis2ns20:current_request_nameobtenerUsuarioSaldotest3/axis2ns20:current_request_nameaxis2ns20:nested_exceptionDS Fault Message: Error in opening DBMS connection. DS Code: UNKNOWN_ERROR Nested Exception:- com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure Last packet sent to the server was 0 ms ago. /axis2ns20:nested_exceptionaxis2ns20:source_data_serviceaxis2ns20:location\TransferenciaTest-1.0.0.dbs/axis2ns20:locationaxis2ns20:default_namespacehttp://jorgesoftdevelop.com/test/axis2ns20:default_namespaceaxis2ns20:description/axis2ns20:data_service_nameTransferenciaTest/axis2ns20:data_service_name/axis2ns20:source_data_serviceaxis2ns20:ds_codeDATABASE_ERROR/axis2ns20:ds_code/axis2ns20:DataServiceFault [2] org.apache.axis2.AxisFault: javax.xml.stream.XMLStreamException: element text content may not contain START_ELEMENT at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430) at com.jorgesoftdevelop.test.TransferenciaTestStub.fromOM(TransferenciaTestStub.java:7700) at com.jorgesoftdevelop.test.TransferenciaTestStub.obtenerUsuarioSaldotest3(TransferenciaTestStub.java:846) at com.jorgesoftdevelop.test.ClienteWS.main(ClienteWS.java:52) Caused by: java.lang.Exception: javax.xml.stream.XMLStreamException: element text content may not contain START_ELEMENT at com.jorgesoftdevelop.test.TransferenciaTestStub$DataServiceFault$Factory.parse(TransferenciaTestStub.java:6013) at com.jorgesoftdevelop.test.TransferenciaTestStub.fromOM(TransferenciaTestStub.java:7638) ... 2 more Caused by: javax.xml.stream.XMLStreamException: element text content may not contain START_ELEMENT at org.apache.axiom.om.impl.SwitchingWrapper.getElementText(SwitchingWrapper.java:990) at javax.xml.stream.util.StreamReaderDelegate.getElementText(Unknown Source) at com.jorgesoftdevelop.test.TransferenciaTestStub$DataServiceFault$Factory.parse(TransferenciaTestStub.java:5992) ... 3 more Any idea? Jorge. De: Harsha Kumara [mailto:hars...@wso2.com] Enviado el: miércoles, 1 de abril de 2015 3:49 Para: Jorge CC: WSO2 Developers' List Asunto: Re: [Dev] About boxcarring and set-cookie issue. Hi Jorge, There was some fixes went for the the data services components which is available in DSS 3.2.2 release to support box caring with ESB. AS 5.2.1 does not contain those fixes. You may try this with the DSS 3.2.2. You can follow the steps mentioned in [1]. [1] - http://harshcreationz.blogspot.com/2015/02/boxcarring-sample-with-wso2-dss-and.html http://harshcreationz.blogspot.com/2015/02/boxcarring-sample-with-wso2-dss-and.html Thanks, Harsha On Wed, Apr 1, 2015 at 12:44 AM, Jorge mailto:isildur...@gmail.com isildur...@gmail.com wrote: In my dataservice the begin_boxcar has only only an input message, without and output message. porttype: wsdl:operation name=begin_boxcarwsdl:documentationControl operation for beginning a boxcarring session/wsdl:documentationwsdl:input message=ns0:begin_boxcarRequest wsaw:Action=urn:begin_boxcar//wsdl:operation binding: wsdl:operation name=begin_boxcarsoap:operation soapAction=urn:begin_boxcar style=document/wsdl:inputsoap:body use=literal//wsdl:input/wsdl:operation Without the property name=OUT_ONLY value=true scope=default type=STRING description=solo salida/ the proxy raise several error in console. Jorge. 2015-03-31 14:37 GMT-04:00 Harsha Kumara mailto:hars...@wso2.com hars...@wso2.com: Hi Jorge, I'm not sure this is because you have call the begin_boxcar operation as out only operation. Just remove it and try. Also you can find complete working scenario in [1]. [1] - http://harshcreationz.blogspot.com/2015/02/boxcarring-sample-with-wso2-dss-and.html http://harshcreationz.blogspot.com/2015/02/boxcarring-sample-with-wso2
Re: [Dev] About boxcarring and set-cookie issue.
Hi Jorge, There was some fixes went for the the data services components which is available in DSS 3.2.2 release to support box caring with ESB. AS 5.2.1 does not contain those fixes. You may try this with the DSS 3.2.2. You can follow the steps mentioned in [1]. [1] - http://harshcreationz.blogspot.com/2015/02/boxcarring-sample-with-wso2-dss-and.html Thanks, Harsha On Wed, Apr 1, 2015 at 12:44 AM, Jorge isildur...@gmail.com wrote: In my dataservice the begin_boxcar has only only an input message, without and output message. porttype: wsdl:operation name=begin_boxcarwsdl:documentationControl operation for beginning a boxcarring session/wsdl:documentationwsdl:input message=ns0:begin_boxcarRequest wsaw:Action=urn:begin_boxcar//wsdl:operation binding: wsdl:operation name=begin_boxcarsoap:operation soapAction=urn:begin_boxcar style=document/wsdl:inputsoap:body use=literal//wsdl:input/wsdl:operation Without the property name=OUT_ONLY value=true scope=default type=STRING description=solo salida/ the proxy raise several error in console. Jorge. 2015-03-31 14:37 GMT-04:00 Harsha Kumara hars...@wso2.com: Hi Jorge, I'm not sure this is because you have call the begin_boxcar operation as out only operation. Just remove it and try. Also you can find complete working scenario in [1]. [1] - http://harshcreationz.blogspot.com/2015/02/boxcarring-sample-with-wso2-dss-and.html Thanks, Harsha On Tue, Mar 31, 2015 at 11:44 PM, Jorge isildur...@gmail.com wrote: Hi all. I call a begin boxcarring operation in a dataservice deployed in WSO2 AS 5.2.1 using this config in a proxy service deployed in ESB 4.8.1 header name=Action value=urn:begin_boxcar/ payloadFactory media-type=xml format soapenv:Envelope xmlns:soapenv=http://www.w3.org/2003/05/soap-envelope http://www.google.com/url?q=http%3A%2F%2Fwww.w3.org%2F2003%2F05%2Fsoap-envelopesa=Dsntz=1usg=AFQjCNGfMX1ZVGPTZcRDvsElhc17DotqKg soapenv:Body ns1:begin_boxcar xmlns:ns1= http://jorgesoftdevelop.org http://www.google.com/url?q=http%3A%2F%2Fjorgesoftdevelop.orgsa=Dsntz=1usg=AFQjCNFnuP-gyDwMY1qSC23cC9vgQzFpcg / /soapenv:Body /soapenv:Envelope /format args/ /payloadFactory property name=OUT_ONLY value=true scope=default type=STRING/ call endpoint address uri=http://localhost:/services/ActualizarUsuariosBloqueados/ http://www.google.com/url?q=http%3A%2F%2Flocalhost%3A%2Fservices%2FActualizarUsuariosBloqueados%2Fsa=Dsntz=1usg=AFQjCNFsi_lEOtKcR8fr6iiQMnOPFgiRcw / /endpoint /call And I can see the response using tcpmon: HTTP/1.1 202 Accepted Set-Cookie: JSESSIONID=2D2B1404523D0233E2B445E1BC315F7A; Path=/; HttpOnly Content-Type: text/xml;charset=UTF-8 Transfer-Encoding: chunked Date: Sat, 28 Mar 2015 07:03:23 GMT Server: WSO2 Carbon Server When I try to get the Set-Cookie value using this property: property name=setCookieHeader expression=$trp:Set-Cookie/ I receive a null value. Any idea? Regards, Jorge. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Harsha Kumara Software Engineer, WSO2 Inc. Mobile: +94775505618 Blog:harshcreationz.blogspot.com -- Harsha Kumara Software Engineer, WSO2 Inc. Mobile: +94775505618 Blog:harshcreationz.blogspot.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] About boxcarring and set-cookie issue.
Hi Jorge, I'm not sure this is because you have call the begin_boxcar operation as out only operation. Just remove it and try. Also you can find complete working scenario in [1]. [1] - http://harshcreationz.blogspot.com/2015/02/boxcarring-sample-with-wso2-dss-and.html Thanks, Harsha On Tue, Mar 31, 2015 at 11:44 PM, Jorge isildur...@gmail.com wrote: Hi all. I call a begin boxcarring operation in a dataservice deployed in WSO2 AS 5.2.1 using this config in a proxy service deployed in ESB 4.8.1 header name=Action value=urn:begin_boxcar/ payloadFactory media-type=xml format soapenv:Envelope xmlns:soapenv=http://www.w3.org/2003/05/soap-envelope http://www.google.com/url?q=http%3A%2F%2Fwww.w3.org%2F2003%2F05%2Fsoap-envelopesa=Dsntz=1usg=AFQjCNGfMX1ZVGPTZcRDvsElhc17DotqKg soapenv:Body ns1:begin_boxcar xmlns:ns1= http://jorgesoftdevelop.org http://www.google.com/url?q=http%3A%2F%2Fjorgesoftdevelop.orgsa=Dsntz=1usg=AFQjCNFnuP-gyDwMY1qSC23cC9vgQzFpcg / /soapenv:Body /soapenv:Envelope /format args/ /payloadFactory property name=OUT_ONLY value=true scope=default type=STRING/ call endpoint address uri=http://localhost:/services/ActualizarUsuariosBloqueados/ http://www.google.com/url?q=http%3A%2F%2Flocalhost%3A%2Fservices%2FActualizarUsuariosBloqueados%2Fsa=Dsntz=1usg=AFQjCNFsi_lEOtKcR8fr6iiQMnOPFgiRcw / /endpoint /call And I can see the response using tcpmon: HTTP/1.1 202 Accepted Set-Cookie: JSESSIONID=2D2B1404523D0233E2B445E1BC315F7A; Path=/; HttpOnly Content-Type: text/xml;charset=UTF-8 Transfer-Encoding: chunked Date: Sat, 28 Mar 2015 07:03:23 GMT Server: WSO2 Carbon Server When I try to get the Set-Cookie value using this property: property name=setCookieHeader expression=$trp:Set-Cookie/ I receive a null value. Any idea? Regards, Jorge. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Harsha Kumara Software Engineer, WSO2 Inc. Mobile: +94775505618 Blog:harshcreationz.blogspot.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] About boxcarring and set-cookie issue.
In my dataservice the begin_boxcar has only only an input message, without and output message. porttype: wsdl:operation name=begin_boxcarwsdl:documentationControl operation for beginning a boxcarring session/wsdl:documentationwsdl:input message=ns0:begin_boxcarRequest wsaw:Action=urn:begin_boxcar//wsdl:operation binding: wsdl:operation name=begin_boxcarsoap:operation soapAction=urn:begin_boxcar style=document/wsdl:inputsoap:body use=literal//wsdl:input/wsdl:operation Without the property name=OUT_ONLY value=true scope=default type=STRING description=solo salida/ the proxy raise several error in console. Jorge. 2015-03-31 14:37 GMT-04:00 Harsha Kumara hars...@wso2.com: Hi Jorge, I'm not sure this is because you have call the begin_boxcar operation as out only operation. Just remove it and try. Also you can find complete working scenario in [1]. [1] - http://harshcreationz.blogspot.com/2015/02/boxcarring-sample-with-wso2-dss-and.html Thanks, Harsha On Tue, Mar 31, 2015 at 11:44 PM, Jorge isildur...@gmail.com wrote: Hi all. I call a begin boxcarring operation in a dataservice deployed in WSO2 AS 5.2.1 using this config in a proxy service deployed in ESB 4.8.1 header name=Action value=urn:begin_boxcar/ payloadFactory media-type=xml format soapenv:Envelope xmlns:soapenv=http://www.w3.org/2003/05/soap-envelope http://www.google.com/url?q=http%3A%2F%2Fwww.w3.org%2F2003%2F05%2Fsoap-envelopesa=Dsntz=1usg=AFQjCNGfMX1ZVGPTZcRDvsElhc17DotqKg soapenv:Body ns1:begin_boxcar xmlns:ns1= http://jorgesoftdevelop.org http://www.google.com/url?q=http%3A%2F%2Fjorgesoftdevelop.orgsa=Dsntz=1usg=AFQjCNFnuP-gyDwMY1qSC23cC9vgQzFpcg / /soapenv:Body /soapenv:Envelope /format args/ /payloadFactory property name=OUT_ONLY value=true scope=default type=STRING/ call endpoint address uri=http://localhost:/services/ActualizarUsuariosBloqueados/ http://www.google.com/url?q=http%3A%2F%2Flocalhost%3A%2Fservices%2FActualizarUsuariosBloqueados%2Fsa=Dsntz=1usg=AFQjCNFsi_lEOtKcR8fr6iiQMnOPFgiRcw / /endpoint /call And I can see the response using tcpmon: HTTP/1.1 202 Accepted Set-Cookie: JSESSIONID=2D2B1404523D0233E2B445E1BC315F7A; Path=/; HttpOnly Content-Type: text/xml;charset=UTF-8 Transfer-Encoding: chunked Date: Sat, 28 Mar 2015 07:03:23 GMT Server: WSO2 Carbon Server When I try to get the Set-Cookie value using this property: property name=setCookieHeader expression=$trp:Set-Cookie/ I receive a null value. Any idea? Regards, Jorge. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Harsha Kumara Software Engineer, WSO2 Inc. Mobile: +94775505618 Blog:harshcreationz.blogspot.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] About boxcarring and set-cookie issue.
Hi all. I call a begin boxcarring operation in a dataservice deployed in WSO2 AS 5.2.1 using this config in a proxy service deployed in ESB 4.8.1 header name=Action value=urn:begin_boxcar/ payloadFactory media-type=xml format soapenv:Envelope xmlns:soapenv=http://www.w3.org/2003/05/soap-envelope http://www.google.com/url?q=http%3A%2F%2Fwww.w3.org%2F2003%2F05%2Fsoap-envelopesa=Dsntz=1usg=AFQjCNGfMX1ZVGPTZcRDvsElhc17DotqKg soapenv:Body ns1:begin_boxcar xmlns:ns1= http://jorgesoftdevelop.org http://www.google.com/url?q=http%3A%2F%2Fjorgesoftdevelop.orgsa=Dsntz=1usg=AFQjCNFnuP-gyDwMY1qSC23cC9vgQzFpcg / /soapenv:Body /soapenv:Envelope /format args/ /payloadFactory property name=OUT_ONLY value=true scope=default type=STRING/ call endpoint address uri=http://localhost:/services/ActualizarUsuariosBloqueados/ http://www.google.com/url?q=http%3A%2F%2Flocalhost%3A%2Fservices%2FActualizarUsuariosBloqueados%2Fsa=Dsntz=1usg=AFQjCNFsi_lEOtKcR8fr6iiQMnOPFgiRcw / /endpoint /call And I can see the response using tcpmon: HTTP/1.1 202 Accepted Set-Cookie: JSESSIONID=2D2B1404523D0233E2B445E1BC315F7A; Path=/; HttpOnly Content-Type: text/xml;charset=UTF-8 Transfer-Encoding: chunked Date: Sat, 28 Mar 2015 07:03:23 GMT Server: WSO2 Carbon Server When I try to get the Set-Cookie value using this property: property name=setCookieHeader expression=$trp:Set-Cookie/ I receive a null value. Any idea? Regards, Jorge. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev