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 "Daniel Murygin (JIRA)" <ji...@apache.org> on 2010/04/14 08:48:53 UTC

[jira] Closed: (AXIS2-1310) Deserialization of XMLBeans fails

     [ https://issues.apache.org/jira/browse/AXIS2-1310?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Murygin closed AXIS2-1310.
---------------------------------


> Deserialization of XMLBeans fails
> ---------------------------------
>
>                 Key: AXIS2-1310
>                 URL: https://issues.apache.org/jira/browse/AXIS2-1310
>             Project: 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: <sperreFahrzeugResponse xmlns="http://ws.fahrzeug.export.dbfleet.carano.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
>   <sperreFahrzeugReturn>
>     <fehlerAufgetreten>true</fehlerAufgetreten>
>     <fehlertext>Fahrzeug nicht gefunden, Fahrzeug-Id ist: -56</fehlertext>
>   </sperreFahrzeugReturn>
> </sperreFahrzeugResponse>
> 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: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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