Re: [Dev] About boxcarring and set-cookie issue.

2015-04-07 Thread Jorge Infante
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] http://ws.wso2.org/dataservice";>{numerocell=53242123}obtenerUsuarioSaldotest3DS
 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.

\TransferenciaTest-1.0.0.dbshttp://jorgesoftdevelop.com/testTransferenciaTestDATABASE_ERROR

 

 

 

[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:

Control operation for 
beginning a boxcarring session

 

binding:



 

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

 

Thanks,

Harsha

 

On Tue, Mar 31, 2015 at 11:44 PM, Jorge < <mailto:isildur...@gmail.com> 
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

 

 
 

   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";>
  
 http://www.google.com/url?q=http%3A%2F%2Fjorgesoftdevelop.org&sa=D&sntz=1&usg=AFQjCNFnuP-gyDwMY1qSC23cC9vgQzFpcg>
 http://jorgesoftdevelop.org"/>
  
   

 

Re: [Dev] About boxcarring and set-cookie issue.

2015-04-01 Thread Harsha Kumara
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  wrote:

> In my dataservice the begin_boxcar has only only an input message, without
> and output message.
>
> porttype:
> Control operation
> for beginning a boxcarring session message="ns0:begin_boxcarRequest"
> wsaw:Action="urn:begin_boxcar"/>
>
> binding:
>  soapAction="urn:begin_boxcar" style="document"/> use="literal"/>
>
> Without the  type="STRING" description="solo salida"/> the proxy raise several error in
> console.
>
> Jorge.
>
> 2015-03-31 14:37 GMT-04:00 Harsha Kumara :
>
> 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  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
>>>
>>>  
>>>  
>>> 
>>>>> xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope
>>> 
>>> ">
>>>   
>>>  http://jorgesoftdevelop.org
>>> 
>>> "/>
>>>   
>>>
>>> 
>>> 
>>>  
>>>  >> type="STRING"/>
>>>  
>>> 
>>>>> uri="http://localhost:/services/ActualizarUsuariosBloqueados/
>>> 
>>> "/>
>>> 
>>>  
>>>
>>> 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:
>>>  
>>>
>>> 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.

2015-03-31 Thread Jorge
In my dataservice the begin_boxcar has only only an input message, without
and output message.

porttype:
Control operation
for beginning a boxcarring session

binding:


Without the  the proxy raise several error in
console.

Jorge.

2015-03-31 14:37 GMT-04:00 Harsha Kumara :

> 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  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
>>
>>  
>>  
>> 
>>> xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope
>> 
>> ">
>>   
>>  http://jorgesoftdevelop.org
>> 
>> "/>
>>   
>>
>> 
>> 
>>  
>>  > type="STRING"/>
>>  
>> 
>>> uri="http://localhost:/services/ActualizarUsuariosBloqueados/
>> 
>> "/>
>> 
>>  
>>
>> 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:
>>  
>>
>> 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.

2015-03-31 Thread Harsha Kumara
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  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
>
>  
>  
> 
> xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope
> 
> ">
>   
>  http://jorgesoftdevelop.org
> 
> "/>
>   
>
> 
> 
>  
>   type="STRING"/>
>  
> 
> uri="http://localhost:/services/ActualizarUsuariosBloqueados/
> 
> "/>
> 
>  
>
> 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:
>  
>
> 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.

2015-03-31 Thread Jorge
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

 
 

   http://www.w3.org/2003/05/soap-envelope

">
  
 http://jorgesoftdevelop.org

"/>
  
   


 
 
 

   http://localhost:/services/ActualizarUsuariosBloqueados/

"/>

 

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:
 

I receive a null value.

Any idea?

Regards,
  Jorge.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev