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_params><axis2ns20:current_request_name>obtenerUsuarioSaldotest3</axis2ns20:current_request_name><axis2ns20:nested_exception>DS
 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_exception><axis2ns20:source_data_service><axis2ns20:location>\TransferenciaTest-1.0.0.dbs</axis2ns20:location><axis2ns20:default_namespace>http://jorgesoftdevelop.com/test</axis2ns20:default_namespace><axis2ns20:description/><axis2ns20:data_service_name>TransferenciaTest</axis2ns20:data_service_name></axis2ns20:source_data_service><axis2ns20:ds_code>DATABASE_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:[email protected]] 
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:[email protected]> 
[email protected]> wrote:

In my dataservice the begin_boxcar has only only an input message, without and 
output message.

 

porttype:

<wsdl:operation name="begin_boxcar"><wsdl:documentation>Control operation for 
beginning a boxcarring session</wsdl:documentation><wsdl:input 
message="ns0:begin_boxcarRequest" 
wsaw:Action="urn:begin_boxcar"/></wsdl:operation>

 

binding:

<wsdl:operation name="begin_boxcar"><soap:operation 
soapAction="urn:begin_boxcar" style="document"/><wsdl:input><soap: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:[email protected]> 
[email protected]>:

 

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-dss-and.html

 

Thanks,

Harsha

 

On Tue, Mar 31, 2015 at 11:44 PM, Jorge < <mailto:[email protected]> 
[email protected]> 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.google.com/url?q=http%3A%2F%2Fwww.w3.org%2F2003%2F05%2Fsoap-envelope&sa=D&sntz=1&usg=AFQjCNGfMX1ZVGPTZcRDvsElhc17DotqKg>
 http://www.w3.org/2003/05/soap-envelope";>
                  <soapenv:Body>
                     <ns1:begin_boxcar xmlns:ns1=" 
<http://www.google.com/url?q=http%3A%2F%2Fjorgesoftdevelop.org&sa=D&sntz=1&usg=AFQjCNFnuP-gyDwMY1qSC23cC9vgQzFpcg>
 http://jorgesoftdevelop.org"/>
                  </soapenv:Body>
               </soapenv:Envelope>
            </format>
            <args/>
         </payloadFactory>
         <property name="OUT_ONLY" value="true" scope="default" type="STRING"/>
         <call>
            <endpoint>
               <address
uri=" 
<http://www.google.com/url?q=http%3A%2F%2Flocalhost%3A5555%2Fservices%2FActualizarUsuariosBloqueados%2F&sa=D&sntz=1&usg=AFQjCNFsi_lEOtKcR8fr6iiQMnOPFgiRcw>
 http://localhost:5555/services/ActualizarUsuariosBloqueados/"/>
            </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
 <mailto:[email protected]> [email protected]
 <http://wso2.org/cgi-bin/mailman/listinfo/dev> 
http://wso2.org/cgi-bin/mailman/listinfo/dev





 

-- 

Harsha Kumara

Software Engineer, WSO2 Inc.

Mobile:  <tel:%2B94775505618> +94775505618

Blog: <http://harshcreationz.blogspot.com> harshcreationz.blogspot.com

 





 

-- 

Harsha Kumara

Software Engineer, WSO2 Inc.

Mobile: +94775505618

Blog:harshcreationz.blogspot.com <http://harshcreationz.blogspot.com> 

_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to