Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 86719 invoked from network); 11 Oct 2006 21:56:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 11 Oct 2006 21:56:33 -0000 Received: (qmail 64807 invoked by uid 500); 11 Oct 2006 21:56:29 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 64766 invoked by uid 500); 11 Oct 2006 21:56:29 -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 64755 invoked by uid 99); 11 Oct 2006 21:56:29 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Oct 2006 14:56:29 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Oct 2006 14:56:26 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 8B06B7141E3 for ; Wed, 11 Oct 2006 14:55:45 -0700 (PDT) Message-ID: <28682711.1160603745566.JavaMail.jira@brutus> Date: Wed, 11 Oct 2006 14:55:45 -0700 (PDT) From: "Davanum Srinivas (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Commented: (AXIS2-1310) Deserialization of XMLBeans fails In-Reply-To: <12178807.1160052026200.JavaMail.root@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 X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/AXIS2-1310?page=comments#action_12441568 ] Davanum Srinivas commented on AXIS2-1310: ----------------------------------------- Your service is returning bad xml (w.r.t namespaces). Please see a "correct" response according to the schema. true Fahrzeug nicht gefunden, Fahrzeug-Id ist: -56 > Deserialization of XMLBeans fails > --------------------------------- > > Key: AXIS2-1310 > URL: http://issues.apache.org/jira/browse/AXIS2-1310 > Project: Apache Axis 2.0 (Axis2) > Issue Type: Bug > Components: databinding > Affects Versions: 1.0, nightly > Environment: Linux, Java 5 (Sun) > Reporter: Daniel Murygin > Attachments: FahrzeugExportFacade.wsdl > > > Hello, > the deserialization of a web service response fails. > Details: > * I use axis2 nightly build form 2006/10/04. I also tried Version 1.0. > * I use XMLBeans for databinding > * I generated client code for my web service: WSDL2Java.sh -o ./ -d xmlbeans -s -uri ./resources/FahrzeugExportFacade.wsdl > * I access the web service by using (modified) generated test code: > public void testsperreFahrzeug() throws java.lang.Exception > { > LOG.debug( "testsperreFahrzeug" ); > com.carano.dbfleet.export.fahrzeug.ws.FahrzeugExportFacadeServiceStub stub = new com.carano.dbfleet.export.fahrzeug.ws.FahrzeugExportFacadeServiceStub(); > com.carano.dbfleet.export.fahrzeug.ws.SperreFahrzeugDocument param22 = ( com.carano.dbfleet.export.fahrzeug.ws.SperreFahrzeugDocument )getTestObject( com.carano.dbfleet.export.fahrzeug.ws.SperreFahrzeugDocument.class ); > param22.addNewSperreFahrzeug().setFahrzeugId( -56 ); > SperreFahrzeugResponseDocument antwort = stub.sperreFahrzeug( param22 ); > LOG.debug( "XML: " + antwort ); > LOG.debug( "Fehler: " + antwort.getSperreFahrzeugResponse().getSperreFahrzeugReturn().getFehlertext() ); > } > *Log output is: > 11:06:23,710 DEBUG [FahrzeugExportFacadeServiceTest] testsperreFahrzeug > 11:06:25,820 DEBUG [FahrzeugExportFacadeServiceTest] XML: > > true > Fahrzeug nicht gefunden, Fahrzeug-Id ist: -56 > > > 11:06:25,931 DEBUG [FahrzeugExportFacadeServiceTest] Fehler: null > * antwort.getSperreFahrzeugResponse().getSperreFahrzeugReturn().getFehlertext() is null but "antwort" contains the xml element "fehlertext" > Maybe this bug is related to AXIS2-644 http://issues.apache.org/jira/browse/AXIS2-644 and > AXIS2-649 http://issues.apache.org/jira/browse/AXIS2-649 > Is there a work-around to get values when using XMLBeans? > Thanks for your help, Daniel. -- 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