Sebastian, I just gave xmlbeans a run from the latest nightly, and its running fine here. I'm the one that actually filed axis2-649 , and it does seem to solve my problem.

Here's some links to my test files, if you care to take a look:

http://www.braziloutsource.com/random/SimpleServiceSkeleton.java
http://www.braziloutsource.com/random/simple.aar
http://www.braziloutsource.com/random/simple.wsdl
http://www.braziloutsource.com/random/build.properties
http://www.braziloutsource.com/random/build.xml

My client looks like:

package org;

import simplens.types.*;
import simplens.types.SimpleLoginDocument;
import simplens.types.SimpleLoginDocument.*;
import simplens.types.SimpleLoginResponseDocument;
import simplens.types.SimpleLoginResponseDocument.*;
import simplens.types.impl.*;
import org.simple.endpoint.*;

public class Tester {
  public static void main(String [] args) throws Exception {

    SimpleServiceStub stub =
         new SimpleServiceStub();

    SimpleLogin simpleLogin = SimpleLogin.Factory.newInstance();
    simpleLogin.setUserName("userName");
    simpleLogin.setUserPassword("password");
               
    SimpleLoginDocument simpleLoginDocument =
        SimpleLoginDocument.Factory.newInstance();
   
    simpleLoginDocument.setSimpleLogin(simpleLogin);
               
    SimpleLoginResponseDocument simpleLoginResponseDocument
        = stub.simpleLogin(simpleLoginDocument);

    SimpleLoginResponse simpleLoginResponse =
        simpleLoginResponseDocument.getSimpleLoginResponse();

    String session = simpleLoginResponse.getSoapSessionId();
    String user = simpleLoginResponse.getWebUserName();
    System.out.println("simpleLoginResponse, session: " + session + ", user: " + user);
   
  }
}

Now you do state you're running windows. Actually, I'm a linux user. I really don't think this is your problem, but do take a look at my build.xml that I use if in doubt.

Cheers,
Robert

On 5/30/06, Sebastian J. Schultheiss <[EMAIL PROTECTED]> wrote:
Hi there,

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?

The problem is logged as a JIRA:
http://issues.apache.org/jira/browse/AXIS2-720

This is part of 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
    ... 21 more

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

Any thoughts or experiences would be greatly appreciated. Out of desparation we
now tried to use ADB instead, but found another bug there, see separate email.

-- Sebastian

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


/**
 * SimpleServiceSkeleton.java
 *
 * This file was auto-generated from WSDL
 * by the Apache Axis2 version: 0.94 Jan 11, 2006 (08:01:58 LKT)
 */
package org.simple.endpoint;

import simplens.types.*;
import simplens.types.SimpleLoginResponseDocument;
import simplens.types.SimpleLoginResponseDocument.*;
import simplens.types.SimpleLoginDocument;
import simplens.types.SimpleLoginDocument.*;

/**
 *  SimpleServiceSkeleton java skeleton for the axisService
 */
public class SimpleServiceSkeleton {
 
    /**
     * Auto generated method signature
     
      * @param param0
      * @param SimpleLoginResponseDocument changed from param0
     
     */
    public SimpleLoginResponseDocument simpleLogin
              (simplens.types.SimpleLoginDocument simpleLoginDocument){
            //Todo fill this with the necessary business logic

            SimpleLoginResponseDocument retDoc =
                SimpleLoginResponseDocument.Factory.newInstance();
             
            SimpleLoginResponse retElement =
                SimpleLoginResponse.Factory.newInstance();
            // Get parameters passed in 
            SimpleLogin simpleLogin = simpleLoginDocument.getSimpleLogin();
            String userName = simpleLogin.getUserName();
            String password = simpleLogin.getUserPassword();

            retElement.setWebUserName(userName);
            retElement.setSoapSessionId("my random string");
            System.out.println("validate retDoc: " + retDoc.validate());

            retDoc.setSimpleLoginResponse(retElement);
            System.out.println("validate retElement: " + retElement.validate());
            return retDoc; 
    }
 
}


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to