Hi Dulitha,
When you are doing the login operation, you should not replace  "
apps.cloud.wso2.com" with your production url. The API's defined in [1] are
to used to access the *App Cloud*. For example as in [2] you can login to
the app cloud, by using [3] you can get the your application information by
setting *applicationKey*(In your case it seems like your application key is
dmbk1991) parameter, [4] represents api to create a new application etc...
Production URL represents the deployment of your application.
Hope this resolved your issue.
[1] https://docs.wso2.com/display/AppCloud/Published+APIs
[2]
https://docs.wso2.com/display/AppCloud/Published+APIs#PublishedAPIs-Login
[3]
https://docs.wso2.com/display/AppCloud/Published+APIs#PublishedAPIs-getAppInfo
[4]
https://docs.wso2.com/display/AppCloud/Published+APIs#PublishedAPIs-createNewApplication

Thanks,
Samith
---------- Forwarded message ----------
From: Dulitha Kularathne <dulithameth...@gmail.com>
Date: Mon, Mar 16, 2015 at 8:04 AM
Subject: Re: [Dev] App Factory API
To: Samith Dassanayake <sam...@wso2.com>


Hi Samith!!
I tried doing the login operation. I used the URL part replaced with the
production URL as shown in the guide. And gave the username and password as
shown.Thanks.

On Thu, Mar 12, 2015 at 7:21 PM, Samith Dassanayake <sam...@wso2.com> wrote:

> Hi Dulitha,
> I assume your production URL is [1] and it seems it has successfully
> deployed in the production stage. Could you please elaborate on this more.
> When did you get this error? I mean what are the operations(api cals) that
> you've tried and resulted in above error.
>
> [1] * dmbk1991.dmbk1991.wso2apps.com
> <http://dmbk1991.dmbk1991.wso2apps.com/>*
>
> Thanks,
> Samith
>
> On Tue, Mar 10, 2015 at 9:44 PM, Dulitha Kularathne <
> dulithameth...@gmail.com> wrote:
>
>> Hi !!
>>
>>  I created two apps in the first one I changed the production URL
>> manually and the second one I kept the default URL as it is. I got the
>> scrren shots and I will send u them in the evening if necessary. i followed
>> the guide and did exactly the same. But  I did not have many users for each
>> role. I had the same person for every role assigned. So after promoting the
>> app to the next stage I logged out and logged when I was doing the second
>> app. No deploy button was appeared as shown in the guide and instead the
>> notifications on the right of the screen showed that it is deployed in the
>> next stage(eg:- in production). So I thought that was because I did not
>> assign separate users for roles. I also disabled auto build and auto deploy
>> in the beginning.
>>
>> I used curl to call the APIs from the command line.
>>
>>
>>
>> Thanks.
>>
>> On Wed, Mar 11, 2015 at 10:09 AM, Dulitha Kularathne <
>> dulithameth...@gmail.com> wrote:
>>
>>> Hi Harsha!!
>>>
>>>  I created two apps in the first one I changed the production URL
>>> manually and the second one I kept the default URL as it is. I got the
>>> scrren shots and I will send u them in the evening if necessary. i followed
>>> the guide and did exactly the same. But  I did not have many users for each
>>> role. I had the same person for every role assigned. So after promoting the
>>> app to the next stage I logged out and logged when I was doing the second
>>> app. No deploy button was appeared as shown in the guide and instead the
>>> notifications on the right of the screen showed that it is deployed in the
>>> next stage(eg:- in production). So I thought that was because I did not
>>> assign separate users for roles. I also disabled auto build and auto deploy
>>> in the beginning.
>>>
>>> I used curl to call the APIs from the command line.
>>>
>>>
>>>
>>> Thanks.
>>>
>>> On Tue, Mar 10, 2015 at 10:20 PM, Harsha Thirimanna <hars...@wso2.com>
>>> wrote:
>>>
>>>> Hi Dulitha,
>>>>
>>>> Is this the production URL that you are getting from AF or did you
>>>> change production URL manually ?
>>>>
>>>>
>>>> *Harsha Thirimanna*
>>>> Senior Software Engineer; WSO2, Inc.; http://wso2.com
>>>> * <http://www.apache.org/>*
>>>> *email: **hars...@wso2.com* <az...@wso2.com>* cell: +94 71 5186770  ,
>>>> +94 *
>>>> *774617784twitter: **http://twitter.com/
>>>> <http://twitter.com/afkham_azeez>*
>>>> *harshathirimannlinked-in: **http:
>>>> <http://lk.linkedin.com/in/afkhamazeez>**//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
>>>> <http://www.linkedin.com/pub/harsha-thirimanna/10/ab8/122>*
>>>>
>>>> *Lean . Enterprise . Middleware*
>>>>
>>>>
>>>> On Tue, Mar 10, 2015 at 7:10 AM, Danushka Fernando <danush...@wso2.com>
>>>> wrote:
>>>>
>>>>> Hi Dulitha
>>>>> Can you tell us the steps that exactly you followed. Screenshots or
>>>>> screen cast would be helpful.
>>>>>
>>>>> Thanks & Regards
>>>>> Danushka Fernando
>>>>> Software Engineer
>>>>> WSO2 inc. http://wso2.com/
>>>>> Mobile : +94716332729
>>>>>
>>>>> On Tue, Mar 10, 2015 at 5:24 PM, Mahesh Chinthaka <mahe...@wso2.com>
>>>>> wrote:
>>>>>
>>>>>> Hi Dulitha,
>>>>>>
>>>>>> I really appreciate your interest and effort on wso2appfactory gsoc
>>>>>> project.
>>>>>> No offense but please try always to use dev@ mail group to ask
>>>>>> questions you have.  :)
>>>>>> Then your question will be exposed to a wider communitiy and the
>>>>>> probability of getting what you expected is high.
>>>>>>
>>>>>> Regarding your error,
>>>>>> where do you see this error ? in your browser ? i hope your are doing
>>>>>> this in wso2 app cloud.
>>>>>>
>>>>>>
>>>>>> On Mon, Mar 9, 2015 at 11:03 PM, Dulitha Kularathne <
>>>>>> dulithameth...@gmail.com> wrote:
>>>>>>
>>>>>>> Hi Mahesh!!
>>>>>>>
>>>>>>> I promoted my test app to production after creating a branch to try
>>>>>>> some API calls after deploying . Then I get the 404 error. Can you 
>>>>>>> please
>>>>>>> help me on that.
>>>>>>> Thanks.
>>>>>>> Below given is the whole error message,
>>>>>>>
>>>>>>> I created a branch called 1.0.0 and promoted it to testing and
>>>>>>> deployed.
>>>>>>> After I promoted that to production and deployed again.
>>>>>>> HTTP Status 404 -
>>>>>>> /t/dmbk1991/webapps/dmbk1991-1.0.0/appmgt/site/blocks/user/login/ajax/login.jag
>>>>>>> ------------------------------
>>>>>>>
>>>>>>> *type* Status report
>>>>>>>
>>>>>>> *message*
>>>>>>> */t/dmbk1991/webapps/dmbk1991-1.0.0/appmgt/site/blocks/user/login/ajax/login.jag*
>>>>>>>
>>>>>>> *description* *The requested resource is not available* Connection
>>>>>>> #0 to host dmbk1991.dmbk1991.wso2apps.com
>>>>>>> <http://dmbk1991.dmbk1991.wso2apps.com> left intact .*
>>>>>>> ------------------------------
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> *Mahesh Chinthaka Vidanagama* | Software Engineer
>>>>>> WSO2, Inc | lean. enterprise. middleware.
>>>>>> #20, Palm Grove, Colombo 03, Sri Lanka
>>>>>> Mobile: +94 71 63 63 083 | Work: +94 112 145 345
>>>>>> Email: mahe...@wso2.com | Web: www.wso2.com
>>>>>>
>>>>>> _______________________________________________
>>>>>> Dev mailing list
>>>>>> Dev@wso2.org
>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>
>>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Dev mailing list
>>>>> Dev@wso2.org
>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>
>>>>>
>>>>
>>>
>>
>> _______________________________________________
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Best Regards
>
> Samith Dassanayake
> Software Engineer | Cloud TG
> WSO2, Inc. | http://wso2.com
> lean. enterprise. middleware
>
> Mobile : +947 76207351
>




-- 
Best Regards

Samith Dassanayake
Software Engineer | Cloud TG
WSO2, Inc. | http://wso2.com
lean. enterprise. middleware

Mobile : +947 76207351
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to