I suspect you did not specify the --location option.  That option is
required.  Otherwise WSDL is generated that doesn't have a location in the
service clause and WSDL2Java fails for the reason given.

We've fixed Java2WSDL since alpha3 so that it doesn't run without a
location.

Russell Butek
[EMAIL PROTECTED]


"Lakshmi Prasad" <[EMAIL PROTECTED]> on 02/07/2002 06:08:36 AM

Please respond to [EMAIL PROTECTED]

To:   <[EMAIL PROTECTED]>
cc:   <[EMAIL PROTECTED]>
Subject:  Errors creating java files through "Wsdl2java"




Hi All ,

I am new to Axis and I have downloaded alpha3. I am  trying to run the
samples.
The samples are working fine but I struck at a  particular example i.e.,
I have generated a "wsdl" file by using tool  "Java2wsdl".for the example
Calculator.class in sample/userguide/example2  directory.

But when I try to generate Java Files  from this wsdl file using
"wsdl2java" tool  I get the following  Errors. Can some one help me

I am giving the following commands through command  line
C:\axis\samples>java  org.apache.axis.wsdl.Wsdl2java calculator.wsdl
java.io.IOException: Emitter  failure.  Cannot find endpoint address in
port CalculatorPort in service  Calculator
        at
org.apache.axis.wsdl.JavaServiceImplWriter.writeFileBody(JavaServiceImplWriter.java:145)
         at  org.apache.axis.wsdl.JavaWriter.write(JavaWriter.java:165)
         at
org.apache.axis.wsdl.JavaServiceWriter.write(JavaServiceWriter.java:95)
         at  org.apache.axis.wsdl.Emitter.emit(Emitter.java:225)
         at  org.apache.axis.wsdl.Emitter.emit(Emitter.java:169)
         at  org.apache.axis.wsdl.Emitter.emit(Emitter.java:141)
         at org.apache.axis.wsdl.Wsdl2java.main(Wsdl2java.java:260)

awaiting an early reply.
Thanks in advance.

Regards
Prasad


Reply via email to