Restful service in ofbiz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

Restful service in ofbiz

Foo Shyn Chung
Hi all,

My current project needs to expose the ofbiz servce as web service and
currently i'm thinking to expose them as restful service since from what i
read on the line is that android is better suited with restful services.

I have found this link whereby i'm able to export the service as a restful
web serivce. I wonder whether the configuration mentioned in the site
(something similar to the export="true") is done as of version 12.04?

https://cwiki.apache.org/OFBIZ/export-service-using-rest.html

Anyone with any experience with working on restful web service on ofbiz?
Any idea?

Thanx
FooShyn
Reply | Threaded
Open this post in threaded view
|

Re: Restful service in ofbiz

Ankit Jain-2
Hi FooShyn,

I have used the restful services by following the same document but I
used with 10.04 not sure about 12.04 but I think it will work with
12.04 also. :)

Regards,
Ankit Jain



On Wed, Jun 13, 2012 at 4:56 PM, Foo Shyn Chung <[hidden email]> wrote:

> Hi all,
>
> My current project needs to expose the ofbiz servce as web service and
> currently i'm thinking to expose them as restful service since from what i
> read on the line is that android is better suited with restful services.
>
> I have found this link whereby i'm able to export the service as a restful
> web serivce. I wonder whether the configuration mentioned in the site
> (something similar to the export="true") is done as of version 12.04?
>
> https://cwiki.apache.org/OFBIZ/export-service-using-rest.html
>
> Anyone with any experience with working on restful web service on ofbiz?
> Any idea?
>
> Thanx
> FooShyn
Reply | Threaded
Open this post in threaded view
|

Re: Restful service in ofbiz

Foo Shyn Chung
Thanx Ankit.

I'm just curious whether the mentioned improvement in the article is being
done or not (to have something like the expose="true" for REST).

Thanx
FooShyn

On Wed, Jun 13, 2012 at 7:41 PM, Ankit Jain <[hidden email]> wrote:

> Hi FooShyn,
>
> I have used the restful services by following the same document but I
> used with 10.04 not sure about 12.04 but I think it will work with
> 12.04 also. :)
>
> Regards,
> Ankit Jain
>
>
>
> On Wed, Jun 13, 2012 at 4:56 PM, Foo Shyn Chung <[hidden email]> wrote:
> > Hi all,
> >
> > My current project needs to expose the ofbiz servce as web service and
> > currently i'm thinking to expose them as restful service since from what
> i
> > read on the line is that android is better suited with restful services.
> >
> > I have found this link whereby i'm able to export the service as a
> restful
> > web serivce. I wonder whether the configuration mentioned in the site
> > (something similar to the export="true") is done as of version 12.04?
> >
> > https://cwiki.apache.org/OFBIZ/export-service-using-rest.html
> >
> > Anyone with any experience with working on restful web service on ofbiz?
> > Any idea?
> >
> > Thanx
> > FooShyn
>
Reply | Threaded
Open this post in threaded view
|

Re: Restful service in ofbiz

Ankit Jain-2
I dont think its done yet.

Regards,
Ankit Jain



On Thu, Jun 14, 2012 at 1:07 PM, Foo Shyn Chung <[hidden email]> wrote:

> Thanx Ankit.
>
> I'm just curious whether the mentioned improvement in the article is being
> done or not (to have something like the expose="true" for REST).
>
> Thanx
> FooShyn
>
> On Wed, Jun 13, 2012 at 7:41 PM, Ankit Jain <[hidden email]> wrote:
>
>> Hi FooShyn,
>>
>> I have used the restful services by following the same document but I
>> used with 10.04 not sure about 12.04 but I think it will work with
>> 12.04 also. :)
>>
>> Regards,
>> Ankit Jain
>>
>>
>>
>> On Wed, Jun 13, 2012 at 4:56 PM, Foo Shyn Chung <[hidden email]> wrote:
>> > Hi all,
>> >
>> > My current project needs to expose the ofbiz servce as web service and
>> > currently i'm thinking to expose them as restful service since from what
>> i
>> > read on the line is that android is better suited with restful services.
>> >
>> > I have found this link whereby i'm able to export the service as a
>> restful
>> > web serivce. I wonder whether the configuration mentioned in the site
>> > (something similar to the export="true") is done as of version 12.04?
>> >
>> > https://cwiki.apache.org/OFBIZ/export-service-using-rest.html
>> >
>> > Anyone with any experience with working on restful web service on ofbiz?
>> > Any idea?
>> >
>> > Thanx
>> > FooShyn
>>
Reply | Threaded
Open this post in threaded view
|

Re: Restful service in ofbiz

Foo Shyn Chung
Thanx Ankit.

One thing, i'd followed the document and so far have been able to work out
the REST service to perform the ping. However when I add in the
authentication and using the restclient in my firefox to test it, i keep on
getting authentication failed error. The restclient on my firefox is of
version 2.0.3.

I'd added the login.username and login.password on the Request Header
section but it still fails. Any idea why this is not working?

Thanx
FooShyn

On Thu, Jun 14, 2012 at 3:57 PM, Ankit Jain <[hidden email]> wrote:

> I dont think its done yet.
>
> Regards,
> Ankit Jain
>
>
>
> On Thu, Jun 14, 2012 at 1:07 PM, Foo Shyn Chung <[hidden email]> wrote:
> > Thanx Ankit.
> >
> > I'm just curious whether the mentioned improvement in the article is
> being
> > done or not (to have something like the expose="true" for REST).
> >
> > Thanx
> > FooShyn
> >
> > On Wed, Jun 13, 2012 at 7:41 PM, Ankit Jain <[hidden email]>
> wrote:
> >
> >> Hi FooShyn,
> >>
> >> I have used the restful services by following the same document but I
> >> used with 10.04 not sure about 12.04 but I think it will work with
> >> 12.04 also. :)
> >>
> >> Regards,
> >> Ankit Jain
> >>
> >>
> >>
> >> On Wed, Jun 13, 2012 at 4:56 PM, Foo Shyn Chung <[hidden email]>
> wrote:
> >> > Hi all,
> >> >
> >> > My current project needs to expose the ofbiz servce as web service and
> >> > currently i'm thinking to expose them as restful service since from
> what
> >> i
> >> > read on the line is that android is better suited with restful
> services.
> >> >
> >> > I have found this link whereby i'm able to export the service as a
> >> restful
> >> > web serivce. I wonder whether the configuration mentioned in the site
> >> > (something similar to the export="true") is done as of version 12.04?
> >> >
> >> > https://cwiki.apache.org/OFBIZ/export-service-using-rest.html
> >> >
> >> > Anyone with any experience with working on restful web service on
> ofbiz?
> >> > Any idea?
> >> >
> >> > Thanx
> >> > FooShyn
> >>
>
Reply | Threaded
Open this post in threaded view
|

Re: Restful service in ofbiz

Ankit Jain-2
I have tested it on advanced REST client on Chrome try this

https://chrome.google.com/webstore/detail/hgmloofddffdnphfgcellkdfbfbjeloo

HTH

Regards,
Ankit Jain



On Thu, Jun 14, 2012 at 2:58 PM, Foo Shyn Chung <[hidden email]> wrote:

> Thanx Ankit.
>
> One thing, i'd followed the document and so far have been able to work out
> the REST service to perform the ping. However when I add in the
> authentication and using the restclient in my firefox to test it, i keep on
> getting authentication failed error. The restclient on my firefox is of
> version 2.0.3.
>
> I'd added the login.username and login.password on the Request Header
> section but it still fails. Any idea why this is not working?
>
> Thanx
> FooShyn
>
> On Thu, Jun 14, 2012 at 3:57 PM, Ankit Jain <[hidden email]> wrote:
>
>> I dont think its done yet.
>>
>> Regards,
>> Ankit Jain
>>
>>
>>
>> On Thu, Jun 14, 2012 at 1:07 PM, Foo Shyn Chung <[hidden email]> wrote:
>> > Thanx Ankit.
>> >
>> > I'm just curious whether the mentioned improvement in the article is
>> being
>> > done or not (to have something like the expose="true" for REST).
>> >
>> > Thanx
>> > FooShyn
>> >
>> > On Wed, Jun 13, 2012 at 7:41 PM, Ankit Jain <[hidden email]>
>> wrote:
>> >
>> >> Hi FooShyn,
>> >>
>> >> I have used the restful services by following the same document but I
>> >> used with 10.04 not sure about 12.04 but I think it will work with
>> >> 12.04 also. :)
>> >>
>> >> Regards,
>> >> Ankit Jain
>> >>
>> >>
>> >>
>> >> On Wed, Jun 13, 2012 at 4:56 PM, Foo Shyn Chung <[hidden email]>
>> wrote:
>> >> > Hi all,
>> >> >
>> >> > My current project needs to expose the ofbiz servce as web service and
>> >> > currently i'm thinking to expose them as restful service since from
>> what
>> >> i
>> >> > read on the line is that android is better suited with restful
>> services.
>> >> >
>> >> > I have found this link whereby i'm able to export the service as a
>> >> restful
>> >> > web serivce. I wonder whether the configuration mentioned in the site
>> >> > (something similar to the export="true") is done as of version 12.04?
>> >> >
>> >> > https://cwiki.apache.org/OFBIZ/export-service-using-rest.html
>> >> >
>> >> > Anyone with any experience with working on restful web service on
>> ofbiz?
>> >> > Any idea?
>> >> >
>> >> > Thanx
>> >> > FooShyn
>> >>
>>
Reply | Threaded
Open this post in threaded view
|

Re: Restful service in ofbiz

Foo Shyn Chung
I'm getting the same error :  org.ofbiz.service.ServiceAuthException: User
authorization is required for this service: ping

The raw input of my headers are:

login.username: admin
login.password: ofbiz

Do i need to use the https URL instead of normal http ?

Thanx
FooShyn

On Thu, Jun 14, 2012 at 5:35 PM, Ankit Jain <[hidden email]> wrote:

> I have tested it on advanced REST client on Chrome try this
>
> https://chrome.google.com/webstore/detail/hgmloofddffdnphfgcellkdfbfbjeloo
>
> HTH
>
> Regards,
> Ankit Jain
>
>
>
> On Thu, Jun 14, 2012 at 2:58 PM, Foo Shyn Chung <[hidden email]> wrote:
> > Thanx Ankit.
> >
> > One thing, i'd followed the document and so far have been able to work
> out
> > the REST service to perform the ping. However when I add in the
> > authentication and using the restclient in my firefox to test it, i keep
> on
> > getting authentication failed error. The restclient on my firefox is of
> > version 2.0.3.
> >
> > I'd added the login.username and login.password on the Request Header
> > section but it still fails. Any idea why this is not working?
> >
> > Thanx
> > FooShyn
> >
> > On Thu, Jun 14, 2012 at 3:57 PM, Ankit Jain <[hidden email]>
> wrote:
> >
> >> I dont think its done yet.
> >>
> >> Regards,
> >> Ankit Jain
> >>
> >>
> >>
> >> On Thu, Jun 14, 2012 at 1:07 PM, Foo Shyn Chung <[hidden email]>
> wrote:
> >> > Thanx Ankit.
> >> >
> >> > I'm just curious whether the mentioned improvement in the article is
> >> being
> >> > done or not (to have something like the expose="true" for REST).
> >> >
> >> > Thanx
> >> > FooShyn
> >> >
> >> > On Wed, Jun 13, 2012 at 7:41 PM, Ankit Jain <[hidden email]>
> >> wrote:
> >> >
> >> >> Hi FooShyn,
> >> >>
> >> >> I have used the restful services by following the same document but I
> >> >> used with 10.04 not sure about 12.04 but I think it will work with
> >> >> 12.04 also. :)
> >> >>
> >> >> Regards,
> >> >> Ankit Jain
> >> >>
> >> >>
> >> >>
> >> >> On Wed, Jun 13, 2012 at 4:56 PM, Foo Shyn Chung <[hidden email]>
> >> wrote:
> >> >> > Hi all,
> >> >> >
> >> >> > My current project needs to expose the ofbiz servce as web service
> and
> >> >> > currently i'm thinking to expose them as restful service since from
> >> what
> >> >> i
> >> >> > read on the line is that android is better suited with restful
> >> services.
> >> >> >
> >> >> > I have found this link whereby i'm able to export the service as a
> >> >> restful
> >> >> > web serivce. I wonder whether the configuration mentioned in the
> site
> >> >> > (something similar to the export="true") is done as of version
> 12.04?
> >> >> >
> >> >> > https://cwiki.apache.org/OFBIZ/export-service-using-rest.html
> >> >> >
> >> >> > Anyone with any experience with working on restful web service on
> >> ofbiz?
> >> >> > Any idea?
> >> >> >
> >> >> > Thanx
> >> >> > FooShyn
> >> >>
> >>
>
Reply | Threaded
Open this post in threaded view
|

Re: Restful service in ofbiz

Foo Shyn Chung
Sorry my mistake. Mis-typed the header name in the PingResource and end up
getting the wrong result.

Am able to get it to work now. Thanks a lot for the help.

Thanx
FooShyn

On Thu, Jun 14, 2012 at 5:46 PM, Foo Shyn Chung <[hidden email]> wrote:

> I'm getting the same error :  org.ofbiz.service.ServiceAuthException:
> User authorization is required for this service: ping
>
> The raw input of my headers are:
>
> login.username: admin
> login.password: ofbiz
>
> Do i need to use the https URL instead of normal http ?
>
> Thanx
> FooShyn
>
> On Thu, Jun 14, 2012 at 5:35 PM, Ankit Jain <[hidden email]> wrote:
>
>> I have tested it on advanced REST client on Chrome try this
>>
>> https://chrome.google.com/webstore/detail/hgmloofddffdnphfgcellkdfbfbjeloo
>>
>> HTH
>>
>> Regards,
>> Ankit Jain
>>
>>
>>
>> On Thu, Jun 14, 2012 at 2:58 PM, Foo Shyn Chung <[hidden email]>
>> wrote:
>> > Thanx Ankit.
>> >
>> > One thing, i'd followed the document and so far have been able to work
>> out
>> > the REST service to perform the ping. However when I add in the
>> > authentication and using the restclient in my firefox to test it, i
>> keep on
>> > getting authentication failed error. The restclient on my firefox is of
>> > version 2.0.3.
>> >
>> > I'd added the login.username and login.password on the Request Header
>> > section but it still fails. Any idea why this is not working?
>> >
>> > Thanx
>> > FooShyn
>> >
>> > On Thu, Jun 14, 2012 at 3:57 PM, Ankit Jain <[hidden email]>
>> wrote:
>> >
>> >> I dont think its done yet.
>> >>
>> >> Regards,
>> >> Ankit Jain
>> >>
>> >>
>> >>
>> >> On Thu, Jun 14, 2012 at 1:07 PM, Foo Shyn Chung <[hidden email]>
>> wrote:
>> >> > Thanx Ankit.
>> >> >
>> >> > I'm just curious whether the mentioned improvement in the article is
>> >> being
>> >> > done or not (to have something like the expose="true" for REST).
>> >> >
>> >> > Thanx
>> >> > FooShyn
>> >> >
>> >> > On Wed, Jun 13, 2012 at 7:41 PM, Ankit Jain <[hidden email]>
>> >> wrote:
>> >> >
>> >> >> Hi FooShyn,
>> >> >>
>> >> >> I have used the restful services by following the same document but
>> I
>> >> >> used with 10.04 not sure about 12.04 but I think it will work with
>> >> >> 12.04 also. :)
>> >> >>
>> >> >> Regards,
>> >> >> Ankit Jain
>> >> >>
>> >> >>
>> >> >>
>> >> >> On Wed, Jun 13, 2012 at 4:56 PM, Foo Shyn Chung <[hidden email]>
>> >> wrote:
>> >> >> > Hi all,
>> >> >> >
>> >> >> > My current project needs to expose the ofbiz servce as web
>> service and
>> >> >> > currently i'm thinking to expose them as restful service since
>> from
>> >> what
>> >> >> i
>> >> >> > read on the line is that android is better suited with restful
>> >> services.
>> >> >> >
>> >> >> > I have found this link whereby i'm able to export the service as a
>> >> >> restful
>> >> >> > web serivce. I wonder whether the configuration mentioned in the
>> site
>> >> >> > (something similar to the export="true") is done as of version
>> 12.04?
>> >> >> >
>> >> >> > https://cwiki.apache.org/OFBIZ/export-service-using-rest.html
>> >> >> >
>> >> >> > Anyone with any experience with working on restful web service on
>> >> ofbiz?
>> >> >> > Any idea?
>> >> >> >
>> >> >> > Thanx
>> >> >> > FooShyn
>> >> >>
>> >>
>>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Restful service in ofbiz

guhao
In reply to this post by Foo Shyn Chung