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

2006-10-04 Thread Daniel Murygin (JIRA)
[ 
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] 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/";>
  
true
Fahrzeug nicht gefunden, Fahrzeug-Id ist: -56
  

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
> http://schemas.xmlsoap.org/soap/envelope/";?>
> http://schemas.xmlsoap.org/soap/envelope/";>
>   
>   
> http://www.example.org/inheritance/";>
>   http://www.example.org/inheritance/"; 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
> xsi:type="inh:beer-type">
> Klausthaler
>   
> 
>   
> 
> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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

2006-10-04 Thread Davanum Srinivas (JIRA)
[ 
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. 

http://schemas.xmlsoap.org/soap/envelope/";>


http://www.example.org/inheritance/";>
http://www.w3.org/2001/XMLSchema-instance"; xsi:type="inh:beer-type">
Klausthaler







> [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
> http://schemas.xmlsoap.org/soap/envelope/";?>
> http://schemas.xmlsoap.org/soap/envelope/";>
>   
>   
> http://www.example.org/inheritance/";>
>   http://www.example.org/inheritance/"; 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
> xsi:type="inh:beer-type">
> Klausthaler
>   
> 
>   
> 
> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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

2006-10-04 Thread Davanum Srinivas (JIRA)
[ 
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
> http://schemas.xmlsoap.org/soap/envelope/";?>
> http://schemas.xmlsoap.org/soap/envelope/";>
>   
>   
> http://www.example.org/inheritance/";>
>   http://www.example.org/inheritance/"; 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
> xsi:type="inh:beer-type">
> Klausthaler
>   
> 
>   
> 
> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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

2006-04-30 Thread Siamak Haschemi (JIRA)
[ 
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
> http://schemas.xmlsoap.org/soap/envelope/";?>
> http://schemas.xmlsoap.org/soap/envelope/";>
>   
>   
> http://www.example.org/inheritance/";>
>   http://www.example.org/inheritance/"; 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
> xsi:type="inh:beer-type">
> Klausthaler
>   
> 
>   
> 
> 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

2006-05-05 Thread Siamak Haschemi (JIRA)
[ 
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

http://schemas.xmlsoap.org/soap/envelope/";?>
http://schemas.xmlsoap.org/soap/envelope/";>



soapenv:Client
Data binding error

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







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