You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "GNANASEKARAN VINAYAKAMURTHY (JIRA)" <ji...@apache.org> on 2006/10/14 02:15:34 UTC

[jira] Created: (AXIS2-1382) Parsing problem in Axis2

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


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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Updated: (AXIS2-1382) Parsing problem in Axis2

Posted by "GNANASEKARAN VINAYAKAMURTHY (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-1382?page=all ]

GNANASEKARAN VINAYAKAMURTHY updated AXIS2-1382:
-----------------------------------------------

    Attachment: ReportExecutionServiceStub.java

Hi Amila,

Thanks for your follow up. I did some fix in the generated stub class and works fine. 
I think WSDL file from MS reporting services should not have any problem. And I have attached the generated stub class with this. And following is the fix, I tried...

Method in stub class : public static RenderResponse parse(javax.xml.stream.XMLStreamReader reader){...} . In this method: at line number: 17670, I have added a if check : 
java.lang.String contentText = reader.getElementText();
                                        if(contentText != null) {
                                            object.setResult(org.apache.axis2.databinding.utils.ConverterUtil.convertToBase64Binary(contentText));
                                        }

Since the existing if(reader.hasText()) returns null and so result content was not stored in Response object.

The above changes works fine..

Thanks,
Vinay




> 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, ReportExecutionServiceStub.java
>
>
> 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Updated: (AXIS2-1382) Parsing problem in Axis2

Posted by "GNANASEKARAN VINAYAKAMURTHY (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-1382?page=all ]

GNANASEKARAN VINAYAKAMURTHY updated AXIS2-1382:
-----------------------------------------------

    Attachment: Render-tcpmon-output.xml

tcpmon request/response for Render Report request to Microsoft SQL Reporting services 2005

> 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Resolved: (AXIS2-1382) Parsing problem in Axis2

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-1382?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Davanum Srinivas resolved AXIS2-1382.
-------------------------------------

    Resolution: Cannot Reproduce

> Parsing problem in Axis2
> ------------------------
>
>                 Key: AXIS2-1382
>                 URL: https://issues.apache.org/jira/browse/AXIS2-1382
>             Project: 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, ReportExecutionServiceStub.java
>
>
> 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.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Updated: (AXIS2-1382) Parsing problem in Axis2

Posted by "GNANASEKARAN VINAYAKAMURTHY (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-1382?page=all ]

GNANASEKARAN VINAYAKAMURTHY updated AXIS2-1382:
-----------------------------------------------

    Attachment: reportexecution2005.wsdl

WSDL file of Microsoft SQL Reporting Services 2005

> 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: 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-1382) Parsing problem in Axis2

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
    [ 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org