You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Rajesh Mallah <ma...@gmail.com> on 2019/10/31 13:44:30 UTC

not able to export webservices defined using groovy engine

Hi ,

In my installation using ofbiz trunk service using groovy engine are
not getting exported inspite of export="true" attribute in service xml
files.

other engine methods are getting exported.

Please suggest where should i check.

Regds
mallah.

Re: not able to export webservices defined using groovy engine

Posted by Rajesh Mallah <ma...@gmail.com>.
Sorry for all the noise.
The problem was tracked down to duplicate declaration of "export" attribute
in some service elements.
the xml was syntatically incorrect and hence not loaded.

regds
mallah.

On Thu, Oct 31, 2019 at 9:23 PM Rajesh Mallah <ma...@gmail.com>
wrote:

>
> Sorry pls ignore previous observation.
>
>  Many services with groovy are getting exported
>
> Looks like none of the services defined in are getting loaded.
>
> --> file:
> /opt/ofbiz/ofbiz-latest/applications/product/servicedef/services.xml
>
> <service name="createProductCategory"
> default-entity-name="ProductCategory" engine="groovy"
>
> location="component://product/groovyScripts/product/category/CategoryServices.groovy"
> invoke="createProductCategory" auth="true" export="true">
>
> in  /opt/ofbiz/ofbiz-latest/applications/product/ofbiz-component.xml the
> above file is
> already referred.
>
>     <service-resource type="model" loader="main"
> location="servicedef/services.xml"/> <-------------------------------------
>     <service-resource type="model" loader="main"
> location="servicedef/services_facility.xml"/>
>     <service-resource type="model" loader="main"
> location="servicedef/services_feature.xml"/>
>     <service-resource type="model" loader="main"
> location="servicedef/services_inventory.xml"/>
>
> regds
> mallah.
>
>
>
>
> On Thu, Oct 31, 2019 at 7:14 PM Rajesh Mallah <ma...@gmail.com>
> wrote:
>
>> Hi ,
>>
>> In my installation using ofbiz trunk service using groovy engine are
>> not getting exported inspite of export="true" attribute in service xml
>> files.
>>
>> other engine methods are getting exported.
>>
>> Please suggest where should i check.
>>
>> Regds
>> mallah.
>>
>

Re: not able to export webservices defined using groovy engine

Posted by Jacques Le Roux <ja...@les7arts.com>.
Hi Rajesh,

I'm not sure what your problem is. At least the createProductCategory service is loaded in trunk demo:

https://demo-trunk.ofbiz.apache.org/webtools/control/ServiceList?constraint=alpha@c

HTH

Jacques

Le 31/10/2019 à 16:53, Rajesh Mallah a écrit :
> Sorry pls ignore previous observation.
>
>   Many services with groovy are getting exported
>
> Looks like none of the services defined in are getting loaded.
>
> --> file:
> /opt/ofbiz/ofbiz-latest/applications/product/servicedef/services.xml
>
> <service name="createProductCategory" default-entity-name="ProductCategory"
> engine="groovy"
>
> location="component://product/groovyScripts/product/category/CategoryServices.groovy"
> invoke="createProductCategory" auth="true" export="true">
>
> in  /opt/ofbiz/ofbiz-latest/applications/product/ofbiz-component.xml the
> above file is
> already referred.
>
>      <service-resource type="model" loader="main"
> location="servicedef/services.xml"/> <-------------------------------------
>      <service-resource type="model" loader="main"
> location="servicedef/services_facility.xml"/>
>      <service-resource type="model" loader="main"
> location="servicedef/services_feature.xml"/>
>      <service-resource type="model" loader="main"
> location="servicedef/services_inventory.xml"/>
>
> regds
> mallah.
>
>
>
>
> On Thu, Oct 31, 2019 at 7:14 PM Rajesh Mallah <ma...@gmail.com>
> wrote:
>
>> Hi ,
>>
>> In my installation using ofbiz trunk service using groovy engine are
>> not getting exported inspite of export="true" attribute in service xml
>> files.
>>
>> other engine methods are getting exported.
>>
>> Please suggest where should i check.
>>
>> Regds
>> mallah.
>>
> -- 
> Jacques Le Roux
> 400E Chemin de la Mouline
> 34560 Poussan
> 04 67 51 19 38
> 06 11 79 50 28

Re: not able to export webservices defined using groovy engine

Posted by Rajesh Mallah <ma...@gmail.com>.
Sorry pls ignore previous observation.

 Many services with groovy are getting exported

Looks like none of the services defined in are getting loaded.

--> file:
/opt/ofbiz/ofbiz-latest/applications/product/servicedef/services.xml

<service name="createProductCategory" default-entity-name="ProductCategory"
engine="groovy"

location="component://product/groovyScripts/product/category/CategoryServices.groovy"
invoke="createProductCategory" auth="true" export="true">

in  /opt/ofbiz/ofbiz-latest/applications/product/ofbiz-component.xml the
above file is
already referred.

    <service-resource type="model" loader="main"
location="servicedef/services.xml"/> <-------------------------------------
    <service-resource type="model" loader="main"
location="servicedef/services_facility.xml"/>
    <service-resource type="model" loader="main"
location="servicedef/services_feature.xml"/>
    <service-resource type="model" loader="main"
location="servicedef/services_inventory.xml"/>

regds
mallah.




On Thu, Oct 31, 2019 at 7:14 PM Rajesh Mallah <ma...@gmail.com>
wrote:

> Hi ,
>
> In my installation using ofbiz trunk service using groovy engine are
> not getting exported inspite of export="true" attribute in service xml
> files.
>
> other engine methods are getting exported.
>
> Please suggest where should i check.
>
> Regds
> mallah.
>