Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 36287 invoked from network); 7 Aug 2007 09:24:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Aug 2007 09:24:32 -0000 Received: (qmail 6614 invoked by uid 500); 7 Aug 2007 09:24:28 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 6568 invoked by uid 500); 7 Aug 2007 09:24:28 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 6557 invoked by uid 99); 7 Aug 2007 09:24:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Aug 2007 02:24:28 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Aug 2007 09:24:19 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 8DE687141F9 for ; Tue, 7 Aug 2007 02:23:59 -0700 (PDT) Message-ID: <24941772.1186478639578.JavaMail.jira@brutus> Date: Tue, 7 Aug 2007 02:23:59 -0700 (PDT) From: "Michael Mattox (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Commented: (AXIS2-649) Databinding with XMLBeans shows values in soap message but getters return null In-Reply-To: <17429522.1146484667810.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AXIS2-649?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12518127 ] Michael Mattox commented on AXIS2-649: -------------------------------------- I've created an issue in the XFire JIRA (my problem is with XFire, I didn't have this problem with Axis2). http://jira.codehaus.org/browse/XFIRE-1070 > Databinding with XMLBeans shows values in soap message but getters return null > ------------------------------------------------------------------------------ > > Key: AXIS2-649 > URL: https://issues.apache.org/jira/browse/AXIS2-649 > Project: Axis 2.0 (Axis2) > Issue Type: Bug > Affects Versions: 1.0 > Environment: Java 5, linux > Reporter: robert lazarski > Assignee: Ajith Harshana Ranabahu > Attachments: simple.wsdl, SimpleEndpointSkeleton.java, SimpleServiceSkeleton.java, Tester.java > > > This issue may be related to AXIS2-644, but my example is not using inheritance, > The wsdl is attached and validates fine. > The response envelope is: > my random string > I'm setting 'web_user_name' in the service, but it's not showing up. > On the client side, simpleLoginResponseDocument.toString() gives me: > > my random string > > > I'm getting the 'soap_user_session' in the soap message, but I'm getting null when trying to call simpleLoginResponse.getSoapSessionId() . The reason may be here in simplens/types/impl/SimpleLoginResponseDocumentImpl.java - > I've put in a few println() : > public static class SimpleLoginResponseImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements simplens.types.SimpleLoginResponseDocument.SimpleLoginResponse > { > public SimpleLoginResponseImpl(org.apache.xmlbeans.SchemaType sType) > { > super(sType); > } > private static final javax.xml.namespace.QName SOAPSESSIONID$0 = > new javax.xml.namespace.QName("", "soap_session_id"); > private static final javax.xml.namespace.QName WEBUSERNAME$2 = > new javax.xml.namespace.QName("", "web_user_name"); > /** > * Gets the "soap_session_id" element > */ > public java.lang.String getSoapSessionId() > { > synchronized (monitor()) > { > check_orphaned(); > org.apache.xmlbeans.SimpleValue target = null; > target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SOAPSESSIONID$0, 0); > if (target == null) > { > System.out.println("target is null"); > return null; > } > System.out.println("target is ok? " + target); > return target.getStringValue(); > } > } > The target is null, but the value is showing in the soap message. This is the .95 version: > private static final javax.xml.namespace.QName SIMPLELOGINRESPONSE$0 = > new javax.xml.namespace.QName("http://simpleNS/types", "simpleLoginResponse"); > The missing namespace appears to be causing this. > Also attached are my Skeleton, Client, and wsdl2java ant task. -- 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