Hi folks,
I'm trying the examples available at http://www.pankaj-k.net/WSOverSSL/WSOverSSL-HOWTO.html and
i'm in trouble generating the client side
stubs and compiling the client class (Client.java),
compiler output looks like:
----- compiler output ------
C:\Ccosta\axis_testes\WSOverSSL\axis>C:\java\j2sdk1.4.2\bin\javac
-classpath
;C:\java\lib\axis-1_1\lib\axis-ant.jar;C:\java\lib\axis-1_1\lib\axis.jar;C:\java\lib\axis-1_1\lib\commons-discovery.jar;C:\java\lib\axis-1_1\lib\commons-logging.jar;C:\java\lib\axis-1_1\lib\jaxrpc.jar;C:\java\lib\axis-1_1\lib\log4j-1.2.8.jar;C:\java\lib\axis-1_1\lib\saaj.jar;C:\java\lib\axis-1_1\lib\wsdl4j.jar;.
client\*.java
client\Client.java:16: client.Hello is abstract;
cannot be
instantiated
Hello service = new Hello(); ^ client\Client.java:17: cannot resolve symbol symbol : class HelloPortType location: class client.Client HelloPortType portType = service.getHelloPort(); ^ client\Client.java:17: cannot resolve symbol symbol : method getHelloPort () location: interface client.Hello HelloPortType portType = service.getHelloPort(); ^ 3 errors ------------------------------------
I guess the problem comes from the fact that my
client stubs generation is not complete, there is no generated code for
HelloPortType.java.....
Is there something missing in my wsdl
????
Attched to this message are my WSDL2Java output, my
wsld file and my Client.java.
PS.: i'm using axis1.1,
Tomcat/4.1.24,
java version "1.4.2" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-b28) Java HotSpot(TM) Client VM (build 1.4.2-b28, mixed mode) Thanks,
Carolina Costa
|
<wsdl:definitions targetNamespace="https://localhost:8443/axis_testes/services/HelloService" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="https://localhost:8443/axis_testes/services/HelloService" xmlns:intf="https://localhost:8443/axis_testes/services/HelloService" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <wsdl:message name="greetResponse"> <wsdl:part name="greetReturn" type="xsd:string"/> </wsdl:message> <wsdl:message name="greetRequest"> <wsdl:part name="in0" type="xsd:string"/> </wsdl:message> <wsdl:portType name="Hello"> <wsdl:operation name="greet" parameterOrder="in0"> <wsdl:input message="impl:greetRequest" name="greetRequest"/> <wsdl:output message="impl:greetResponse" name="greetResponse"/> </wsdl:operation> </wsdl:portType> <wsdl:binding name="HelloServiceSoapBinding" type="impl:Hello"> <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> <wsdl:operation name="greet"> <wsdlsoap:operation soapAction=""/> <wsdl:input name="greetRequest"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://DefaultNamespace" use="encoded"/> </wsdl:input> <wsdl:output name="greetResponse"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="https://localhost:8443/axis_testes/services/HelloService" use="encoded"/> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:service name="HelloService"> <wsdl:port binding="impl:HelloServiceSoapBinding" name="HelloService"> <wsdlsoap:address location="http://localhost/axis_testes/services/HelloService"/> </wsdl:port> </wsdl:service> </wsdl:definitions>
C:\Ccosta\axis_testes\WSOverSSL\axis>C:\java\j2sdk1.4.2\bin\java -Djava.protocol.handler.pkgs=com.sun.net.ssl.internal.www.protocol -Djavax.net.ssl.trustStore=.\client.keystore -cp ;C:\java\lib\axis-1_1\lib\axis-ant.jar;C:\java\lib\axis-1_1\lib\axis.jar;C:\java\lib\axis-1_1\lib\commons-discovery.jar;C:\java\lib\axis-1_1\lib\commons-logging.jar;C:\java\lib\axis-1_1\lib\jaxrpc.jar;C:\java\lib\axis-1_1\lib\log4j-1.2.8.jar;C:\java\lib\axis-1_1\lib\saaj.jar;C:\java\lib\axis-1_1\lib\wsdl4j.jar org.apache.axis.wsdl.WSDL2Java -v -D -a -p client https://localhost:8443/axis_testes/services/HelloService?wsdl Parsing XML file: https://localhost:8443/axis_testes/services/HelloService?wsdl
Symbol Table ----------------------- org.apache.axis.wsdl.symbolTable.ServiceEntry QName: {https://localhost:8443/axis_testes/services/HelloService}HelloService name: client.HelloService isReferenced? true org.apache.axis.wsdl.symbolTable.PortEntry QName: HelloService name: client.HelloService isReferenced? true org.apache.axis.wsdl.symbolTable.BindingEntry QName: {https://localhost:8443/axis_testes/services/HelloService}HelloServiceSoapBinding name: client.HelloServiceSoapBinding isReferenced? true dynamicVars: interface name = client.Hello org.apache.axis.wsdl.symbolTable.MessageEntry QName: {https://localhost:8443/axis_testes/services/HelloService}greetResponse name: client.GreetResponse isReferenced? true org.apache.axis.wsdl.symbolTable.PortTypeEntry QName: {https://localhost:8443/axis_testes/services/HelloService}Hello name: client.Hello isReferenced? true org.apache.axis.wsdl.symbolTable.MessageEntry QName: {https://localhost:8443/axis_testes/services/HelloService}greetRequest name: client.GreetRequest isReferenced? true org.apache.axis.wsdl.symbolTable.BaseType QName: {http://www.w3.org/2001/XMLSchema}string name: java.lang.String isReferenced? true Class: org.apache.axis.wsdl.symbolTable.BaseType Base?: true Undefined?: false isSimpleType? false Node: null Dims: RefType: null ----------------------- Generating client\HelloService.java Generating client\HelloServiceLocator.java Generating client\Hello.java Generating client\HelloServiceSoapBindingStub.java
Client.java
Description: Binary data