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.============================================================================================================================ |
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: [hidden email] On Wed, Dec 8, 2010 at 5:34 PM, Deepa Priolkar <[hidden email]>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.============================================================================================================================ > |
Free forum by Nabble | Edit this page |