Entity in webservice-Sends back 2 roots

Posts   
 
    
cmprogrock
User
Posts: 40
Joined: 16-Nov-2008
# Posted on: 10-Jul-2009 05:16:22   

Hi, I'm making a webservice that sends out an Entity when given an ID. Works - but it seems to have 2 roots. <AppEntity><AppEntity> Any way the change this?

Thanks


<?xml version="1.0" encoding="utf-8" ?> 
- <AppEntity xmlns="http://appbreeder.com/">
- <AppEntity EntityType="0" ObjectID="84214096-2939-4b3d-abc3-39ac8c5c62b9" Format="Compact25">
  <AppId>126</AppId> 
  <UserId>20</UserId> 
  <Title>Mikes Realtor App</Title> 
  <MainPageImg>Main_029891.jpg</MainPageImg> 
  <SplashScreenImg>Splash_01293.jpg</SplashScreenImg> 
  <AppStoreIconImg>DefaultAppStoreIconImg.png</AppStoreIconImg> 
  <AppStoreName>Mikes RE Iphone App</AppStoreName> 
  <AppStoreDesc>This Application is Mikes App.</AppStoreDesc> 
  <PrefCssSheet>Default.css</PrefCssSheet> 
  <ApplePubDate>2009-07-02T15:42:02.053</ApplePubDate> 
  <BlackBerryPubDate>2009-07-02T15:42:02.053</BlackBerryPubDate> 
  <AndroidPubDate>2009-07-02T15:42:02.053</AndroidPubDate> 
  <WebPubDate>2009-07-02T15:42:02.053</WebPubDate> 
  <IsReadyForUpdate>false</IsReadyForUpdate> 
  <AppType>AppRealtor</AppType> 
  <LastSavedDate>2009-07-02T15:42:02.053</LastSavedDate> 
  <FirstSavedDate>2009-07-02T15:42:02.053</FirstSavedDate> 
  <AppGuid>46d31f6d-eb8f-45cf-a76f-611b754f2080</AppGuid> 
  <_lps fs="AAAgIgIA" es="1" /> 
  </AppEntity>
  </AppEntity>
Walaa avatar
Walaa
Support Team
Posts: 14993
Joined: 21-Aug-2005
# Posted on: 10-Jul-2009 10:39:10   

Which LLBLGen Pro runtime library version are you using?

Would you please post the webMethod code?

cmprogrock
User
Posts: 40
Joined: 16-Nov-2008
# Posted on: 10-Jul-2009 12:35:39   

Hi, Using Current Version 2.6


        [WebMethod]
        [ScriptMethod(UseHttpGet = true)]
        public AppBreeder.EntityClasses.AppEntity GetApplication(int AppId)
        {

            AppEntity application = new AppEntity(AppId);
            using (DataAccessAdapter adapter = new DataAccessAdapter())
            {
                adapter.FetchEntity(application);
                return application;
            }
        }

thx

Walaa avatar
Walaa
Support Team
Posts: 14993
Joined: 21-Aug-2005
# Posted on: 10-Jul-2009 13:03:43   

Please check the following thread to know how to get the RTL version/build: http://www.llblgen.com/TinyForum/Messages.aspx?ThreadID=7725

cmprogrock
User
Posts: 40
Joined: 16-Nov-2008
# Posted on: 11-Jul-2009 14:00:53   

Got it: File Version: 2.6.8.911

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 12-Jul-2009 07:19:40   
  1. Would be a good idea update to the latest runtime library version.

  2. What happens if you WriteXML that object (ref...)? Do you see the same result?

  3. Does the same happen with other entities?

  4. Does the entity get deserialized well at the other side?

David Elizondo | LLBLGen Support Team
cmprogrock
User
Posts: 40
Joined: 16-Nov-2008
# Posted on: 14-Jul-2009 16:49:22   

ok- 1-Will Update Runtime. 2-Will Try WriteXML 3-Happens with ALL Entities 4-Does not work on other side

NOTE: The Entities have a base class. Happens with base class as well.

Q-Has anyone seen this before? (I'm assuming this is NOT what is supposed to happen from LLBLgen)

Q-Am I missing some sort of LLBLgen Flag or Excute call to use? (I'd hate to have to WriteXML and strip off top node tricks for every entity)

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 15-Jul-2009 05:36:32   

cmprogrock wrote:

ok- 1-Will Update Runtime. 2-Will Try WriteXML

Pleasesimple_smile

cmprogrock wrote:

3-Happens with ALL Entities 4-Does not work on other side

Ok

cmprogrock wrote:

NOTE: The Entities have a base class. Happens with base class as well.

Mmm. I could ask you for more a more info to try to reproduce this. Instead, Could you please create a mini-repro-solution for us, that reproduces the problem?

Q-Has anyone seen this before? (I'm assuming this is NOT what is supposed to happen from LLBLgen)

I can't repro this, and can't find any related thread on the forums.

David Elizondo | LLBLGen Support Team