You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xmlbeans.apache.org by xm...@xml.apache.org on 2004/10/18 16:47:59 UTC

[jira] Updated: (XMLBEANS-71) when trying to retrieve data from a XMLBean with Input from a XML Document, we cannot get any data from the Bean.

The following issue has been updated:

    Updater: sreeram (mailto:sreeram_vadla@hotmail.com)
       Date: Mon, 18 Oct 2004 7:47 AM
    Comment:
Jacob,

I had to change some of the names, but the basic structure is here .

The code does not display even the Status value of SUCCESS as is shown in the Response data.

Regards,

Sree

WSDL: ( Please note that I deleted all the remaining elements such as Messages,  Service ,port types etc from the wsdl because they are not required for XMLbeans to create the beans)
    Changes:
             Attachment changed to CurveResponse.xml
    ---------------------------------------------------------------------
For a full history of the issue, see:

  http://issues.apache.org/jira/browse/XMLBEANS-71?page=history

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/XMLBEANS-71

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: XMLBEANS-71
    Summary: when trying to retrieve data from a XMLBean with Input from a XML Document, we cannot get any data from the Bean.
       Type: Bug

     Status: Unassigned
   Priority: Major

    Project: XMLBeans
   Versions:
             Version 1.0.3

   Assignee: 
   Reporter: sreeram

    Created: Thu, 14 Oct 2004 2:30 PM
    Updated: Mon, 18 Oct 2004 7:47 AM
Environment: version 1.0.3
JDK is IBM JDK 1.4

Description:
we generated our XML beans from a wsdl file.
Once we receive a Response from web service end point, we store the Response message in an XML file.
we try to use the generated XMl beans to parse the Response XML Document and try to retrieve the attribute values from the bean.

The returned values are null.we see no exceptions thrown and when we try to print out the values retrieved from the Bean, all of them are null.

I am wondering if generating the beans from the wsdl rather than a Schema document is causing the problems.

The following is the code we are using to Parse the XML Document.

  String filePath = "c://test/CurveResponse.xml";
				 java.io.File curveResponseFile = new java.io.File(filePath);
				               
         CurveResponseDocument curveDoc = CurveResponseDocument.Factory.parse(curveResponseFile);
		 CurveResponseDocument.CurveResponse curveResponse = curveDoc.getCurveResponse();
		     System.out.println("Status is : "+ curveResponse.getStatus());
		   



---------------------------------------------------------------------
JIRA INFORMATION:
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

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


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