Remote Access of OFBiz Services

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

Remote Access of OFBiz Services

Sebastian Erler
Hi All,

i want to set up two OFBiz instances in the following way. One Ofbiz uses specific services of the second ofbiz remotely and not its local services (for study reasons).

As far as i understand it, ofbiz services are defined in several service.xml files (i.e. OFBiz_home/applications/product/servicedef/service.xml).
There we have elements like this:

<service name="..." location"...">...</service>

Is it possible to set a service location to another running Ofbiz instance?
Or does somebody know a better way of telling Ofbiz to use a remote service(or component) of another Ofbiz?


Thanks in advance

Sebastian Erler


--
GMX DSL Doppel-Flat ab 19,99 &euro;/mtl.! Jetzt auch mit
gratis Notebook-Flat! http://portal.gmx.net/de/go/dsl
Reply | Threaded
Open this post in threaded view
|

Re: Remote Access of OFBiz Services

Abhishake Agarwal
Hi,

you can expose the service  using export attribute.

<service name="..." location"..."   export="true">...</service>

This will expose the service as a webservice.

Regards,
Abhishake


On Sat, Dec 11, 2010 at 9:16 PM, Sebastian Erler
<[hidden email]>wrote:

> Hi All,
>
> i want to set up two OFBiz instances in the following way. One Ofbiz uses
> specific services of the second ofbiz remotely and not its local services
> (for study reasons).
>
> As far as i understand it, ofbiz services are defined in several
> service.xml files (i.e.
> OFBiz_home/applications/product/servicedef/service.xml).
> There we have elements like this:
>
> <service name="..." location"...">...</service>
>
> Is it possible to set a service location to another running Ofbiz instance?
> Or does somebody know a better way of telling Ofbiz to use a remote
> service(or component) of another Ofbiz?
>
>
> Thanks in advance
>
> Sebastian Erler
>
>
> --
> GMX DSL Doppel-Flat ab 19,99 &euro;/mtl.! Jetzt auch mit
> gratis Notebook-Flat! http://portal.gmx.net/de/go/dsl
>
Reply | Threaded
Open this post in threaded view
|

Re: Remote Access of OFBiz Services

SebastianErler
Hi,

ok now i have set a service to be accessible from outside. But how can i tell the OFBiz on another machine to invoke this remote service and not its local one. I think i have to set the "location" attribute of that service on the invoking OFBiz to point to the remote accessible one.
Can yout tell me how the syntax of that "pointer" should look like? (i.e. location="<a href="http://IP:Port/service">http://IP:Port/service" ?)

Regards,
Sebastian Erler