You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Deepa Priolkar <de...@TechMahindra.com> on 2010/12/08 13:04:50 UTC

Ofbiz Version 9.04 Issue for the Strings with Special Characters

Hi,

 

I am trying to invoke one of my service as webservice by exporting it.

 

The input parameters for this service is "Strings", snippet of the code

 

<service name="updateScanResult" export="true" auth="false"
engine="java" 

            location="org.pci.scan.services.ASVScanService"
invoke="updateASVScanResult">

        <description>Internalize the scan result and store components in
the persistent store</description>

        <attribute name="scanResult" type="String" mode="IN"
optional="false"/>

</service>          

 

I am passing some Strings like "<NexposeReport
version=\"1.0\"><scans><scan id=\"4\" name=\"finalScanName\" />

 

But for above input I am getting error message, 

org.ofbiz.service.ServiceValidationException: In field [scanResult]
less-than (<) and greater-than (>) symbols are not allowed

 

I am totally stuck because of this issue.

 

Thanks in advance.

 

Regards,

Deepa

 

 


============================================================================================================================Disclaimer:  This message and the information contained herein is proprietary and confidential and subject to the Tech Mahindra policy statement, you may review the policy at <a href="http://www.techmahindra.com/Disclaimer.html">http://www.techmahindra.com/Disclaimer.html</a> externally and <a href="http://tim.techmahindra.com/Disclaimer.html">http://tim.techmahindra.com/Disclaimer.html</a> internally within Tech Mahindra.============================================================================================================================

Re: Ofbiz Version 9.04 Issue for the Strings with Special Characters

Posted by pankaj savita <pa...@gmail.com>.
Hi Deepa,

    Service 'IN' parameters are validated. Default is allow-html="none". So
you must try this:

    1) <attribute name="scanResult" type="String" mode="IN" optional="false"
alllow-html="safe"/>
    or
    2) <attribute name="scanResult" type="String" mode="IN" optional="false"
alllow-html="any"/>

   This will allow Special Characters.


 --
Thanks & Regards,
Pankaj Savita
Mob: +91 9890262476
Mail to: pankajsavita@gmail.com



On Wed, Dec 8, 2010 at 5:34 PM, Deepa Priolkar <de...@techmahindra.com>wrote:

> Hi,
>
>
>
> I am trying to invoke one of my service as webservice by exporting it.
>
>
>
> The input parameters for this service is "Strings", snippet of the code
>
>
>
> <service name="updateScanResult" export="true" auth="false"
> engine="java"
>
>            location="org.pci.scan.services.ASVScanService"
> invoke="updateASVScanResult">
>
>        <description>Internalize the scan result and store components in
> the persistent store</description>
>
>        <attribute name="scanResult" type="String" mode="IN"
> optional="false"/>
>
> </service>
>
>
>
> I am passing some Strings like "<NexposeReport
> version=\"1.0\"><scans><scan id=\"4\" name=\"finalScanName\" />
>
>
>
> But for above input I am getting error message,
>
> org.ofbiz.service.ServiceValidationException: In field [scanResult]
> less-than (<) and greater-than (>) symbols are not allowed
>
>
>
> I am totally stuck because of this issue.
>
>
>
> Thanks in advance.
>
>
>
> Regards,
>
> Deepa
>
>
>
>
>
>
> ============================================================================================================================Disclaimer:
>  This message and the information contained herein is proprietary and
> confidential and subject to the Tech Mahindra policy statement, you may
> review the policy at <a href="http://www.techmahindra.com/Disclaimer.html
> ">http://www.techmahindra.com/Disclaimer.html</a> externally and <a href="
> http://tim.techmahindra.com/Disclaimer.html">
> http://tim.techmahindra.com/Disclaimer.html</a> internally within Tech
> Mahindra.============================================================================================================================
>