Hi,
we found that soapUI does not pass xml files as it is. We will try to call
the service through a stub.
Thanks a lot for the help.
Chaya Sandamali
Software Engineering Intern
WSo2 Inc
Mobile: +94714905772
LinkedIn: http://lk.linkedin.com/pub/chaya-sandamali/90/694/a59/
On Thu, Feb 5, 2015 at 5:05 PM, Lakshman Udayakantha lakshm...@wso2.com
wrote:
Hi Prabushi,
Seems like the XML you posted is a valid one. But it seems, when you pass
it to the deployTemplateConfig() method, You pass an invalid xml. Could
you check the parsing XML to that method is a valid one by debugging the
code. You can check, are there any xml declarations more than one in xml or
are there any unusual characters before xml declaration like empty spaces.
Thanks
On Thu, Feb 5, 2015 at 4:36 PM, Prabushi Samarakoon prabus...@wso2.com
wrote:
Hi,
As the input we are giving a string like,
?xml version=1.0 encoding=UTF-8?
TemplateConfig name=TemperatureConfiguration
from=TemperatureAnalysis
Descriptiondescription of temperature analysis/Description
Templates
Template type=Condition name=template1
ConditionParameters name=condition
OR order=root
AND order=left
Parameter order=left
![CDATA[x60]]
/Parameter
Parameter order=right
![CDATA[x600]]
/Parameter
/AND
Parameter order=right
![CDATA[x!=100]]
/Parameter
/OR
/ConditionParameters
/Template
Template name=template2 type=Condition
ConditionParameters name=condition
Parameter order=root
![CDATA[x60]]
/Parameter
/ConditionParameters
/Template
Template name=template3 type=AverageTemperature
ConditionParameters name=condition
Parameter order=root
![CDATA[x60]]
/Parameter
/ConditionParameters
Parameters
DirectParameter name=inTime60 sec/DirectParameter
DirectParameter
name=averageMinTemperature60/DirectParameter
/Parameters
/Template
/Templates
TemplateWiring
or type=root
and type=left
template type=lefttemplate1/template
template type=righttemplate2/template
/and
or type=right
template type=lefttemplate1/template
template type=righttemplate3/template
/or
/or
/TemplateWiring
/TemplateConfig
On Thu, Feb 5, 2015 at 4:31 PM, Lakshman Udayakantha lakshm...@wso2.com
wrote:
Hi Prabushi,
According to exception and [1], It seems your XML cannot parse by that
method. can you post the XML you trying to parse?
[1]
http://stackoverflow.com/questions/19889132/xslthe-processing-instruction-target-matching-xxmmll-is-not-allowed
Thanks
On Thu, Feb 5, 2015 at 4:01 PM, Prabushi Samarakoon prabus...@wso2.com
wrote:
Complete exception
[2015-02-05 15:21:03,740] ERROR - {RPCInOnlyMessageReceiver} Exception
occurred while trying to invoke service method deployTemplateConfig
org.apache.axiom.om.OMException: javax.xml.stream.XMLStreamException:
ParseError at [row,col]:[6,51]
Message: The processing instruction target matching [xX][mM][lL] is
not allowed.
at
org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:296)
at
org.apache.axiom.om.impl.llom.OMElementImpl.buildNext(OMElementImpl.java:653)
at
org.apache.axiom.om.impl.llom.OMElementImpl.getFirstOMChild(OMElementImpl.java:670)
at
org.apache.axiom.om.impl.llom.OMElementImpl.getText(OMElementImpl.java:781)
at
org.apache.axis2.databinding.typemapping.SimpleTypeMapper.getSimpleTypeObject(SimpleTypeMapper.java:77)
at
org.apache.axis2.databinding.utils.BeanUtil.getSimpleTypeObjectChecked(BeanUtil.java:992)
at
org.apache.axis2.databinding.utils.BeanUtil.processObject(BeanUtil.java:832)
at
org.apache.axis2.databinding.utils.BeanUtil.ProcessElement(BeanUtil.java:765)
at
org.apache.axis2.databinding.utils.BeanUtil.deserialize(BeanUtil.java:674)
at
org.apache.axis2.rpc.receivers.RPCUtil.processRequest(RPCUtil.java:153)
at
org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:206)
at
org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver.invokeBusinessLogic(RPCInOnlyMessageReceiver.java:66)
at
org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172