Hi Martin,
Thanks for your reply.
I was also trying to figure out the problem. Since the interface name (BeanService) is same as the package name (BeanService), I am getting the error (symbol : class Order location: interface _59._159._69._152.axis.services.OrderProcessor.BeanService public java.lang.String processOrder(BeanService.Order in0) throws java.rmi.
RemoteException;).
Your suggestion definitely solves my problem. *Is there any way to fix this problem without modifying the class file?

*Is it an Axis bug? Why is it using the same interface name (BeanService) for the package that contains the Order class?

Thanks,
Venkatesh.

Martin Gainty wrote:
Venkatesh and Arvind
You have certainly come to the right place for these solutions! changing
'processOrder(BeanService.Order in0)'
to
'processOrder(Order in0)'
and placing
import BeanService.Order;
after the package specification works (and before public interface BeanService specification) works Martin --
*********************************************************************
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed. If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.
    ----- Original Message -----
    *From:* Venkatesh Audinarayanan
    <mailto:[EMAIL PROTECTED]>
    *To:* [email protected] <mailto:[email protected]>
    *Cc:* Arvind Maheshwari <mailto:[EMAIL PROTECTED]>
    *Sent:* Saturday, September 23, 2006 6:34 AM
    *Subject:* Unable to compile classes generated by java
    org.apache.axis.wsdl.WSDL2Java

    Hi,
    I am using Apache Axis 1.2.1 version. I generate the classes from
    wsdl file with WSDL2Java tool.
    The following packages & class files are created:
    1) _59\_159\_69\_152\axis\services\OrderProcessor
    BeanService.java
    BeanServiceService.java
    BeanServiceServiceLocator.java
    OrderProcessorSoapBindingStub.java

    2) BeanService
    Order.java

    I am able to compile the java bean (Order.java) inside BeanService
    package.

    *Then when I try to compile the proxy class (BeanService.java)
    inside _59\_159\_69\_152\axis\services\OrderProcessor, I am
    getting the following error:*
    _59\_159\_69\_152\axis\services\OrderProcessor\BeanService.java:11:
    cannot find
    symbol
    symbol  : class Order
    location: interface
    _59._159._69._152.axis.services.OrderProcessor.BeanService
        public java.lang.String processOrder(BeanService.Order in0)
    throws java.rmi.
    RemoteException;
                         ^
    In fact, I am getting similar kind of errors, when I try to
    compile the other classes in
    *_59\_159\_69\_152\axis\services\OrderProcessor package.
    I noticed that the classes inside
    **_59\_159\_69\_152\axis\services\OrderProcessor are referring to
    the Order class in *BeanService package. But they neither use
    package prefix nor import the class from the package.

    Please let me know if this is a known problem and there is any fix
    for this?
    I have attached the class files (orderProcessor.zap) and wsdl file
    (OrderProcessor.xml) for reference.
    Please rename orderProcessor.zap to orderProcessor.zip as my mail
    server doesn't allow zip files.

    Appreciate your help.

    Thanks,
    Venkatesh.



    *
    *

    ------------------------------------------------------------------------
    <?xml version="1.0" encoding="UTF-8"?>
    <wsdl:definitions
    targetNamespace="http://152.69.159.59:8080/axis/services/OrderProcessor";
    xmlns:apachesoap="http://xml.apache.org/xml-soap";
    xmlns:impl="http://152.69.159.59:8080/axis/services/OrderProcessor";
    xmlns:intf="http://152.69.159.59:8080/axis/services/OrderProcessor";
    xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";
    xmlns:tns1="urn:BeanService"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
    xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/";
    xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
    <!--WSDL created by Apache Axis version: 1.2.1
    Built on Jun 14, 2005 (09:15:57 EDT)-->
     <wsdl:types>
      <schema targetNamespace="urn:BeanService"
    xmlns="http://www.w3.org/2001/XMLSchema";>
       <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
       <complexType name="Order">
        <sequence>
         <element name="customerName" nillable="true" type="xsd:string"/>
         <element name="shippingAddress" nillable="true"
    type="xsd:string"/>
        </sequence>
       </complexType>
      </schema>
     </wsdl:types>

       <wsdl:message name="processOrderRequest">

          <wsdl:part name="in0" type="tns1:Order"/>

       </wsdl:message>

       <wsdl:message name="processOrderResponse">

          <wsdl:part name="processOrderReturn" type="xsd:string"/>

       </wsdl:message>

       <wsdl:portType name="BeanService">

          <wsdl:operation name="processOrder" parameterOrder="in0">

             <wsdl:input message="impl:processOrderRequest"
    name="processOrderRequest"/>

             <wsdl:output message="impl:processOrderResponse"
    name="processOrderResponse"/>

          </wsdl:operation>

       </wsdl:portType>

       <wsdl:binding name="OrderProcessorSoapBinding"
    type="impl:BeanService">

          <wsdlsoap:binding style="rpc"
    transport="http://schemas.xmlsoap.org/soap/http"/>

          <wsdl:operation name="processOrder">

             <wsdlsoap:operation soapAction=""/>

             <wsdl:input name="processOrderRequest">

                <wsdlsoap:body
    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";
    namespace="http://example5.userguide.samples"; use="encoded"/>

             </wsdl:input>

             <wsdl:output name="processOrderResponse">

                <wsdlsoap:body
    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";
    namespace="http://152.69.159.59:8080/axis/services/OrderProcessor";
    use="encoded"/>

             </wsdl:output>

          </wsdl:operation>

       </wsdl:binding>

       <wsdl:service name="BeanServiceService">

          <wsdl:port binding="impl:OrderProcessorSoapBinding"
    name="OrderProcessor">

             <wsdlsoap:address
    location="http://152.69.159.59:8080/axis/services/OrderProcessor"/>

          </wsdl:port>

       </wsdl:service>

    </wsdl:definitions>

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



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

Reply via email to