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.

Reply via email to