Could somebody please take a look at this? I don't see anything wrong, but it does not compile.
Thanks JL 2012/3/28 JOSE L MARTINEZ-AVIAL <jlm...@gmail.com> > Hi, > I have the following WSDL: > > <?xml version="1.0" encoding="UTF-8"?> > <wsdl:definitions targetNamespace="http://admin.ws.csd.rsa.com" > xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl=" > http://admin.ws.csd.rsa.com" xmlns:intf="http://admin.ws.csd.rsa.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 created by Apache Axis version: 1.4 > Built on Apr 22, 2006 (06:55:48 PDT)--> > <wsdl:types> > <schema elementFormDefault="qualified" targetNamespace=" > http://admin.ws.csd.rsa.com" xmlns="http://www.w3.org/2001/XMLSchema"> > > <element name="myRequest"> > <complexType> > <sequence> > <element name="userName" nillable="true" > type="xsd:string"/> > </sequence> > </complexType> > </element> > > <element name="myResponse"> > <complexType> > <sequence> > <element name="userStatus" nillable="true" > type="xsd:string"/> > </sequence> > </complexType> > </element> > > <complexType name="AdminServiceException"> > <sequence/> > </complexType> > <element name="fault" type="impl:AdminServiceException"/> > > </schema> > </wsdl:types> > > <wsdl:message name="getUserStatusResponse"> > <wsdl:part element="impl:myResponse" name="parameters"/> > </wsdl:message> > <wsdl:message name="getUserStatusRequest"> > <wsdl:part element="impl:myRequest" name="parameters"/> > </wsdl:message> > <wsdl:message name="AdminServiceException"> > <wsdl:part element="impl:fault" name="fault"/> > </wsdl:message> > > <wsdl:portType name="UserAdminService"> > <wsdl:operation name="getUserStatus"> > <wsdl:input message="impl:getUserStatusRequest" > name="getUserStatusRequest"/> > <wsdl:output message="impl:getUserStatusResponse" > name="getUserStatusResponse"/> > <wsdl:fault message="impl:AdminServiceException" > name="AdminServiceException"/> > </wsdl:operation> > </wsdl:portType> > <wsdl:binding name="AdaptiveAuthenticationAdminSoapBinding" > type="impl:UserAdminService"> > <wsdlsoap:binding style="document" transport=" > http://schemas.xmlsoap.org/soap/http"/> > <wsdl:operation name="getUserStatus"> > <wsdlsoap:operation soapAction=""/> > <wsdl:input name="getUserStatusRequest"> > <wsdlsoap:body use="literal"/> > </wsdl:input> > <wsdl:output name="getUserStatusResponse"> > <wsdlsoap:body use="literal"/> > </wsdl:output> > <wsdl:fault name="AdminServiceException"> > <wsdlsoap:fault name="AdminServiceException" > use="literal"/> > </wsdl:fault> > </wsdl:operation> > > </wsdl:binding> > <wsdl:service name="UserAdminServiceService"> > <wsdl:port binding="impl:AdaptiveAuthenticationAdminSoapBinding" > name="AdaptiveAuthenticationAdmin"> > <wsdlsoap:address location=" > http://server:83/AdaptiveAuthenticationAdmin/services/AdaptiveAuthenticationAdmin > "/> > </wsdl:port> > </wsdl:service> > </wsdl:definitions> > > I generated the code using: > > ./wsdl2java.sh -u -uri test2.wsdl -or > > It does not give any error: > > ./wsdl2java.sh -u -uri test2.wsdl -or > Using AXIS2_HOME: /opt/eco/ecoprd/axis2-1.6.1 > Using JAVA_HOME: /usr/local/jdk1.6.0_16 > Retrieving document at 'test2.wsdl'. > > > But when I compile the generated code, I have the following errors: > > javac -cp $CLASSPATH src/com/rsa/csd/ws/admin/*.java > src/com/rsa/csd/ws/admin/Fault.java:95: cannot find symbol > symbol : method > serialize(javax.xml.namespace.QName,javax.xml.stream.XMLStreamWriter) > location: class com.rsa.csd.ws.admin.AdminServiceException > localFault.serialize(MY_QNAME,xmlWriter); > ^ > src/com/rsa/csd/ws/admin/Fault.java:278: cannot find symbol > symbol : method getPullParser(javax.xml.namespace.QName) > location: class com.rsa.csd.ws.admin.AdminServiceException > return localFault.getPullParser(MY_QNAME); > ^ > src/com/rsa/csd/ws/admin/Fault.java:326: cannot find symbol > symbol : variable Factory > location: class com.rsa.csd.ws.admin.AdminServiceException > > object.setFault(com.rsa.csd.ws.admin.AdminServiceException.Factory.parse(reader)); > > ^ > src/com/rsa/csd/ws/admin/ExtensionMapper.java:28: cannot find symbol > symbol : variable Factory > location: class com.rsa.csd.ws.admin.AdminServiceException > return > com.rsa.csd.ws.admin.AdminServiceException.Factory.parse(reader); > > ^ > Note: src/com/rsa/csd/ws/admin/UserAdminServiceServiceStub.java uses > unchecked or unsafe operations. > Note: Recompile with -Xlint:unchecked for details. > 4 errors > > The code is pretty simple, and the syntax of the WSDL seems fine, so I > don't know what I'm missing. Any ideas? > > Thanks!! > > JL > >