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 "Rincewind Wizard (JIRA)" <ji...@apache.org> on 2006/05/12 18:13:08 UTC

[jira] Created: (AXIS2-720) Data binding Error after using WSDL2Java to generate xmlbeans code

Data binding Error after using WSDL2Java to generate xmlbeans code
------------------------------------------------------------------

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

  Components: databinding  
    Versions: 1.0    
 Environment: Server: Axis2 1.0 inside a Tomcat 5.5.15 under Scientific Linux, 2.6.x kernel
Client: Windows XP SP2 with JDK 1.5.0_06
    Reporter: Rincewind Wizard


We've used the attached WSDL to create a service & client by means of
the WSDL2Java tool (xmlbeans databinding). After implementing the
simplest of business logics in the server, we deployed the service .aar
in the axis2 install inside a tomcat server. According to the status
page, the service is running error free.

The client was also created by WSDL2Java, where we wrote a simple main()
class to test the client. We've pasted it below.

public static void main(String[] args) {
   try {
     PredictLocalizationRequestDocument pdoc =
PredictLocalizationRequestDocument.Factory.newInstance();
     pdoc.addNewPredictLocalizationRequest();
     pdoc.getPredictLocalizationRequest().setSequence("ASDF");
     pdoc.getPredictLocalizationRequest().setOrganism("ANIMAL");
     TextLocServiceStub sender = new
TextLocServiceStub("http://localhost/axis2/services/TextLocService");
     PredictLocalizationResponseDocument res =
        sender.predictLocalization(pdoc);
     System.out.println(res.toString());
   } catch (Exception e) {
     e.printStackTrace();
   }
}

The client now runs up until the document is being sent, where it throws
an Exception. The stack trace is below. We think it is still a
client-side problem, although the client does complain if it is not
connected to the server and doesn't throw this exception.

Please let us know if we should change anything about our client
generation procedure, or how we can use the test client jar that is also
generated by the WSDL2Java tool.

Thanks a lot for your time! 

-- 
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-720) Data binding Error after using WSDL2Java to generate xmlbeans code

Posted by "Ali Sadik Kumlali (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-720?page=comments#action_12413915 ] 

Ali Sadik Kumlali commented on AXIS2-720:
-----------------------------------------

Don't know why but, mystery is changing elementFormDefault="unqualified" to elementFormDefault="qualified". I could manage to successfully run the code against the given WSDL with this change. Although I listed all the changes I made in the given WSDL, until I try changing elementFormDefault value, none of them worked. 

My system: WinXP Pro, j2sdk1.4.2_02, Tomcat 5.5

- Made following changes in WSDL
  - Changed location="http://localhost/axis2/services/TextLocService:localhost/axis2/services/TextLocService" to 
location="http://localhost:8080/axis2/services/TextLocService"
  - Since ns1 is already defined in <wsdl:definitions>, removed ns1 definition from <xs:schema>. So, it looked like 		<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://org.apache.axis2/xsd" elementFormDefault="unqualified" attributeFormDefault="unqualified">
  - Added "TextLocService" as name attribute to <wsdl:definitions>
- Changed elementFormDefault="unqualified" to elementFormDefault="qualified".

- Used following command for creating skeleton and stub:
WSDL2Java -uri c:/wsdl/EpiLocService.wsdl -ss -sd -g -t -d xmlbeans -o c:/wsdl/output -p compas

I'll attache the service's aar, changed WSDL, skeleton and test client files.

> Data binding Error after using WSDL2Java to generate xmlbeans code
> ------------------------------------------------------------------
>
>          Key: AXIS2-720
>          URL: http://issues.apache.org/jira/browse/AXIS2-720
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug

>   Components: databinding
>     Versions: 1.0
>  Environment: Server: Axis2 1.0 inside a Tomcat 5.5.15 under Scientific Linux, 2.6.x kernel
> Client: Windows XP SP2 with JDK 1.5.0_06
>     Reporter: Rincewind Wizard
>     Assignee: Ajith Harshana Ranabahu
>  Attachments: EpiLocService.wsdl, EpiLocService.wsdl, TextLocServiceSkeleton.java, TextLocServiceTest.java
>
> We've used the attached WSDL to create a service & client by means of
> the WSDL2Java tool (xmlbeans databinding). After implementing the
> simplest of business logics in the server, we deployed the service .aar
> in the axis2 install inside a tomcat server. According to the status
> page, the service is running error free.
> The client was also created by WSDL2Java, where we wrote a simple main()
> class to test the client. We've pasted it below.
> public static void main(String[] args) {
>    try {
>      PredictLocalizationRequestDocument pdoc =
> PredictLocalizationRequestDocument.Factory.newInstance();
>      pdoc.addNewPredictLocalizationRequest();
>      pdoc.getPredictLocalizationRequest().setSequence("ASDF");
>      pdoc.getPredictLocalizationRequest().setOrganism("ANIMAL");
>      TextLocServiceStub sender = new
> TextLocServiceStub("http://localhost/axis2/services/TextLocService");
>      PredictLocalizationResponseDocument res =
>         sender.predictLocalization(pdoc);
>      System.out.println(res.toString());
>    } catch (Exception e) {
>      e.printStackTrace();
>    }
> }
> The client now runs up until the document is being sent, where it throws
> an Exception. The stack trace is below. We think it is still a
> client-side problem, although the client does complain if it is not
> connected to the server and doesn't throw this exception.
> Please let us know if we should change anything about our client
> generation procedure, or how we can use the test client jar that is also
> generated by the WSDL2Java tool.
> Thanks a lot for your time! 

-- 
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-720) Data binding Error after using WSDL2Java to generate xmlbeans code

Posted by "Ajith Harshana Ranabahu (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-720?page=all ]
     
Ajith Harshana Ranabahu resolved AXIS2-720:
-------------------------------------------

    Resolution: Fixed

The issue seems to be not the problem of the code but rather the WSDL. Rincewind (the reporter) has verified that altering the WSDL works for him

> Data binding Error after using WSDL2Java to generate xmlbeans code
> ------------------------------------------------------------------
>
>          Key: AXIS2-720
>          URL: http://issues.apache.org/jira/browse/AXIS2-720
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug

>   Components: databinding
>     Versions: 1.0
>  Environment: Server: Axis2 1.0 inside a Tomcat 5.5.15 under Scientific Linux, 2.6.x kernel
> Client: Windows XP SP2 with JDK 1.5.0_06
>     Reporter: Rincewind Wizard
>     Assignee: Ajith Harshana Ranabahu
>  Attachments: EpiLocService.wsdl, EpiLocService.wsdl, TextLocService.aar, TextLocServiceSkeleton.java, TextLocServiceTest.java
>
> We've used the attached WSDL to create a service & client by means of
> the WSDL2Java tool (xmlbeans databinding). After implementing the
> simplest of business logics in the server, we deployed the service .aar
> in the axis2 install inside a tomcat server. According to the status
> page, the service is running error free.
> The client was also created by WSDL2Java, where we wrote a simple main()
> class to test the client. We've pasted it below.
> public static void main(String[] args) {
>    try {
>      PredictLocalizationRequestDocument pdoc =
> PredictLocalizationRequestDocument.Factory.newInstance();
>      pdoc.addNewPredictLocalizationRequest();
>      pdoc.getPredictLocalizationRequest().setSequence("ASDF");
>      pdoc.getPredictLocalizationRequest().setOrganism("ANIMAL");
>      TextLocServiceStub sender = new
> TextLocServiceStub("http://localhost/axis2/services/TextLocService");
>      PredictLocalizationResponseDocument res =
>         sender.predictLocalization(pdoc);
>      System.out.println(res.toString());
>    } catch (Exception e) {
>      e.printStackTrace();
>    }
> }
> The client now runs up until the document is being sent, where it throws
> an Exception. The stack trace is below. We think it is still a
> client-side problem, although the client does complain if it is not
> connected to the server and doesn't throw this exception.
> Please let us know if we should change anything about our client
> generation procedure, or how we can use the test client jar that is also
> generated by the WSDL2Java tool.
> Thanks a lot for your time! 

-- 
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-720) Data binding Error after using WSDL2Java to generate xmlbeans code

Posted by "Rincewind Wizard (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-720?page=comments#action_12383217 ] 

Rincewind Wizard commented on AXIS2-720:
----------------------------------------

The stack trace:
org.apache.axis2.AxisFault: Data binding error
    at
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:287)
    at
org.apache.axis2.TextLocServiceStub.predictLocalization(TextLocServiceStub.java:133)
    at org.apache.axis2.runLoc.main(runLoc.java:26)
Caused by: java.lang.Exception: 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.apache.axis2.TextLocServiceMessageReceiverInOut.invokeBusinessLogic(TextLocServiceMessageReceiverInOut.java:66)
    at
org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:37)
    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:667)
    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.apache.axis2.TextLocServiceMessageReceiverInOut.fromOM(TextLocServiceMessageReceiverInOut.java:158)
    at
org.apache.axis2.TextLocServiceMessageReceiverInOut.invokeBusinessLogic(TextLocServiceMessageReceiverInOut.java:50)
    ... 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
axis2.apache.org.xsd.PredictLocalizationRequestDocument$Factory.parse(PredictLocalizationRequestDocument.java:153)
    at
org.apache.axis2.TextLocServiceMessageReceiverInOut.fromOM(TextLocServiceMessageReceiverInOut.java:137)
    ... 21 more

    at org.apache.axis2.AxisFault.<init>(AxisFault.java:159)
    ... 3 more 

> Data binding Error after using WSDL2Java to generate xmlbeans code
> ------------------------------------------------------------------
>
>          Key: AXIS2-720
>          URL: http://issues.apache.org/jira/browse/AXIS2-720
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug

>   Components: databinding
>     Versions: 1.0
>  Environment: Server: Axis2 1.0 inside a Tomcat 5.5.15 under Scientific Linux, 2.6.x kernel
> Client: Windows XP SP2 with JDK 1.5.0_06
>     Reporter: Rincewind Wizard

>
> We've used the attached WSDL to create a service & client by means of
> the WSDL2Java tool (xmlbeans databinding). After implementing the
> simplest of business logics in the server, we deployed the service .aar
> in the axis2 install inside a tomcat server. According to the status
> page, the service is running error free.
> The client was also created by WSDL2Java, where we wrote a simple main()
> class to test the client. We've pasted it below.
> public static void main(String[] args) {
>    try {
>      PredictLocalizationRequestDocument pdoc =
> PredictLocalizationRequestDocument.Factory.newInstance();
>      pdoc.addNewPredictLocalizationRequest();
>      pdoc.getPredictLocalizationRequest().setSequence("ASDF");
>      pdoc.getPredictLocalizationRequest().setOrganism("ANIMAL");
>      TextLocServiceStub sender = new
> TextLocServiceStub("http://localhost/axis2/services/TextLocService");
>      PredictLocalizationResponseDocument res =
>         sender.predictLocalization(pdoc);
>      System.out.println(res.toString());
>    } catch (Exception e) {
>      e.printStackTrace();
>    }
> }
> The client now runs up until the document is being sent, where it throws
> an Exception. The stack trace is below. We think it is still a
> client-side problem, although the client does complain if it is not
> connected to the server and doesn't throw this exception.
> Please let us know if we should change anything about our client
> generation procedure, or how we can use the test client jar that is also
> generated by the WSDL2Java tool.
> Thanks a lot for your time! 

-- 
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-720) Data binding Error after using WSDL2Java to generate xmlbeans code

Posted by "Rincewind Wizard (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-720?page=comments#action_12413101 ] 

Rincewind Wizard commented on AXIS2-720:
----------------------------------------

We've checked your proposed solution -- the ideas you give in jira 649 are:
1. Update to the latest axiom code. The Axiom code has been modified to output empty string for the empty namespace uri.
or
2. Change the wstx jar to 2.8.x version.

ad 2. We've checked our WSTX-ASL, it's version 2.8.2 -- does it have to be later than that?
ad 1. We are using the AXIS2 1.0 release, and assume that it uses AXIOM 1.0. If that is not correct, or if you would like us to try with the SVN head, please let us know.


> Data binding Error after using WSDL2Java to generate xmlbeans code
> ------------------------------------------------------------------
>
>          Key: AXIS2-720
>          URL: http://issues.apache.org/jira/browse/AXIS2-720
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug

>   Components: databinding
>     Versions: 1.0
>  Environment: Server: Axis2 1.0 inside a Tomcat 5.5.15 under Scientific Linux, 2.6.x kernel
> Client: Windows XP SP2 with JDK 1.5.0_06
>     Reporter: Rincewind Wizard
>     Assignee: Ajith Harshana Ranabahu
>  Attachments: EpiLocService.wsdl
>
> We've used the attached WSDL to create a service & client by means of
> the WSDL2Java tool (xmlbeans databinding). After implementing the
> simplest of business logics in the server, we deployed the service .aar
> in the axis2 install inside a tomcat server. According to the status
> page, the service is running error free.
> The client was also created by WSDL2Java, where we wrote a simple main()
> class to test the client. We've pasted it below.
> public static void main(String[] args) {
>    try {
>      PredictLocalizationRequestDocument pdoc =
> PredictLocalizationRequestDocument.Factory.newInstance();
>      pdoc.addNewPredictLocalizationRequest();
>      pdoc.getPredictLocalizationRequest().setSequence("ASDF");
>      pdoc.getPredictLocalizationRequest().setOrganism("ANIMAL");
>      TextLocServiceStub sender = new
> TextLocServiceStub("http://localhost/axis2/services/TextLocService");
>      PredictLocalizationResponseDocument res =
>         sender.predictLocalization(pdoc);
>      System.out.println(res.toString());
>    } catch (Exception e) {
>      e.printStackTrace();
>    }
> }
> The client now runs up until the document is being sent, where it throws
> an Exception. The stack trace is below. We think it is still a
> client-side problem, although the client does complain if it is not
> connected to the server and doesn't throw this exception.
> Please let us know if we should change anything about our client
> generation procedure, or how we can use the test client jar that is also
> generated by the WSDL2Java tool.
> Thanks a lot for your time! 

-- 
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] Updated: (AXIS2-720) Data binding Error after using WSDL2Java to generate xmlbeans code

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

Rincewind Wizard updated AXIS2-720:
-----------------------------------

    Attachment: EpiLocService.wsdl

The WSDL used to create this service

> Data binding Error after using WSDL2Java to generate xmlbeans code
> ------------------------------------------------------------------
>
>          Key: AXIS2-720
>          URL: http://issues.apache.org/jira/browse/AXIS2-720
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug

>   Components: databinding
>     Versions: 1.0
>  Environment: Server: Axis2 1.0 inside a Tomcat 5.5.15 under Scientific Linux, 2.6.x kernel
> Client: Windows XP SP2 with JDK 1.5.0_06
>     Reporter: Rincewind Wizard
>  Attachments: EpiLocService.wsdl
>
> We've used the attached WSDL to create a service & client by means of
> the WSDL2Java tool (xmlbeans databinding). After implementing the
> simplest of business logics in the server, we deployed the service .aar
> in the axis2 install inside a tomcat server. According to the status
> page, the service is running error free.
> The client was also created by WSDL2Java, where we wrote a simple main()
> class to test the client. We've pasted it below.
> public static void main(String[] args) {
>    try {
>      PredictLocalizationRequestDocument pdoc =
> PredictLocalizationRequestDocument.Factory.newInstance();
>      pdoc.addNewPredictLocalizationRequest();
>      pdoc.getPredictLocalizationRequest().setSequence("ASDF");
>      pdoc.getPredictLocalizationRequest().setOrganism("ANIMAL");
>      TextLocServiceStub sender = new
> TextLocServiceStub("http://localhost/axis2/services/TextLocService");
>      PredictLocalizationResponseDocument res =
>         sender.predictLocalization(pdoc);
>      System.out.println(res.toString());
>    } catch (Exception e) {
>      e.printStackTrace();
>    }
> }
> The client now runs up until the document is being sent, where it throws
> an Exception. The stack trace is below. We think it is still a
> client-side problem, although the client does complain if it is not
> connected to the server and doesn't throw this exception.
> Please let us know if we should change anything about our client
> generation procedure, or how we can use the test client jar that is also
> generated by the WSDL2Java tool.
> Thanks a lot for your time! 

-- 
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-720) Data binding Error after using WSDL2Java to generate xmlbeans code

Posted by "Rincewind Wizard (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-720?page=comments#action_12413880 ] 

Rincewind Wizard commented on AXIS2-720:
----------------------------------------

Even after *days* of testing and trying different things, we still arrive at the same error with the current nightly (May 30th). 
We are using Eclipse to build and run our project under Windows XP. Did you ever try to run a client with xmlbeans under windows? How does the classpath have to look like? We always get a class not found exception whenever we DON'T include the xbeans-packaged.jar from the lib directory of the created client. We also have all the jars from the axis2/lib dir in the classpath. Is there anything we shouldn't do?

> Data binding Error after using WSDL2Java to generate xmlbeans code
> ------------------------------------------------------------------
>
>          Key: AXIS2-720
>          URL: http://issues.apache.org/jira/browse/AXIS2-720
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug

>   Components: databinding
>     Versions: 1.0
>  Environment: Server: Axis2 1.0 inside a Tomcat 5.5.15 under Scientific Linux, 2.6.x kernel
> Client: Windows XP SP2 with JDK 1.5.0_06
>     Reporter: Rincewind Wizard
>     Assignee: Ajith Harshana Ranabahu
>  Attachments: EpiLocService.wsdl
>
> We've used the attached WSDL to create a service & client by means of
> the WSDL2Java tool (xmlbeans databinding). After implementing the
> simplest of business logics in the server, we deployed the service .aar
> in the axis2 install inside a tomcat server. According to the status
> page, the service is running error free.
> The client was also created by WSDL2Java, where we wrote a simple main()
> class to test the client. We've pasted it below.
> public static void main(String[] args) {
>    try {
>      PredictLocalizationRequestDocument pdoc =
> PredictLocalizationRequestDocument.Factory.newInstance();
>      pdoc.addNewPredictLocalizationRequest();
>      pdoc.getPredictLocalizationRequest().setSequence("ASDF");
>      pdoc.getPredictLocalizationRequest().setOrganism("ANIMAL");
>      TextLocServiceStub sender = new
> TextLocServiceStub("http://localhost/axis2/services/TextLocService");
>      PredictLocalizationResponseDocument res =
>         sender.predictLocalization(pdoc);
>      System.out.println(res.toString());
>    } catch (Exception e) {
>      e.printStackTrace();
>    }
> }
> The client now runs up until the document is being sent, where it throws
> an Exception. The stack trace is below. We think it is still a
> client-side problem, although the client does complain if it is not
> connected to the server and doesn't throw this exception.
> Please let us know if we should change anything about our client
> generation procedure, or how we can use the test client jar that is also
> generated by the WSDL2Java tool.
> Thanks a lot for your time! 

-- 
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-720) Data binding Error after using WSDL2Java to generate xmlbeans code

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

Deepal Jayasinghe reassigned AXIS2-720:
---------------------------------------

    Assign To: Ajith Harshana Ranabahu

> Data binding Error after using WSDL2Java to generate xmlbeans code
> ------------------------------------------------------------------
>
>          Key: AXIS2-720
>          URL: http://issues.apache.org/jira/browse/AXIS2-720
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug

>   Components: databinding
>     Versions: 1.0
>  Environment: Server: Axis2 1.0 inside a Tomcat 5.5.15 under Scientific Linux, 2.6.x kernel
> Client: Windows XP SP2 with JDK 1.5.0_06
>     Reporter: Rincewind Wizard
>     Assignee: Ajith Harshana Ranabahu
>  Attachments: EpiLocService.wsdl
>
> We've used the attached WSDL to create a service & client by means of
> the WSDL2Java tool (xmlbeans databinding). After implementing the
> simplest of business logics in the server, we deployed the service .aar
> in the axis2 install inside a tomcat server. According to the status
> page, the service is running error free.
> The client was also created by WSDL2Java, where we wrote a simple main()
> class to test the client. We've pasted it below.
> public static void main(String[] args) {
>    try {
>      PredictLocalizationRequestDocument pdoc =
> PredictLocalizationRequestDocument.Factory.newInstance();
>      pdoc.addNewPredictLocalizationRequest();
>      pdoc.getPredictLocalizationRequest().setSequence("ASDF");
>      pdoc.getPredictLocalizationRequest().setOrganism("ANIMAL");
>      TextLocServiceStub sender = new
> TextLocServiceStub("http://localhost/axis2/services/TextLocService");
>      PredictLocalizationResponseDocument res =
>         sender.predictLocalization(pdoc);
>      System.out.println(res.toString());
>    } catch (Exception e) {
>      e.printStackTrace();
>    }
> }
> The client now runs up until the document is being sent, where it throws
> an Exception. The stack trace is below. We think it is still a
> client-side problem, although the client does complain if it is not
> connected to the server and doesn't throw this exception.
> Please let us know if we should change anything about our client
> generation procedure, or how we can use the test client jar that is also
> generated by the WSDL2Java tool.
> Thanks a lot for your time! 

-- 
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-720) Data binding Error after using WSDL2Java to generate xmlbeans code

Posted by "Ali Sadik Kumlali (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-720?page=all ]

Ali Sadik Kumlali updated AXIS2-720:
------------------------------------

    Attachment: TextLocService.aar

TextLocService.aar has been attached.

> Data binding Error after using WSDL2Java to generate xmlbeans code
> ------------------------------------------------------------------
>
>          Key: AXIS2-720
>          URL: http://issues.apache.org/jira/browse/AXIS2-720
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug

>   Components: databinding
>     Versions: 1.0
>  Environment: Server: Axis2 1.0 inside a Tomcat 5.5.15 under Scientific Linux, 2.6.x kernel
> Client: Windows XP SP2 with JDK 1.5.0_06
>     Reporter: Rincewind Wizard
>     Assignee: Ajith Harshana Ranabahu
>  Attachments: EpiLocService.wsdl, EpiLocService.wsdl, TextLocService.aar, TextLocServiceSkeleton.java, TextLocServiceTest.java
>
> We've used the attached WSDL to create a service & client by means of
> the WSDL2Java tool (xmlbeans databinding). After implementing the
> simplest of business logics in the server, we deployed the service .aar
> in the axis2 install inside a tomcat server. According to the status
> page, the service is running error free.
> The client was also created by WSDL2Java, where we wrote a simple main()
> class to test the client. We've pasted it below.
> public static void main(String[] args) {
>    try {
>      PredictLocalizationRequestDocument pdoc =
> PredictLocalizationRequestDocument.Factory.newInstance();
>      pdoc.addNewPredictLocalizationRequest();
>      pdoc.getPredictLocalizationRequest().setSequence("ASDF");
>      pdoc.getPredictLocalizationRequest().setOrganism("ANIMAL");
>      TextLocServiceStub sender = new
> TextLocServiceStub("http://localhost/axis2/services/TextLocService");
>      PredictLocalizationResponseDocument res =
>         sender.predictLocalization(pdoc);
>      System.out.println(res.toString());
>    } catch (Exception e) {
>      e.printStackTrace();
>    }
> }
> The client now runs up until the document is being sent, where it throws
> an Exception. The stack trace is below. We think it is still a
> client-side problem, although the client does complain if it is not
> connected to the server and doesn't throw this exception.
> Please let us know if we should change anything about our client
> generation procedure, or how we can use the test client jar that is also
> generated by the WSDL2Java tool.
> Thanks a lot for your time! 

-- 
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-720) Data binding Error after using WSDL2Java to generate xmlbeans code

Posted by "Ajith Harshana Ranabahu (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-720?page=comments#action_12412007 ] 

Ajith Harshana Ranabahu commented on AXIS2-720:
-----------------------------------------------

This seems to be as same as issue 649. Please see whether the mentioned fix works in this case

> Data binding Error after using WSDL2Java to generate xmlbeans code
> ------------------------------------------------------------------
>
>          Key: AXIS2-720
>          URL: http://issues.apache.org/jira/browse/AXIS2-720
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug

>   Components: databinding
>     Versions: 1.0
>  Environment: Server: Axis2 1.0 inside a Tomcat 5.5.15 under Scientific Linux, 2.6.x kernel
> Client: Windows XP SP2 with JDK 1.5.0_06
>     Reporter: Rincewind Wizard
>     Assignee: Ajith Harshana Ranabahu
>  Attachments: EpiLocService.wsdl
>
> We've used the attached WSDL to create a service & client by means of
> the WSDL2Java tool (xmlbeans databinding). After implementing the
> simplest of business logics in the server, we deployed the service .aar
> in the axis2 install inside a tomcat server. According to the status
> page, the service is running error free.
> The client was also created by WSDL2Java, where we wrote a simple main()
> class to test the client. We've pasted it below.
> public static void main(String[] args) {
>    try {
>      PredictLocalizationRequestDocument pdoc =
> PredictLocalizationRequestDocument.Factory.newInstance();
>      pdoc.addNewPredictLocalizationRequest();
>      pdoc.getPredictLocalizationRequest().setSequence("ASDF");
>      pdoc.getPredictLocalizationRequest().setOrganism("ANIMAL");
>      TextLocServiceStub sender = new
> TextLocServiceStub("http://localhost/axis2/services/TextLocService");
>      PredictLocalizationResponseDocument res =
>         sender.predictLocalization(pdoc);
>      System.out.println(res.toString());
>    } catch (Exception e) {
>      e.printStackTrace();
>    }
> }
> The client now runs up until the document is being sent, where it throws
> an Exception. The stack trace is below. We think it is still a
> client-side problem, although the client does complain if it is not
> connected to the server and doesn't throw this exception.
> Please let us know if we should change anything about our client
> generation procedure, or how we can use the test client jar that is also
> generated by the WSDL2Java tool.
> Thanks a lot for your time! 

-- 
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-720) Data binding Error after using WSDL2Java to generate xmlbeans code

Posted by "Christopher Blunck (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-720?page=comments#action_12415939 ] 

Christopher Blunck commented on AXIS2-720:
------------------------------------------

I just want to post a follow-up that I'm experiencing a variant of this problem.

I'm using xmlbeans for xml marshalling, and when I send a SOAP message to the server the SOAP comes out looking like this:

<pre>
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header></soapenv:Header>
<soapenv:Body>
  <GetSummary xmlns="http://wxnet.org/inquiry/current">
    <Station xmlns="">
      <Name xmlns="http://wxnet.org/inquiry/types">Home_Weather</Name>
    </Station>
  </GetSummary>
</soapenv:Body>
</soapenv:Envelope>

Note my Station element has a blank namespace.  I'm running the 1.0 release of Axis2, including the 1.0 release of AXIOM.  I've tried replacing my wstx with a v3.0 RC and that doesn't seem to do squat.

I don't believe that resolving the bug as "fixed" just because you altered somebody's WSDL is appropriate.  I made the same modification to my WSDL, and it doesn't work for me.  A fix involves changing the software, not changing the data that an end-user runs through your system.



> Data binding Error after using WSDL2Java to generate xmlbeans code
> ------------------------------------------------------------------
>
>          Key: AXIS2-720
>          URL: http://issues.apache.org/jira/browse/AXIS2-720
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug

>   Components: databinding
>     Versions: 1.0
>  Environment: Server: Axis2 1.0 inside a Tomcat 5.5.15 under Scientific Linux, 2.6.x kernel
> Client: Windows XP SP2 with JDK 1.5.0_06
>     Reporter: Rincewind Wizard
>     Assignee: Ajith Harshana Ranabahu
>  Attachments: EpiLocService.wsdl, EpiLocService.wsdl, TextLocService.aar, TextLocServiceSkeleton.java, TextLocServiceTest.java
>
> We've used the attached WSDL to create a service & client by means of
> the WSDL2Java tool (xmlbeans databinding). After implementing the
> simplest of business logics in the server, we deployed the service .aar
> in the axis2 install inside a tomcat server. According to the status
> page, the service is running error free.
> The client was also created by WSDL2Java, where we wrote a simple main()
> class to test the client. We've pasted it below.
> public static void main(String[] args) {
>    try {
>      PredictLocalizationRequestDocument pdoc =
> PredictLocalizationRequestDocument.Factory.newInstance();
>      pdoc.addNewPredictLocalizationRequest();
>      pdoc.getPredictLocalizationRequest().setSequence("ASDF");
>      pdoc.getPredictLocalizationRequest().setOrganism("ANIMAL");
>      TextLocServiceStub sender = new
> TextLocServiceStub("http://localhost/axis2/services/TextLocService");
>      PredictLocalizationResponseDocument res =
>         sender.predictLocalization(pdoc);
>      System.out.println(res.toString());
>    } catch (Exception e) {
>      e.printStackTrace();
>    }
> }
> The client now runs up until the document is being sent, where it throws
> an Exception. The stack trace is below. We think it is still a
> client-side problem, although the client does complain if it is not
> connected to the server and doesn't throw this exception.
> Please let us know if we should change anything about our client
> generation procedure, or how we can use the test client jar that is also
> generated by the WSDL2Java tool.
> Thanks a lot for your time! 

-- 
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-720) Data binding Error after using WSDL2Java to generate xmlbeans code

Posted by "Rincewind Wizard (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-720?page=comments#action_12414474 ] 

Rincewind Wizard commented on AXIS2-720:
----------------------------------------

It does indeed work now. However, it would be a good idea to investigate, why the VALID wsdl we used before, with the attribute set to "unqualified" did not work.
If you don't want to do that, at least DOCUMENT the issue and tell people to not use this specific setting for their WSDLs.

> Data binding Error after using WSDL2Java to generate xmlbeans code
> ------------------------------------------------------------------
>
>          Key: AXIS2-720
>          URL: http://issues.apache.org/jira/browse/AXIS2-720
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug

>   Components: databinding
>     Versions: 1.0
>  Environment: Server: Axis2 1.0 inside a Tomcat 5.5.15 under Scientific Linux, 2.6.x kernel
> Client: Windows XP SP2 with JDK 1.5.0_06
>     Reporter: Rincewind Wizard
>     Assignee: Ajith Harshana Ranabahu
>  Attachments: EpiLocService.wsdl, EpiLocService.wsdl, TextLocService.aar, TextLocServiceSkeleton.java, TextLocServiceTest.java
>
> We've used the attached WSDL to create a service & client by means of
> the WSDL2Java tool (xmlbeans databinding). After implementing the
> simplest of business logics in the server, we deployed the service .aar
> in the axis2 install inside a tomcat server. According to the status
> page, the service is running error free.
> The client was also created by WSDL2Java, where we wrote a simple main()
> class to test the client. We've pasted it below.
> public static void main(String[] args) {
>    try {
>      PredictLocalizationRequestDocument pdoc =
> PredictLocalizationRequestDocument.Factory.newInstance();
>      pdoc.addNewPredictLocalizationRequest();
>      pdoc.getPredictLocalizationRequest().setSequence("ASDF");
>      pdoc.getPredictLocalizationRequest().setOrganism("ANIMAL");
>      TextLocServiceStub sender = new
> TextLocServiceStub("http://localhost/axis2/services/TextLocService");
>      PredictLocalizationResponseDocument res =
>         sender.predictLocalization(pdoc);
>      System.out.println(res.toString());
>    } catch (Exception e) {
>      e.printStackTrace();
>    }
> }
> The client now runs up until the document is being sent, where it throws
> an Exception. The stack trace is below. We think it is still a
> client-side problem, although the client does complain if it is not
> connected to the server and doesn't throw this exception.
> Please let us know if we should change anything about our client
> generation procedure, or how we can use the test client jar that is also
> generated by the WSDL2Java tool.
> Thanks a lot for your time! 

-- 
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-720) Data binding Error after using WSDL2Java to generate xmlbeans code

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

Davanum Srinivas commented on AXIS2-720:
----------------------------------------

Christopher,

Could u please help by creating a new JIRA issue. and upload your wsdl / test case? Please add a note in the comment that it is related to this jira issue.

Thanks,
dims

> Data binding Error after using WSDL2Java to generate xmlbeans code
> ------------------------------------------------------------------
>
>          Key: AXIS2-720
>          URL: http://issues.apache.org/jira/browse/AXIS2-720
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug

>   Components: databinding
>     Versions: 1.0
>  Environment: Server: Axis2 1.0 inside a Tomcat 5.5.15 under Scientific Linux, 2.6.x kernel
> Client: Windows XP SP2 with JDK 1.5.0_06
>     Reporter: Rincewind Wizard
>     Assignee: Ajith Harshana Ranabahu
>  Attachments: EpiLocService.wsdl, EpiLocService.wsdl, TextLocService.aar, TextLocServiceSkeleton.java, TextLocServiceTest.java
>
> We've used the attached WSDL to create a service & client by means of
> the WSDL2Java tool (xmlbeans databinding). After implementing the
> simplest of business logics in the server, we deployed the service .aar
> in the axis2 install inside a tomcat server. According to the status
> page, the service is running error free.
> The client was also created by WSDL2Java, where we wrote a simple main()
> class to test the client. We've pasted it below.
> public static void main(String[] args) {
>    try {
>      PredictLocalizationRequestDocument pdoc =
> PredictLocalizationRequestDocument.Factory.newInstance();
>      pdoc.addNewPredictLocalizationRequest();
>      pdoc.getPredictLocalizationRequest().setSequence("ASDF");
>      pdoc.getPredictLocalizationRequest().setOrganism("ANIMAL");
>      TextLocServiceStub sender = new
> TextLocServiceStub("http://localhost/axis2/services/TextLocService");
>      PredictLocalizationResponseDocument res =
>         sender.predictLocalization(pdoc);
>      System.out.println(res.toString());
>    } catch (Exception e) {
>      e.printStackTrace();
>    }
> }
> The client now runs up until the document is being sent, where it throws
> an Exception. The stack trace is below. We think it is still a
> client-side problem, although the client does complain if it is not
> connected to the server and doesn't throw this exception.
> Please let us know if we should change anything about our client
> generation procedure, or how we can use the test client jar that is also
> generated by the WSDL2Java tool.
> Thanks a lot for your time! 

-- 
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-720) Data binding Error after using WSDL2Java to generate xmlbeans code

Posted by "Rincewind Wizard (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-720?page=comments#action_12414069 ] 

Rincewind Wizard commented on AXIS2-720:
----------------------------------------

The solution by Ali does indeed work for me, thanks a lot for your time! We are really grateful that it is now resolved. Does anyone know what exactly this attribute does? What is it's default, i.e. if we don't specify it explicitly?

> Data binding Error after using WSDL2Java to generate xmlbeans code
> ------------------------------------------------------------------
>
>          Key: AXIS2-720
>          URL: http://issues.apache.org/jira/browse/AXIS2-720
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug

>   Components: databinding
>     Versions: 1.0
>  Environment: Server: Axis2 1.0 inside a Tomcat 5.5.15 under Scientific Linux, 2.6.x kernel
> Client: Windows XP SP2 with JDK 1.5.0_06
>     Reporter: Rincewind Wizard
>     Assignee: Ajith Harshana Ranabahu
>  Attachments: EpiLocService.wsdl, EpiLocService.wsdl, TextLocService.aar, TextLocServiceSkeleton.java, TextLocServiceTest.java
>
> We've used the attached WSDL to create a service & client by means of
> the WSDL2Java tool (xmlbeans databinding). After implementing the
> simplest of business logics in the server, we deployed the service .aar
> in the axis2 install inside a tomcat server. According to the status
> page, the service is running error free.
> The client was also created by WSDL2Java, where we wrote a simple main()
> class to test the client. We've pasted it below.
> public static void main(String[] args) {
>    try {
>      PredictLocalizationRequestDocument pdoc =
> PredictLocalizationRequestDocument.Factory.newInstance();
>      pdoc.addNewPredictLocalizationRequest();
>      pdoc.getPredictLocalizationRequest().setSequence("ASDF");
>      pdoc.getPredictLocalizationRequest().setOrganism("ANIMAL");
>      TextLocServiceStub sender = new
> TextLocServiceStub("http://localhost/axis2/services/TextLocService");
>      PredictLocalizationResponseDocument res =
>         sender.predictLocalization(pdoc);
>      System.out.println(res.toString());
>    } catch (Exception e) {
>      e.printStackTrace();
>    }
> }
> The client now runs up until the document is being sent, where it throws
> an Exception. The stack trace is below. We think it is still a
> client-side problem, although the client does complain if it is not
> connected to the server and doesn't throw this exception.
> Please let us know if we should change anything about our client
> generation procedure, or how we can use the test client jar that is also
> generated by the WSDL2Java tool.
> Thanks a lot for your time! 

-- 
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] Updated: (AXIS2-720) Data binding Error after using WSDL2Java to generate xmlbeans code

Posted by "Ali Sadik Kumlali (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-720?page=all ]

Ali Sadik Kumlali updated AXIS2-720:
------------------------------------

    Attachment: EpiLocService.wsdl
                TextLocServiceSkeleton.java
                TextLocServiceTest.java

EpiLocService.wsdl, TextLocServiceSkeleton.java and TextLocServiceTest.java has been attached.

> Data binding Error after using WSDL2Java to generate xmlbeans code
> ------------------------------------------------------------------
>
>          Key: AXIS2-720
>          URL: http://issues.apache.org/jira/browse/AXIS2-720
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug

>   Components: databinding
>     Versions: 1.0
>  Environment: Server: Axis2 1.0 inside a Tomcat 5.5.15 under Scientific Linux, 2.6.x kernel
> Client: Windows XP SP2 with JDK 1.5.0_06
>     Reporter: Rincewind Wizard
>     Assignee: Ajith Harshana Ranabahu
>  Attachments: EpiLocService.wsdl, EpiLocService.wsdl, TextLocServiceSkeleton.java, TextLocServiceTest.java
>
> We've used the attached WSDL to create a service & client by means of
> the WSDL2Java tool (xmlbeans databinding). After implementing the
> simplest of business logics in the server, we deployed the service .aar
> in the axis2 install inside a tomcat server. According to the status
> page, the service is running error free.
> The client was also created by WSDL2Java, where we wrote a simple main()
> class to test the client. We've pasted it below.
> public static void main(String[] args) {
>    try {
>      PredictLocalizationRequestDocument pdoc =
> PredictLocalizationRequestDocument.Factory.newInstance();
>      pdoc.addNewPredictLocalizationRequest();
>      pdoc.getPredictLocalizationRequest().setSequence("ASDF");
>      pdoc.getPredictLocalizationRequest().setOrganism("ANIMAL");
>      TextLocServiceStub sender = new
> TextLocServiceStub("http://localhost/axis2/services/TextLocService");
>      PredictLocalizationResponseDocument res =
>         sender.predictLocalization(pdoc);
>      System.out.println(res.toString());
>    } catch (Exception e) {
>      e.printStackTrace();
>    }
> }
> The client now runs up until the document is being sent, where it throws
> an Exception. The stack trace is below. We think it is still a
> client-side problem, although the client does complain if it is not
> connected to the server and doesn't throw this exception.
> Please let us know if we should change anything about our client
> generation procedure, or how we can use the test client jar that is also
> generated by the WSDL2Java tool.
> Thanks a lot for your time! 

-- 
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-720) Data binding Error after using WSDL2Java to generate xmlbeans code

Posted by "Ajith Harshana Ranabahu (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-720?page=comments#action_12413979 ] 

Ajith Harshana Ranabahu commented on AXIS2-720:
-----------------------------------------------

Hi Rincewind,
Please see whether the solution given by Ali works for you
 

> Data binding Error after using WSDL2Java to generate xmlbeans code
> ------------------------------------------------------------------
>
>          Key: AXIS2-720
>          URL: http://issues.apache.org/jira/browse/AXIS2-720
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug

>   Components: databinding
>     Versions: 1.0
>  Environment: Server: Axis2 1.0 inside a Tomcat 5.5.15 under Scientific Linux, 2.6.x kernel
> Client: Windows XP SP2 with JDK 1.5.0_06
>     Reporter: Rincewind Wizard
>     Assignee: Ajith Harshana Ranabahu
>  Attachments: EpiLocService.wsdl, EpiLocService.wsdl, TextLocService.aar, TextLocServiceSkeleton.java, TextLocServiceTest.java
>
> We've used the attached WSDL to create a service & client by means of
> the WSDL2Java tool (xmlbeans databinding). After implementing the
> simplest of business logics in the server, we deployed the service .aar
> in the axis2 install inside a tomcat server. According to the status
> page, the service is running error free.
> The client was also created by WSDL2Java, where we wrote a simple main()
> class to test the client. We've pasted it below.
> public static void main(String[] args) {
>    try {
>      PredictLocalizationRequestDocument pdoc =
> PredictLocalizationRequestDocument.Factory.newInstance();
>      pdoc.addNewPredictLocalizationRequest();
>      pdoc.getPredictLocalizationRequest().setSequence("ASDF");
>      pdoc.getPredictLocalizationRequest().setOrganism("ANIMAL");
>      TextLocServiceStub sender = new
> TextLocServiceStub("http://localhost/axis2/services/TextLocService");
>      PredictLocalizationResponseDocument res =
>         sender.predictLocalization(pdoc);
>      System.out.println(res.toString());
>    } catch (Exception e) {
>      e.printStackTrace();
>    }
> }
> The client now runs up until the document is being sent, where it throws
> an Exception. The stack trace is below. We think it is still a
> client-side problem, although the client does complain if it is not
> connected to the server and doesn't throw this exception.
> Please let us know if we should change anything about our client
> generation procedure, or how we can use the test client jar that is also
> generated by the WSDL2Java tool.
> Thanks a lot for your time! 

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