Hi,

 

I’ve deployed a skeleton service  with an xmlbeans data binding which handles five types of operation: login,format, search,metadata and page. I know the service is working because I’ve accessed it from .NET and it returns correct responses. However, when I try to use the generated Stub class in the following way:

 

         PAFStub stub = new PAFStub(null, "http://localhost:8080/axis2/services/PAF");

         LoginRequestDocument ld = LoginRequestDocument.Factory.newInstance();

         ld.addNewLoginRequest();

 

         // Populate the request

    

         ld.getLoginRequest().setUserID("test");

         ld.getLoginRequest().setPassword("test");

        

         LoginResponseDocument loginResponse = stub.login(ld);

 

it throws an AxisFault telling me that there is a data binding error;

The nested XmlException says: document is not a [EMAIL PROTECTED]://www.edp.co.uk/ws/PAF/: document element local name mismatch expected FormatRequest got LoginRequest

 

This has me very puzzled bearing in mind that a login request works fine when using a .NET web reference to the service. As far as I can work out problems arise in MessageReceiverInOut fromOM(OMElement param, Class type) method.

 

Any ideas?

 

Regards,

Ken

Reply via email to