[
http://issues.apache.org/jira/browse/AXIS2-1382?page=comments#action_12443265 ]
Amila Chinthaka Suriarachchi commented on AXIS2-1382:
-----------------------------------------------------
I tried to recreate you issue, but I could not. I wrote a small test case to
create a RenderResponse class to serialize and parse and it works fine.
RenderResponse renderResponse = new RenderResponse();
renderResponse.setExtension("html");
renderResponse.setMimeType("text/html");
renderResponse.setEncoding("Unicode (UTF-8)");
String test = "Testing string";
ByteArrayDataSource byteArrayDataSource = new
ByteArrayDataSource(test.getBytes());
DataHandler dataHandler = new DataHandler(byteArrayDataSource);
OMText firstText = new OMTextImpl(dataHandler,true,null);
renderResponse.setResult(dataHandler);
ArrayOfString arrayOfString = new ArrayOfString();
arrayOfString.setString(new String[]{});
renderResponse.setStreamIds(arrayOfString);
OMElement omElement =
renderResponse.getOMElement(RenderResponse.MY_QNAME,
OMAbstractFactory.getSOAP12Factory());
System.out.println("OMElement ==> " + omElement);
try {
XMLStreamReader xmlReader = StAXUtils.createXMLStreamReader(new
ByteArrayInputStream(omElement.toString().getBytes()));
RenderResponse returnObject =
RenderResponse.Factory.parse(xmlReader);
OMText returnText = new
OMTextImpl(returnObject.getResult(),true,null);
assertTrue(firstText.getText().equals(returnText.getText()));
} catch (Exception e) {
fail();
}
Can you try again in nigthly?
if fails can you attach the stack trace of the exception and your skelten
method which produces, the response object?
And also can you try my sample as well?
Thankx,
Amila.
> Parsing problem in Axis2
> ------------------------
>
> Key: AXIS2-1382
> URL: http://issues.apache.org/jira/browse/AXIS2-1382
> Project: Apache Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: client-api, codegen
> Affects Versions: nightly
> Environment: Windows XP SP2, jdk 1.5, Axis2 nightly build(October 6,
> 2006), Microsoft SQL Reporting Services 2005
> Reporter: GNANASEKARAN VINAYAKAMURTHY
> Attachments: Render-tcpmon-output.xml, reportexecution2005.wsdl
>
>
> Parsing problem for report render result from MS Reporting Services.
> Method parse(javax.xml.stream.XMLStreamReader reader) in generated stub class
> does't parse the Render response result from MS reporting services and so it
> returns empty Response object to client class with no parsed result value in
> it.
> But using tcpmon, the soap response can be identified with render response
> result values.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]