I defined the schema as follows:

 <wsdl:types>
    <xsd:element name="shipmentTrackRequest">
       <xsd:complexType>
          <xsd:sequence>
             <xsd:element name="shipmentName" type="xsd:string"/>
             <xsd:element name="shipmentID" type="xsd:int"/>
          </xsd:sequence>
       </xsd:complexType>
     </xsd:element>
     <xsd:element name="shipmentTrackResponse">
        <xsd:complexType>
            <xsd:sequence>
                <xsd:any namespace="##any" minOccurs="0"
maxOccurs="unbounded" processContents="lax" />
            </xsd:sequence>
         </xsd:complexType>
      </xsd:element>
    </xsd:schema>
  </wsdl:types>

Now it produced two class of "ShipmentTrackRequest" and
"ShipmentTrackResponse".
I want to use 

public class SearchServiceBindingImpl implements testHost.SearchServicePT {
    public testHost.ShipmentTrackResponse
searchOP(testHost.ShipmentTrackRequest stu0) throws java.rmi.RemoteException
{}

to send ShipmentTrackRequest back to the client, how to Serializable the
object of ShipmentTrackRequest to an MessageElement and send back?

   public ShipmentTrackResponse(
           org.apache.axis.message.MessageElement [] _any) {
           this._any = _any;
    }
    public org.apache.axis.message.MessageElement [] get_any() {
        return _any;
    }

thanks very much.
http://www.nabble.com/file/p23866303/testHost.zip testHost.zip 
-- 
View this message in context: 
http://www.nabble.com/use-xsd%3Aany-to-return-an-java-object-tp23866303p23866303.html
Sent from the Axis - User mailing list archive at Nabble.com.

Reply via email to