axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bobba, Ramesh" <ramesh.bo...@insignia.com>
Subject RE: Problem executing WSDL2Java
Date Mon, 08 Mar 2004 23:43:51 GMT
Is axis in your classpath?

-----Original Message-----
From: Miller, Janet [mailto:MillerJa@pbworld.com]
Sent: Monday, March 08, 2004 3:39 PM
To: axis-user@ws.apache.org
Subject: Problem executing WSDL2Java


I am an Axis beginner using JBoss-net (JBoss 3.2.3 w/ Axis 1.1).  I have
a wsdl file that I generated
from the output of a web page by cutting and pasting the wsdl into a
text file and I'm not able to run
wsdl2Java on it.  Are you allowed to create a wsdl file that way?
Anyone know what my problem is?  I'm
sure it's something simple.

C:\axistest>java org.apache.axis.wsdl.WSDL2Java TopicSubscriber.wsdl
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/axis/wsdl/
WSDL2Java

My wsdl file looks like the following:

<?xml version="1.0" encoding="UTF-8" ?> 
<wsdl:definitions
targetNamespace="http://localhost:8080/axis-test/services/Listener" 
  xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:apachesoap="http://xml.apache.org/xml-soap" 
  xmlns:impl="http://localhost:8080/axis-test/services/Listener" 
  xmlns:intf="http://localhost:8080/axis-test/services/Listener" 
  xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" 
  xmlns:tns1="http://webservice.commons.nextbus.com" 
  xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
  xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" 
  xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<wsdl:types>
  <schema targetNamespace="http://webservice.commons.nextbus.com"
xmlns="http://www.w3.org/2001/XMLSchema">
    <import namespace="http://schemas.xmlsoap.org/soap/encoding/" /> 
    <complexType name="WSObject">
      <sequence>
        <element name="URI" nillable="true" type="xsd:string" /> 
      </sequence>
    </complexType>
    <complexType name="SubscriberURI">
      <complexContent>
        <extension base="tns1:WSObject">
          <sequence /> 
        </extension>
      </complexContent>
    </complexType>
    <complexType name="Message">
      <sequence>
        <element name="body" nillable="true" type="xsd:string" /> 
        <element name="header" nillable="true" type="xsd:string" /> 
        <element name="subscriberURI" nillable="true"
type="tns1:SubscriberURI" /> 
      </sequence>
    </complexType>
  </schema>
</wsdl:types>
<wsdl:message name="onMessageRequest">
  <wsdl:part name="message" type="tns1:Message" /> 
</wsdl:message>
<wsdl:message name="onMessageResponse" /> 
<wsdl:portType name="DefaultListener">
  <wsdl:operation name="onMessage" parameterOrder="message">
    <wsdl:input message="intf:onMessageRequest" name="onMessageRequest"
/> 
    <wsdl:output message="intf:onMessageResponse"
name="onMessageResponse" /> 
  </wsdl:operation>
</wsdl:portType>
<wsdl:binding name="ListenerSoapBinding" type="intf:DefaultListener">
  <wsdlsoap:binding style="rpc"
transport="http://schemas.xmlsoap.org/soap/http" /> 
  <wsdl:operation name="onMessage">
    <wsdlsoap:operation soapAction="" /> 
    <wsdl:input name="onMessageRequest">
      <wsdlsoap:body
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="http://webservice.commons.nextbus.com" use="encoded" /> 
    </wsdl:input>
    <wsdl:output name="onMessageResponse">
      <wsdlsoap:body
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="http://localhost:8080/axis-test/services/Listener"
use="encoded" /> 
    </wsdl:output>
  </wsdl:operation>
</wsdl:binding>
<wsdl:service name="DefaultListenerService">
  <wsdl:port binding="intf:ListenerSoapBinding" name="Listener">
    <wsdlsoap:address
location="http://localhost:8080/axis-test/services/Listener" /> 
  </wsdl:port>
</wsdl:service>
</wsdl:definitions>

Mime
View raw message