Usage of Util Xml and colon in xml namespace.

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

Usage of Util Xml and colon in xml namespace.

rohit
Hi,

I am trying to write a xml, with the following command:

UtilXml.addChildElementValue(entryElem, "g:title", "java how to program", feedDocument);

I expected the xml output to be as follows:

<g:title>java how to program</g:title>

However, the actual output is as below:

<title>java how to program</title>, ie. the "g:" has been removed automatically. I am not sure why this is happening and how can we avoid it. If anyone can share some thoughts i did appreciate it.

Thanks

Rohit
Reply | Threaded
Open this post in threaded view
|

Re: Usage of Util Xml and colon in xml namespace.

Adrian Crum
The UtilXml methods don't support name spaces. It would be nice if they
did though. Look in the webdav folder in framework/webapp for examples
of how to use name spaces.

-Adrian

rohit2006 wrote:

> Hi,
>
> I am trying to write a xml, with the following command:
>
> UtilXml.addChildElementValue(entryElem, "g:title", "java how to program",
> feedDocument);
>
> I expected the xml output to be as follows:
>
> <g:title>java how to program</g:title>
>
> However, the actual output is as below:
>
> <title>java how to program</title>, ie. the "g:" has been removed
> automatically. I am not sure why this is happening and how can we avoid it.
> If anyone can share some thoughts i did appreciate it.
>
> Thanks
>
> Rohit
Reply | Threaded
Open this post in threaded view
|

Re: Usage of Util Xml and colon in xml namespace.

Ashish Vijaywargiya-5
Hello Rohit,

This feature is now supported in trunk. Please refer revision # 807938.
Thanks!

--
Ashish


Adrian Crum wrote:

> The UtilXml methods don't support name spaces. It would be nice if
> they did though. Look in the webdav folder in framework/webapp for
> examples of how to use name spaces.
>
> -Adrian
>
> rohit2006 wrote:
>> Hi,
>>
>> I am trying to write a xml, with the following command:
>>
>> UtilXml.addChildElementValue(entryElem, "g:title", "java how to
>> program",
>> feedDocument);
>>
>> I expected the xml output to be as follows:
>>
>> <g:title>java how to program</g:title>
>>
>> However, the actual output is as below:
>> <title>java how to program</title>, ie. the "g:" has been removed
>> automatically. I am not sure why this is happening and how can we
>> avoid it.
>> If anyone can share some thoughts i did appreciate it.
>>
>> Thanks
>>
>> Rohit

smime.p7s (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Any retry framework for Ofbiz ?

Kishore Pagadala
Hi All,

Requirment: Need to call a third party service from OFBiz, if the service is not available I need to try it after every hour till we get a reply.

Do we have any retry framework provided by OFBiz ?
I want a third party service (maxmind Fraud detection, Authroize.net, Endicia ) to be probed with a given frequency.

Does the OFBiz framework supports this kind of retrying process ?

Regards,
Kishore



http://www.mindtree.com/email/disclaimer.html
Reply | Threaded
Open this post in threaded view
|

RE: Any retry framework for Ofbiz ?

Hemanth Kumar Kanamarlapudi
Hi Kishore,

You can refer SchedularJobs.xml in party folder or SchedularServices.xml in framework.

<entity-engine-xml>
    <!-- create recurring job to check email communication events with the status COM_IN_PROGRESS to send these emails.. -->
    <TemporalExpression tempExprId="SENDEMAIL" tempExprTypeId="FREQUENCY" integer1="12" integer2="5"/>
    <JobSandbox jobId="SENDEMAIL" jobName="Send Email" runTime="2000-01-01 00:00:00.000" serviceName="sendEmailDated" poolId="pool" runAsUser="system" tempExprId="SENDEMAIL" maxRecurrenceCount="-1"/>
</entity-engine-xml>


Regards
Hemanth

-----Original Message-----
From: Kishore Pagadala
Sent: Wednesday, August 26, 2009 4:46 PM
To: [hidden email]
Subject: Any retry framework for Ofbiz ?

Hi All,

Requirment: Need to call a third party service from OFBiz, if the service is not available I need to try it after every hour till we get a reply.

Do we have any retry framework provided by OFBiz ?
I want a third party service (maxmind Fraud detection, Authroize.net, Endicia ) to be probed with a given frequency.

Does the OFBiz framework supports this kind of retrying process ?

Regards,
Kishore



http://www.mindtree.com/email/disclaimer.html
Reply | Threaded
Open this post in threaded view
|

Re: Any retry framework for Ofbiz ?

Sumit Pandit-3
In reply to this post by Kishore Pagadala
Hello Kishore,

OFBiz has "Job Scheduler", which can help you. Please look at - http://docs.ofbiz.org/display/OFBTECH/Service+Engine+Guide 
   (Job Scheduler).
A scheduled will enter the estimated dates for you based on the  
defined task dependencies and planned/actual duration of the tasks.

--
Regards
Sumit Pandit

On 26-Aug-09, at 4:45 PM, Kishore Pagadala wrote:

> Hi All,
>
> Requirment: Need to call a third party service from OFBiz, if the  
> service is not available I need to try it after every hour till we  
> get a reply.
>
> Do we have any retry framework provided by OFBiz ?
> I want a third party service (maxmind Fraud detection,  
> Authroize.net, Endicia ) to be probed with a given frequency.
>
> Does the OFBiz framework supports this kind of retrying process ?
>
> Regards,
> Kishore
>
>
>
> http://www.mindtree.com/email/disclaimer.html