Hi Kir;

Thanx for reply i will test this document and write response here.


2014-05-23 9:24 GMT+03:00 Atilla İlhan KARTAL <[email protected]>:

> Hi Ricardo;
>
> My Problem is not Web Service to Client way. My problem is Client to
> WebService. Sample senario
>
> Anroid Application
> Write a order;
> Order o = new Order();
> o.addOrderItem(new OrderItem());
> o.getOrderItem(0).setInventory(selectedInventory);
>
> ...
> ...
> ..
> ..
> ..
>
> OrderServiceClient client = new OrderServiceClient(serviceServer);
> client.save(o);
>
>
> Server Application
> Process
>
> 1- Parse Request
> 2- Parse Parameters
> 3- Open Session
> 4- Nhibernate Save
> 5- Close Session
>
>
>
>
>
> 2014-05-22 23:21 GMT+03:00 Ricardo Peres <[email protected]>:
>
> The problem might be lazy loading. Try to access all collections and
>> reference properties in your objects before you return them from your web
>> methods.
>> Or, better, use DTOs (Data Transfer Objects) instead.
>>
>> RP
>>
>>
>> On Thursday, May 22, 2014 1:46:34 PM UTC+1, Atilla İlhan KARTAL wrote:
>>>
>>> Dear All;
>>>
>>> I make a connection between my android device and web service in project
>>> that I am using Nhibernate.
>>>
>>> I encounter with some problems such as no session or was closed when I
>>> fill the data and send the item to service from my android device.
>>>
>>> How can you use Nhibernate with web service? What are your suggestions
>>> about this subject?
>>>
>>> Service Application Info
>>> Service Type : Rest
>>> Service is own service on HttpModule
>>> Service JSonSerializer is  JSON.net
>>>
>>>
>>> --
>>> Atilla İlhan KARTAL
>>> Web Application & Software Architect
>>> (Java & PHP & Registered Android Developer)
>>> Kuşadası / Aydın / Turkey
>>> www.atillailhankartal.com.tr
>>> twitter.com/TrojanMyth
>>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "nhusers" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To post to this group, send email to [email protected].
>> Visit this group at http://groups.google.com/group/nhusers.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> Atilla İlhan KARTAL
> Web Application & Software Architect
> (Java & PHP & Registered Android Developer)
> Kuşadası / Aydın / Turkey
> www.atillailhankartal.com.tr
> twitter.com/TrojanMyth
>



-- 
Atilla İlhan KARTAL
Web Application & Software Architect
(Java & PHP & Registered Android Developer)
Kuşadası / Aydın / Turkey
www.atillailhankartal.com.tr
twitter.com/TrojanMyth

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/nhusers.
For more options, visit https://groups.google.com/d/optout.

Reply via email to