I created a wsdl file and stubs for this example.  There appears to be a
problem.  On line 3 below, we have *interface* BeanService.  On line 4 below
we have *class* BeanService.Order.  This will not compile.  To make this
work, I put Order class into same package as everything else, and made a
couple similar changes in OrderProcessorSoapBindingStub.java (below).  After
these 3 changes, the stubs compile and the client works fine.  It would
appear there is a bug in WSDL2Java (package name confusion).
Cheers.
Stan
---------------------------------------------------
/**
 * BeanService.java
 *
 * This file was auto-generated from WSDL
 * by the Apache Axis Wsdl2java emitter.
 */

1) package localhost;

3) public interface BeanService extends java.rmi.Remote {
4)    public java.lang.String processOrder(BeanService.Order in0) throws
java.rmi.RemoteException;
5) }
---------------------------------------------------
required changes to OrderProcessorSoapBindingStub.java....

//    cls = BeanService.Order.class;
      cls = Order.class;

//    public java.lang.String processOrder(BeanService.Order in0) throws
java.rmi.RemoteException{
      public java.lang.String processOrder(Order in0) throws
java.rmi.RemoteException{



Reply via email to