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 "Siamak Haschemi (JIRA)" <ji...@apache.org> on 2006/04/30 12:21:43 UTC

[jira] Created: (AXIS2-644) [Axis2]Deserialization of XMLBeans

[Axis2]Deserialization of  XMLBeans
-----------------------------------

         Key: AXIS2-644
         URL: http://issues.apache.org/jira/browse/AXIS2-644
     Project: Apache Axis 2.0 (Axis2)
        Type: Bug

  Components: databinding  
 Environment: Axis2 RC5
    Reporter: Siamak Haschemi


Hello.

I have a problem with extension-types.

I used a litte WSDL-file to test the possibilities of extension-types. Well, the WSDL-file is very simple. It contains:

- a Basetype "abstract-product-type"
- a conrete-type "beer-type"
- a INOnly request "save"

Generating client and server with WSDL works and a added the following lines to the skeleton:

public void save(org.example.www.inheritance.SaveRequestDocument param0) {
  final SaveRequest saveRequest = param0.getSaveRequest();
  final AbstractProductType abstractProductType = saveRequest.getProduct();
  System.out.println("InheritanceSkeleton.save() product = " + abstractProductType);
}

The request from the client is

<?xml version="1.0" encoding="http://schemas.xmlsoap.org/soap/envelope/"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
  <soapenv:Header/>
  <soapenv:Body>
    <saveRequest xmlns="http://www.example.org/inheritance/">
      <product xmlns:inh="http://www.example.org/inheritance/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="inh:beer-type">
        <name>Klausthaler</name>
      </product>
    </saveRequest>
  </soapenv:Body>
</soapenv:Envelope>


And the output of the server is "InheritanceSkeleton.save() product = null"

So, please can you take a look at my files?

Thank you very much,

Siamak Haschemi

-- 
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


[jira] Commented: (AXIS2-644) [Axis2]Deserialization of XMLBeans

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-644?page=comments#action_12440021 ] 
            
Davanum Srinivas commented on AXIS2-644:
----------------------------------------

Siamak.

latest svn, the following client request works. Your request does not match the wsdl. If you want your exact request to work you need to  add elementFormQualified="true" to the schema in the wsdl and regenerate the service. 

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
	<soapenv:Header/>
	<soapenv:Body>
		<m:saveRequest xmlns:m="http://www.example.org/inheritance/">
			<product xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="inh:beer-type">
				<name>Klausthaler</name>
			</product>
		</m:saveRequest>
	</soapenv:Body>
</soapenv:Envelope>



> [Axis2]Deserialization of  XMLBeans
> -----------------------------------
>
>                 Key: AXIS2-644
>                 URL: http://issues.apache.org/jira/browse/AXIS2-644
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: databinding
>         Environment: Axis2 RC5
>            Reporter: Siamak Haschemi
>         Assigned To: Ajith Harshana Ranabahu
>         Attachments: inheritance.wsdl
>
>
> Hello.
> I have a problem with extension-types.
> I used a litte WSDL-file to test the possibilities of extension-types. Well, the WSDL-file is very simple. It contains:
> - a Basetype "abstract-product-type"
> - a conrete-type "beer-type"
> - a INOnly request "save"
> Generating client and server with WSDL works and a added the following lines to the skeleton:
> public void save(org.example.www.inheritance.SaveRequestDocument param0) {
>   final SaveRequest saveRequest = param0.getSaveRequest();
>   final AbstractProductType abstractProductType = saveRequest.getProduct();
>   System.out.println("InheritanceSkeleton.save() product = " + abstractProductType);
> }
> The request from the client is
> <?xml version="1.0" encoding="http://schemas.xmlsoap.org/soap/envelope/"?>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
>   <soapenv:Header/>
>   <soapenv:Body>
>     <saveRequest xmlns="http://www.example.org/inheritance/">
>       <product xmlns:inh="http://www.example.org/inheritance/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="inh:beer-type">
>         <name>Klausthaler</name>
>       </product>
>     </saveRequest>
>   </soapenv:Body>
> </soapenv:Envelope>
> And the output of the server is "InheritanceSkeleton.save() product = null"
> So, please can you take a look at my files?
> Thank you very much,
> Siamak Haschemi

-- 
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


[jira] Assigned: (AXIS2-644) [Axis2]Deserialization of XMLBeans

Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-644?page=all ]

Deepal Jayasinghe reassigned AXIS2-644:
---------------------------------------

    Assign To: Ajith Harshana Ranabahu

> [Axis2]Deserialization of  XMLBeans
> -----------------------------------
>
>          Key: AXIS2-644
>          URL: http://issues.apache.org/jira/browse/AXIS2-644
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug

>   Components: databinding
>  Environment: Axis2 RC5
>     Reporter: Siamak Haschemi
>     Assignee: Ajith Harshana Ranabahu
>  Attachments: inheritance.wsdl
>
> Hello.
> I have a problem with extension-types.
> I used a litte WSDL-file to test the possibilities of extension-types. Well, the WSDL-file is very simple. It contains:
> - a Basetype "abstract-product-type"
> - a conrete-type "beer-type"
> - a INOnly request "save"
> Generating client and server with WSDL works and a added the following lines to the skeleton:
> public void save(org.example.www.inheritance.SaveRequestDocument param0) {
>   final SaveRequest saveRequest = param0.getSaveRequest();
>   final AbstractProductType abstractProductType = saveRequest.getProduct();
>   System.out.println("InheritanceSkeleton.save() product = " + abstractProductType);
> }
> The request from the client is
> <?xml version="1.0" encoding="http://schemas.xmlsoap.org/soap/envelope/"?>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
>   <soapenv:Header/>
>   <soapenv:Body>
>     <saveRequest xmlns="http://www.example.org/inheritance/">
>       <product xmlns:inh="http://www.example.org/inheritance/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="inh:beer-type">
>         <name>Klausthaler</name>
>       </product>
>     </saveRequest>
>   </soapenv:Body>
> </soapenv:Envelope>
> And the output of the server is "InheritanceSkeleton.save() product = null"
> So, please can you take a look at my files?
> Thank you very much,
> Siamak Haschemi

-- 
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


[jira] Updated: (AXIS2-644) [Axis2]Deserialization of XMLBeans

Posted by "Siamak Haschemi (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-644?page=all ]

Siamak Haschemi updated AXIS2-644:
----------------------------------

    Attachment: inheritance.wsdl

> [Axis2]Deserialization of  XMLBeans
> -----------------------------------
>
>          Key: AXIS2-644
>          URL: http://issues.apache.org/jira/browse/AXIS2-644
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug

>   Components: databinding
>  Environment: Axis2 RC5
>     Reporter: Siamak Haschemi
>  Attachments: inheritance.wsdl
>
> Hello.
> I have a problem with extension-types.
> I used a litte WSDL-file to test the possibilities of extension-types. Well, the WSDL-file is very simple. It contains:
> - a Basetype "abstract-product-type"
> - a conrete-type "beer-type"
> - a INOnly request "save"
> Generating client and server with WSDL works and a added the following lines to the skeleton:
> public void save(org.example.www.inheritance.SaveRequestDocument param0) {
>   final SaveRequest saveRequest = param0.getSaveRequest();
>   final AbstractProductType abstractProductType = saveRequest.getProduct();
>   System.out.println("InheritanceSkeleton.save() product = " + abstractProductType);
> }
> The request from the client is
> <?xml version="1.0" encoding="http://schemas.xmlsoap.org/soap/envelope/"?>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
>   <soapenv:Header/>
>   <soapenv:Body>
>     <saveRequest xmlns="http://www.example.org/inheritance/">
>       <product xmlns:inh="http://www.example.org/inheritance/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="inh:beer-type">
>         <name>Klausthaler</name>
>       </product>
>     </saveRequest>
>   </soapenv:Body>
> </soapenv:Envelope>
> And the output of the server is "InheritanceSkeleton.save() product = null"
> So, please can you take a look at my files?
> Thank you very much,
> Siamak Haschemi

-- 
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


[jira] Commented: (AXIS2-644) [Axis2]Deserialization of XMLBeans

Posted by "Daniel Murygin (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-644?page=comments#action_12439778 ] 
            
Daniel Murygin commented on AXIS2-644:
--------------------------------------

Hello,

is there any solution or workaround for the first problem?

I have the same problem. Details:

* I use axis2 nightly build form 2006/10/04
* I generated client code: WSDL2Java.sh -o ./ -d xmlbeans -s -uri resources/FahrzeugExportFacade.wsdl
* I accessed the web service by using the 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( antwort );
    LOG.debug( "Fehler: " + antwort.getSperreFahrzeugResponse().getSperreFahrzeugReturn().getFehlertext() );
  }
* Log output is:
11:06:23,710 DEBUG [FahrzeugExportFacadeServiceTest] testsperreFahrzeug
11:06:25,820 DEBUG [FahrzeugExportFacadeServiceTest] <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

Summary:
antwort.getSperreFahrzeugResponse().getSperreFahrzeugReturn().getFehlertext() is null but antwort contains the xml element "fehlertext".

It is the same problem Siamak described before.

Is there a solution or workaround?

Thanks for your help, Daniel (n2).

> [Axis2]Deserialization of  XMLBeans
> -----------------------------------
>
>                 Key: AXIS2-644
>                 URL: http://issues.apache.org/jira/browse/AXIS2-644
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: databinding
>         Environment: Axis2 RC5
>            Reporter: Siamak Haschemi
>         Assigned To: Ajith Harshana Ranabahu
>         Attachments: inheritance.wsdl
>
>
> Hello.
> I have a problem with extension-types.
> I used a litte WSDL-file to test the possibilities of extension-types. Well, the WSDL-file is very simple. It contains:
> - a Basetype "abstract-product-type"
> - a conrete-type "beer-type"
> - a INOnly request "save"
> Generating client and server with WSDL works and a added the following lines to the skeleton:
> public void save(org.example.www.inheritance.SaveRequestDocument param0) {
>   final SaveRequest saveRequest = param0.getSaveRequest();
>   final AbstractProductType abstractProductType = saveRequest.getProduct();
>   System.out.println("InheritanceSkeleton.save() product = " + abstractProductType);
> }
> The request from the client is
> <?xml version="1.0" encoding="http://schemas.xmlsoap.org/soap/envelope/"?>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
>   <soapenv:Header/>
>   <soapenv:Body>
>     <saveRequest xmlns="http://www.example.org/inheritance/">
>       <product xmlns:inh="http://www.example.org/inheritance/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="inh:beer-type">
>         <name>Klausthaler</name>
>       </product>
>     </saveRequest>
>   </soapenv:Body>
> </soapenv:Envelope>
> And the output of the server is "InheritanceSkeleton.save() product = null"
> So, please can you take a look at my files?
> Thank you very much,
> Siamak Haschemi

-- 
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


[jira] Commented: (AXIS2-644) [Axis2]Deserialization of XMLBeans

Posted by "Siamak Haschemi (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-644?page=comments#action_12377184 ] 

Siamak Haschemi commented on AXIS2-644:
---------------------------------------

Hello again.

I'm not familiar with XMLBeans, but in the generated Class "SaveRequestImpl" I found a anomaly.

public static class SaveRequestImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.example.www.inheritance.SaveRequestDocument.SaveRequest
    {
        
        public SaveRequestImpl(org.apache.xmlbeans.SchemaType sType)
        {
            super(sType);
        }
        
        private static final javax.xml.namespace.QName PRODUCT$0 = 
            new javax.xml.namespace.QName("", "product");
.....

}

For me it looks like the namespace for product is missing.


Thank you very much,

Siamak Haschemi


> [Axis2]Deserialization of  XMLBeans
> -----------------------------------
>
>          Key: AXIS2-644
>          URL: http://issues.apache.org/jira/browse/AXIS2-644
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug

>   Components: databinding
>  Environment: Axis2 RC5
>     Reporter: Siamak Haschemi
>  Attachments: inheritance.wsdl
>
> Hello.
> I have a problem with extension-types.
> I used a litte WSDL-file to test the possibilities of extension-types. Well, the WSDL-file is very simple. It contains:
> - a Basetype "abstract-product-type"
> - a conrete-type "beer-type"
> - a INOnly request "save"
> Generating client and server with WSDL works and a added the following lines to the skeleton:
> public void save(org.example.www.inheritance.SaveRequestDocument param0) {
>   final SaveRequest saveRequest = param0.getSaveRequest();
>   final AbstractProductType abstractProductType = saveRequest.getProduct();
>   System.out.println("InheritanceSkeleton.save() product = " + abstractProductType);
> }
> The request from the client is
> <?xml version="1.0" encoding="http://schemas.xmlsoap.org/soap/envelope/"?>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
>   <soapenv:Header/>
>   <soapenv:Body>
>     <saveRequest xmlns="http://www.example.org/inheritance/">
>       <product xmlns:inh="http://www.example.org/inheritance/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="inh:beer-type">
>         <name>Klausthaler</name>
>       </product>
>     </saveRequest>
>   </soapenv:Body>
> </soapenv:Envelope>
> And the output of the server is "InheritanceSkeleton.save() product = null"
> So, please can you take a look at my files?
> Thank you very much,
> Siamak Haschemi

-- 
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


[jira] Commented: (AXIS2-644) [Axis2]Deserialization of XMLBeans

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-644?page=comments#action_12440022 ] 
            
Davanum Srinivas commented on AXIS2-644:
----------------------------------------

Daniel,

please create another JIRA issue and then upload your FahrzeugExportFacade.wsdl .

-- dims

> [Axis2]Deserialization of  XMLBeans
> -----------------------------------
>
>                 Key: AXIS2-644
>                 URL: http://issues.apache.org/jira/browse/AXIS2-644
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: databinding
>         Environment: Axis2 RC5
>            Reporter: Siamak Haschemi
>         Assigned To: Ajith Harshana Ranabahu
>         Attachments: inheritance.wsdl
>
>
> Hello.
> I have a problem with extension-types.
> I used a litte WSDL-file to test the possibilities of extension-types. Well, the WSDL-file is very simple. It contains:
> - a Basetype "abstract-product-type"
> - a conrete-type "beer-type"
> - a INOnly request "save"
> Generating client and server with WSDL works and a added the following lines to the skeleton:
> public void save(org.example.www.inheritance.SaveRequestDocument param0) {
>   final SaveRequest saveRequest = param0.getSaveRequest();
>   final AbstractProductType abstractProductType = saveRequest.getProduct();
>   System.out.println("InheritanceSkeleton.save() product = " + abstractProductType);
> }
> The request from the client is
> <?xml version="1.0" encoding="http://schemas.xmlsoap.org/soap/envelope/"?>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
>   <soapenv:Header/>
>   <soapenv:Body>
>     <saveRequest xmlns="http://www.example.org/inheritance/">
>       <product xmlns:inh="http://www.example.org/inheritance/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="inh:beer-type">
>         <name>Klausthaler</name>
>       </product>
>     </saveRequest>
>   </soapenv:Body>
> </soapenv:Envelope>
> And the output of the server is "InheritanceSkeleton.save() product = null"
> So, please can you take a look at my files?
> Thank you very much,
> Siamak Haschemi

-- 
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


[jira] Resolved: (AXIS2-644) [Axis2]Deserialization of XMLBeans

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-644?page=all ]

Davanum Srinivas resolved AXIS2-644.
------------------------------------

    Resolution: Invalid

soap request was not matching the wsdl.

-- dims

> [Axis2]Deserialization of  XMLBeans
> -----------------------------------
>
>                 Key: AXIS2-644
>                 URL: http://issues.apache.org/jira/browse/AXIS2-644
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: databinding
>         Environment: Axis2 RC5
>            Reporter: Siamak Haschemi
>         Assigned To: Ajith Harshana Ranabahu
>         Attachments: inheritance.wsdl
>
>
> Hello.
> I have a problem with extension-types.
> I used a litte WSDL-file to test the possibilities of extension-types. Well, the WSDL-file is very simple. It contains:
> - a Basetype "abstract-product-type"
> - a conrete-type "beer-type"
> - a INOnly request "save"
> Generating client and server with WSDL works and a added the following lines to the skeleton:
> public void save(org.example.www.inheritance.SaveRequestDocument param0) {
>   final SaveRequest saveRequest = param0.getSaveRequest();
>   final AbstractProductType abstractProductType = saveRequest.getProduct();
>   System.out.println("InheritanceSkeleton.save() product = " + abstractProductType);
> }
> The request from the client is
> <?xml version="1.0" encoding="http://schemas.xmlsoap.org/soap/envelope/"?>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
>   <soapenv:Header/>
>   <soapenv:Body>
>     <saveRequest xmlns="http://www.example.org/inheritance/">
>       <product xmlns:inh="http://www.example.org/inheritance/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="inh:beer-type">
>         <name>Klausthaler</name>
>       </product>
>     </saveRequest>
>   </soapenv:Body>
> </soapenv:Envelope>
> And the output of the server is "InheritanceSkeleton.save() product = null"
> So, please can you take a look at my files?
> Thank you very much,
> Siamak Haschemi

-- 
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


[jira] Commented: (AXIS2-644) [Axis2]Deserialization of XMLBeans

Posted by "Siamak Haschemi (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-644?page=comments#action_12378159 ] 

Siamak Haschemi commented on AXIS2-644:
---------------------------------------

Hello.

First I'd like to congratulate you for your 1.0 Version!

Well, runnig WSDL2Java for client and server  for the attached WSDL file still generates code that doesn't work.

The Server now responses

<?xml version="1.0" encoding="http://schemas.xmlsoap.org/soap/envelope/"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header/>
<soapenv:Body>
<soapenv:Fault>
<faultcode>soapenv:Client</faultcode>
<faultstring>Data binding error</faultstring>
<detail>
<Exception>org.apache.axis2.AxisFault: Data binding error; nested exception is: 
	java.lang.RuntimeException: Data binding error&#13;
	at org.apache.axis2.AxisFault.makeFault(AxisFault.java:318)&#13;
	at org.haschemi.InheritanceMessageReceiverInOnly.invokeBusinessLogic(InheritanceMessageReceiverInOnly.java:53)&#13;
	at org.apache.axis2.receivers.AbstractInMessageReceiver.receive(AbstractInMessageReceiver.java:34)&#13;
	at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:454)&#13;
	at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)&#13;
	at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:136)&#13;
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)&#13;
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)&#13;
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)&#13;
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)&#13;
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)&#13;
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)&#13;
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)&#13;
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)&#13;
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)&#13;
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)&#13;
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)&#13;
	at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)&#13;
	at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)&#13;
	at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)&#13;
	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)&#13;
	at java.lang.Thread.run(Thread.java:595)&#13;
Caused by: java.lang.RuntimeException: Data binding error&#13;
	at org.haschemi.InheritanceMessageReceiverInOnly.fromOM(InheritanceMessageReceiverInOnly.java:109)&#13;
	at org.haschemi.InheritanceMessageReceiverInOnly.invokeBusinessLogic(InheritanceMessageReceiverInOnly.java:45)&#13;
	... 20 more&#13;
Caused by: java.lang.NullPointerException&#13;
	at org.apache.xmlbeans.impl.store.Cur$CurLoadContext.attr(Cur.java:3041)&#13;
	at org.apache.xmlbeans.impl.store.Cur$CurLoadContext.attr(Cur.java:3058)&#13;
	at org.apache.xmlbeans.impl.store.Locale.doNamespaces(Locale.java:900)&#13;
	at org.apache.xmlbeans.impl.store.Locale.loadXMLStreamReader(Locale.java:1135)&#13;
	at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:843)&#13;
	at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:826)&#13;
	at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:231)&#13;
	at org.example.www.common.SaveRequestDocument$Factory.parse(SaveRequestDocument.java:128)&#13;
	at org.haschemi.InheritanceMessageReceiverInOnly.fromOM(InheritanceMessageReceiverInOnly.java:99)&#13;
	... 21 more&#13;
</Exception>
</detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>


Seems to be reladed to AXIS2-649

http://issues.apache.org/jira/browse/AXIS2-649


I would be very happy if I could use the (existing) possibilities of XMLBeans handling abtract-types and implementation of those with Axis2!


Thank you very much,

Siamak Haschemi

> [Axis2]Deserialization of  XMLBeans
> -----------------------------------
>
>          Key: AXIS2-644
>          URL: http://issues.apache.org/jira/browse/AXIS2-644
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug

>   Components: databinding
>  Environment: Axis2 RC5
>     Reporter: Siamak Haschemi
>  Attachments: inheritance.wsdl
>
> Hello.
> I have a problem with extension-types.
> I used a litte WSDL-file to test the possibilities of extension-types. Well, the WSDL-file is very simple. It contains:
> - a Basetype "abstract-product-type"
> - a conrete-type "beer-type"
> - a INOnly request "save"
> Generating client and server with WSDL works and a added the following lines to the skeleton:
> public void save(org.example.www.inheritance.SaveRequestDocument param0) {
>   final SaveRequest saveRequest = param0.getSaveRequest();
>   final AbstractProductType abstractProductType = saveRequest.getProduct();
>   System.out.println("InheritanceSkeleton.save() product = " + abstractProductType);
> }
> The request from the client is
> <?xml version="1.0" encoding="http://schemas.xmlsoap.org/soap/envelope/"?>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
>   <soapenv:Header/>
>   <soapenv:Body>
>     <saveRequest xmlns="http://www.example.org/inheritance/">
>       <product xmlns:inh="http://www.example.org/inheritance/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="inh:beer-type">
>         <name>Klausthaler</name>
>       </product>
>     </saveRequest>
>   </soapenv:Body>
> </soapenv:Envelope>
> And the output of the server is "InheritanceSkeleton.save() product = null"
> So, please can you take a look at my files?
> Thank you very much,
> Siamak Haschemi

-- 
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