[
http://jira.codehaus.org/browse/XFIRE-1070?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=128536#action_128536
]
Lokajit Tikayatray commented on XFIRE-1070:
-------------------------------------------
Hi, Even I am facing the exactly same issue when I am trying to fetch data from
my web service using XMLBean binding. I genearted the XMLBinding classes from
AXIS2 tool WSDL2JAVA. I am getting the resposnse XML correctly but the below
line always returns null.
(org.apache.xmlbeans.SimpleValue)get_store().find_element_user(OUTPUTFORMATTYPE$0,
0)
Hence, it always throws null pointer exception whenever I try to fetch any
field value from the response object.
Not sure where the issue lies. Please help if any one has found any solution
for this.
> Unmarshalling problem with xmlbeans - list ends up null
> -------------------------------------------------------
>
> Key: XFIRE-1070
> URL: http://jira.codehaus.org/browse/XFIRE-1070
> Project: XFire
> Issue Type: Bug
> Components: XMLBeans
> Affects Versions: 1.2.6
> Environment: xfire 1.2.6, xmlbeans 2.3.0, jdk 1.5
> Reporter: Michael Mattox
> Assignee: Dan Diephouse
> Priority: Critical
> Attachments: Test14.wsdl
>
>
> Using document literal wrapped.
> Our method takes a single object which has a list:
> public String foo(A a) {
> System.out.println("A.toString() = " + a);
> System.out.println("a.getListB()" + a.getListB());
> return "true";
> }
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:tes="http://www.example.org/Test14/">
> <soapenv:Header/>
> <soapenv:Body>
> <tes:foo>
> <a>
> <listB>
> <!--Zero or more repetitions:-->
> <id>5</id>
> </listB>
> </a>
> </tes:foo>
> </soapenv:Body>
> </soapenv:Envelope>
> The .toString on the object shows the list exists:
> A.toString() = <a xmlns:tes="http://www.example.org/Test14/"
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
> <listB>
> <id>5</id>
> </listB>
> </a>
> But the system.out.println shows that the list is null:
> a.getListB()null
> I attached the WSDL which shows this problem.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email