[ http://issues.apache.org/jira/browse/AXIS-1409?page=all ]
     
Davanum Srinivas resolved AXIS-1409:
------------------------------------

    Resolution: Fixed

Please try latest CVS / Nightly. should be fixed.

thanks,
dims

> wrong WSDL generated for WS-I Basic Profile 1.0
> -----------------------------------------------
>
>          Key: AXIS-1409
>          URL: http://issues.apache.org/jira/browse/AXIS-1409
>      Project: Axis
>         Type: Bug
>   Components: WSDL processing
>     Versions: current (nightly)
>  Environment: Windows XP Professional
> Java sdk 1.4.2_04-b05
> Axis nightly build (23/06/2004)
> Ant 1.5
>     Reporter: Pascal PRIOUX
>     Assignee: Davanum Srinivas

>
> the tns2 prefix namespace is not declared in the generated WSDL:
>    <complexType name="ArrayOf_tns1_anyType">
>     <complexContent>
>      <restriction base="tns2:Array">
>       <attribute ref="tns2:arrayType" wsdl:arrayType="tns1:anyType[]"/>
>      </restriction>
>     </complexContent>
>    </complexType>
> JAVA services interfaces:
> //---------------------------------------------------------------
> public abstract class WESTSoapSessionService
>     {
> //---------------------------------------------------------------
>     abstract protected WESTCoreSoapSessionService getCoreSoapSessionService();
> //---------------------------------------------------------------
>     public  WESTSoapSessionService()
>       {
>       WESTLogger.logDebug("[WESTSoapSessionService] Contructor");
>       }
>     private WESTSoapSessionManager getSessionManager()
>       {
>       WESTSoapSessionManager sessionManager=null;
>       MessageContext messageContext=MessageContext.getCurrentContext();
>       HttpServletRequest 
> request=(HttpServletRequest)(messageContext.getProperty(HTTPConstants.MC_HTTP_SERVLETREQUEST));
>       HttpSession session=request.getSession(false);
>       
> sessionManager=(WESTSoapSessionManager)(session.getAttribute(WESTSessionAttributeKeys.SessionManagerKey));
>       return sessionManager;
>       }
>     public String initSession(String _clientApplicationName) throws Exception
>       {
>       WESTSoapSessionManager sessionManager=getSessionManager();
>       sessionManager.setCoreSessionService(getCoreSoapSessionService());
>       return 
> getCoreSoapSessionService().initSession(sessionManager,_clientApplicationName);
>       
>       }
>     public void login(ESTLoginEvent _loginEvent) throws Exception
>       {
>       getCoreSoapSessionService().login(_loginEvent);
>       }
>     public void setSessionTimeOut(Integer _sessionTimeOut)
>       {
>       getCoreSoapSessionService().setSessionTimeOut(_sessionTimeOut);
>       }
> //---------------------------------------------------------------
>     public void logout() throws Exception
>       {
>       getCoreSoapSessionService().logout();
>       }
> //---------------------------------------------------------------
>  
>     public void sendMail(     String                  _toEMailAddress,
>                               String                  _fromEMailAddress,
>                               String                  
> _fromPersonalEMailAddress,
>                               String                  _subject,
>                               String                  _body,
>                               Boolean                 _synchronousMode)
>                          throws Exception
>       {
>       getCoreSoapSessionService().sendMail
>               
> (_toEMailAddress,_fromEMailAddress,_fromPersonalEMailAddress,_subject,_body,_synchronousMode);
>                                       
>       }                       
> //---------------------------------------------------------------
> public abstract class JMEWSTSoapSession extends WESTSoapSessionService
>       {
>       public JMEWSTSoapSession()
>                       {
>               super();
>                       }
>       public void loadMIDPRecordStore(String _recordStoreIdentifier) throws 
> Exception
>               {
>               
> ((JMEWSTCoreSoapSession)getCoreSoapSessionService()).loadBinaryRecordStore(_recordStoreIdentifier);
>               }
>       
> // This methods cause the error in WSDL file
> // -----------------------------------------
>  
>       public   Collection getVectorOfMIDPRecordStoreRecord(Integer 
> _startRecordIndex,Integer _endRecordIndex) throws Exception
>               {
>               return 
> (((JMEWSTCoreSoapSession)getCoreSoapSessionService()).getBinaryRecordsAsVector
>                       
> (_startRecordIndex.intValue(),_endRecordIndex.intValue()));
>               
>               }
>       
>       
>       public long getMIDPDataLenth() throws Exception
>               {
>               return 
> ((JMEWSTCoreSoapSession)getCoreSoapSessionService()).getBinaryDataLength();   
>    
>               }
>       public long getMIDPRecordCount()throws Exception
>               {
>               return 
> ((JMEWSTCoreSoapSession)getCoreSoapSessionService()).getBinaryRecordCount();
>               }
>       }
> //---------------------------------------------------------------
> // My implementing class (pass in the WSDL ant task)
> public class SoapJMEProvisioningSession extends JMEWSTSoapSession
>     {
>     private SoapJMEProvisioningCoreSession soapLaboinfoCoreSession=null;
>       
>     protected WESTCoreSoapSessionService getCoreSoapSessionService()
>       {
>       return soapLaboinfoCoreSession;
>       }
>     public SoapJMEProvisioningSession()
>       {
>       super();
>       soapLaboinfoCoreSession =new SoapJMEProvisioningCoreSession();
>       }
> //---------------------------------------------------------------
> //---------------------------------------------------------------
> ANT task:
>       <axis-java2wsdl
>       
>               
> output="${java.local.projects.webapps.dir}/${application.name}/${application.name}${java.local.webapps.application.name.web.suffix}/${java.local.web.deploy.service.config.reldir}/${application.name}-doc.wsdl"
>               
> location="http://${location.host.name}.${location.host.domain.name}:${location.host.port}/${application.name}${location.host.service.url}";
>               
> classname="enitab.webapps.${application.name}.web.controller.soap.Soap${application.class.name}Session"
>               namespace="urn:${application.name}-rpc-service"
>               style="wrapped"
>               use="literal"
>                >
>               
>               <complextype    
> classname="enitab.tools.server.entreprise.control.event.ESTLoginEvent" 
>                                               
> namespace="event.control.entreprise.server.tools.enitab" />
>                                               
>               <complextype    
> classname="enitab.tools.server.entreprise.control.event.ESTLogoutEvent" 
>                                               
> namespace="event.control.entreprise.server.tools.enitab" />
>               
>                       
>                       
>       </axis-java2wsdl> 
> WSDL generated
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions targetNamespace="urn:jmeprovisioning-rpc-service" 
> xmlns:apachesoap="http://xml.apache.org/xml-soap"; 
> xmlns:impl="urn:jmeprovisioning-rpc-service" 
> xmlns:intf="urn:jmeprovisioning-rpc-service" 
> xmlns:tns1="http://www.w3.org/1999/XMLSchema"; 
> xmlns:tns3="event.control.entreprise.server.tools.enitab" 
> xmlns:tns4="http://event.control.entreprise.server.tools.enitab"; 
> 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.2beta
> Built on Jun 23, 2004 (12:02:33 PDT)-->
>  <wsdl:types>
>   <schema elementFormDefault="qualified" 
> targetNamespace="urn:jmeprovisioning-rpc-service" 
> xmlns="http://www.w3.org/2001/XMLSchema";>
>    <import namespace="event.control.entreprise.server.tools.enitab"/>
>    <import namespace="http://event.control.entreprise.server.tools.enitab"/>
>    <element name="loadMIDPRecordStore">
>     <complexType>
>      <sequence>
>       <element name="_recordStoreIdentifier" type="xsd:string"/>
>      </sequence>
>     </complexType>
>    </element>
>    <element name="loadMIDPRecordStoreResponse">
>     <complexType/>
>    </element>
>    <element name="getVectorOfMIDPRecordStoreRecord">
>     <complexType>
>      <sequence>
>       <element name="_startRecordIndex" type="xsd:int"/>
>       <element name="_endRecordIndex" type="xsd:int"/>
>      </sequence>
>     </complexType>
>    </element>
>    <element name="getVectorOfMIDPRecordStoreRecordResponse">
>     <complexType>
>      <sequence>
>       <element name="getVectorOfMIDPRecordStoreRecordReturn" 
> type="impl:ArrayOf_tns1_anyType"/>
>      </sequence>
>     </complexType>
>    </element>
>    <complexType name="ArrayOf_tns1_anyType">
>     <complexContent>
>      <restriction base="tns2:Array">
>       <attribute ref="tns2:arrayType" wsdl:arrayType="tns1:anyType[]"/>
>      </restriction>
>     </complexContent>
>    </complexType>
>    <element name="getMIDPDataLenth">
>     <complexType/>
>    </element>
>    <element name="getMIDPDataLenthResponse">
>     <complexType>
>      <sequence>
>       <element name="getMIDPDataLenthReturn" type="xsd:long"/>
>      </sequence>
>     </complexType>
>    </element>
>    <element name="getMIDPRecordCount">
>     <complexType/>
>    </element>
>    <element name="getMIDPRecordCountResponse">
>     <complexType>
>      <sequence>
>       <element name="getMIDPRecordCountReturn" type="xsd:long"/>
>      </sequence>
>     </complexType>
>    </element>
>    <element name="login">
>     <complexType>
>      <sequence>
>       <element name="_loginEvent" type="tns3:ESTLoginEvent"/>
>      </sequence>
>     </complexType>
>    </element>
>    <element name="loginResponse">
>     <complexType/>
>    </element>
>    <element name="logout">
>     <complexType/>
>    </element>
>    <element name="logoutResponse">
>     <complexType/>
>    </element>
>    <element name="initSession">
>     <complexType>
>      <sequence>
>       <element name="_clientApplicationName" type="xsd:string"/>
>      </sequence>
>     </complexType>
>    </element>
>    <element name="initSessionResponse">
>     <complexType>
>      <sequence>
>       <element name="initSessionReturn" type="xsd:string"/>
>      </sequence>
>     </complexType>
>    </element>
>    <element name="setSessionTimeOut">
>     <complexType>
>      <sequence>
>       <element name="_sessionTimeOut" type="xsd:int"/>
>      </sequence>
>     </complexType>
>    </element>
>    <element name="setSessionTimeOutResponse">
>     <complexType/>
>    </element>
>    <element name="sendMail">
>     <complexType>
>      <sequence>
>       <element name="_toEMailAddress" type="xsd:string"/>
>       <element name="_fromEMailAddress" type="xsd:string"/>
>       <element name="_fromPersonalEMailAddress" type="xsd:string"/>
>       <element name="_subject" type="xsd:string"/>
>       <element name="_body" type="xsd:string"/>
>       <element name="_synchronousMode" type="xsd:boolean"/>
>      </sequence>
>     </complexType>
>    </element>
>    <element name="sendMailResponse">
>     <complexType/>
>    </element>
>   </schema>
>   <schema elementFormDefault="qualified" 
> targetNamespace="http://event.control.entreprise.server.tools.enitab"; 
> xmlns="http://www.w3.org/2001/XMLSchema";>
>    <import namespace="event.control.entreprise.server.tools.enitab"/>
>    <import namespace="urn:jmeprovisioning-rpc-service"/>
>    <complexType name="ESTServerEventSupport">
>     <sequence>
>      <element name="eventName" nillable="true" type="xsd:string"/>
>     </sequence>
>    </complexType>
>   </schema>
>   <schema elementFormDefault="qualified" 
> targetNamespace="event.control.entreprise.server.tools.enitab" 
> xmlns="http://www.w3.org/2001/XMLSchema";>
>    <import namespace="urn:jmeprovisioning-rpc-service"/>
>    <import namespace="http://event.control.entreprise.server.tools.enitab"/>
>    <complexType name="ESTLoginEvent">
>     <complexContent>
>      <extension base="tns4:ESTServerEventSupport">
>       <sequence>
>        <element name="identifier" nillable="true" type="xsd:string"/>
>        <element name="password" nillable="true" type="xsd:string"/>
>       </sequence>
>      </extension>
>     </complexContent>
>    </complexType>
>   </schema>
>  </wsdl:types>
>    <wsdl:message name="getVectorOfMIDPRecordStoreRecordResponse">
>       <wsdl:part element="impl:getVectorOfMIDPRecordStoreRecordResponse" 
> name="parameters"/>
>    </wsdl:message>
>    <wsdl:message name="sendMailRequest">
>       <wsdl:part element="impl:sendMail" name="parameters"/>
>    </wsdl:message>
>    <wsdl:message name="loadMIDPRecordStoreResponse">
>       <wsdl:part element="impl:loadMIDPRecordStoreResponse" 
> name="parameters"/>
>    </wsdl:message>
>    <wsdl:message name="getVectorOfMIDPRecordStoreRecordRequest">
>       <wsdl:part element="impl:getVectorOfMIDPRecordStoreRecord" 
> name="parameters"/>
>    </wsdl:message>
>    <wsdl:message name="getMIDPDataLenthRequest">
>       <wsdl:part element="impl:getMIDPDataLenth" name="parameters"/>
>    </wsdl:message>
>    <wsdl:message name="getMIDPRecordCountResponse">
>       <wsdl:part element="impl:getMIDPRecordCountResponse" name="parameters"/>
>    </wsdl:message>
>    <wsdl:message name="setSessionTimeOutRequest">
>       <wsdl:part element="impl:setSessionTimeOut" name="parameters"/>
>    </wsdl:message>
>    <wsdl:message name="loginRequest">
>       <wsdl:part element="impl:login" name="parameters"/>
>    </wsdl:message>
>    <wsdl:message name="getMIDPRecordCountRequest">
>       <wsdl:part element="impl:getMIDPRecordCount" name="parameters"/>
>    </wsdl:message>
>    <wsdl:message name="sendMailResponse">
>       <wsdl:part element="impl:sendMailResponse" name="parameters"/>
>    </wsdl:message>
>    <wsdl:message name="setSessionTimeOutResponse">
>       <wsdl:part element="impl:setSessionTimeOutResponse" name="parameters"/>
>    </wsdl:message>
>    <wsdl:message name="logoutResponse">
>       <wsdl:part element="impl:logoutResponse" name="parameters"/>
>    </wsdl:message>
>    <wsdl:message name="initSessionRequest">
>       <wsdl:part element="impl:initSession" name="parameters"/>
>    </wsdl:message>
>    <wsdl:message name="loadMIDPRecordStoreRequest">
>       <wsdl:part element="impl:loadMIDPRecordStore" name="parameters"/>
>    </wsdl:message>
>    <wsdl:message name="logoutRequest">
>       <wsdl:part element="impl:logout" name="parameters"/>
>    </wsdl:message>
>    <wsdl:message name="initSessionResponse">
>       <wsdl:part element="impl:initSessionResponse" name="parameters"/>
>    </wsdl:message>
>    <wsdl:message name="getMIDPDataLenthResponse">
>       <wsdl:part element="impl:getMIDPDataLenthResponse" name="parameters"/>
>    </wsdl:message>
>    <wsdl:message name="loginResponse">
>       <wsdl:part element="impl:loginResponse" name="parameters"/>
>    </wsdl:message>
>    <wsdl:portType name="SoapJMEProvisioningSession">
>       <wsdl:operation name="loadMIDPRecordStore">
>          <wsdl:input message="impl:loadMIDPRecordStoreRequest" 
> name="loadMIDPRecordStoreRequest"/>
>          <wsdl:output message="impl:loadMIDPRecordStoreResponse" 
> name="loadMIDPRecordStoreResponse"/>
>       </wsdl:operation>
>       <wsdl:operation name="getVectorOfMIDPRecordStoreRecord">
>          <wsdl:input message="impl:getVectorOfMIDPRecordStoreRecordRequest" 
> name="getVectorOfMIDPRecordStoreRecordRequest"/>
>          <wsdl:output message="impl:getVectorOfMIDPRecordStoreRecordResponse" 
> name="getVectorOfMIDPRecordStoreRecordResponse"/>
>       </wsdl:operation>
>       <wsdl:operation name="getMIDPDataLenth">
>          <wsdl:input message="impl:getMIDPDataLenthRequest" 
> name="getMIDPDataLenthRequest"/>
>          <wsdl:output message="impl:getMIDPDataLenthResponse" 
> name="getMIDPDataLenthResponse"/>
>       </wsdl:operation>
>       <wsdl:operation name="getMIDPRecordCount">
>          <wsdl:input message="impl:getMIDPRecordCountRequest" 
> name="getMIDPRecordCountRequest"/>
>          <wsdl:output message="impl:getMIDPRecordCountResponse" 
> name="getMIDPRecordCountResponse"/>
>       </wsdl:operation>
>       <wsdl:operation name="login">
>          <wsdl:input message="impl:loginRequest" name="loginRequest"/>
>          <wsdl:output message="impl:loginResponse" name="loginResponse"/>
>       </wsdl:operation>
>       <wsdl:operation name="logout">
>          <wsdl:input message="impl:logoutRequest" name="logoutRequest"/>
>          <wsdl:output message="impl:logoutResponse" name="logoutResponse"/>
>       </wsdl:operation>
>       <wsdl:operation name="initSession">
>          <wsdl:input message="impl:initSessionRequest" 
> name="initSessionRequest"/>
>          <wsdl:output message="impl:initSessionResponse" 
> name="initSessionResponse"/>
>       </wsdl:operation>
>       <wsdl:operation name="setSessionTimeOut">
>          <wsdl:input message="impl:setSessionTimeOutRequest" 
> name="setSessionTimeOutRequest"/>
>          <wsdl:output message="impl:setSessionTimeOutResponse" 
> name="setSessionTimeOutResponse"/>
>       </wsdl:operation>
>       <wsdl:operation name="sendMail">
>          <wsdl:input message="impl:sendMailRequest" name="sendMailRequest"/>
>          <wsdl:output message="impl:sendMailResponse" 
> name="sendMailResponse"/>
>       </wsdl:operation>
>    </wsdl:portType>
>    <wsdl:binding name="servicesSoapBinding" 
> type="impl:SoapJMEProvisioningSession">
>       <wsdlsoap:binding style="document" 
> transport="http://schemas.xmlsoap.org/soap/http"/>
>       <wsdl:operation name="loadMIDPRecordStore">
>          <wsdlsoap:operation soapAction=""/>
>          <wsdl:input name="loadMIDPRecordStoreRequest">
>             <wsdlsoap:body use="literal"/>
>          </wsdl:input>
>          <wsdl:output name="loadMIDPRecordStoreResponse">
>             <wsdlsoap:body use="literal"/>
>          </wsdl:output>
>       </wsdl:operation>
>       <wsdl:operation name="getVectorOfMIDPRecordStoreRecord">
>          <wsdlsoap:operation soapAction=""/>
>          <wsdl:input name="getVectorOfMIDPRecordStoreRecordRequest">
>             <wsdlsoap:body use="literal"/>
>          </wsdl:input>
>          <wsdl:output name="getVectorOfMIDPRecordStoreRecordResponse">
>             <wsdlsoap:body use="literal"/>
>          </wsdl:output>
>       </wsdl:operation>
>       <wsdl:operation name="getMIDPDataLenth">
>          <wsdlsoap:operation soapAction=""/>
>          <wsdl:input name="getMIDPDataLenthRequest">
>             <wsdlsoap:body use="literal"/>
>          </wsdl:input>
>          <wsdl:output name="getMIDPDataLenthResponse">
>             <wsdlsoap:body use="literal"/>
>          </wsdl:output>
>       </wsdl:operation>
>       <wsdl:operation name="getMIDPRecordCount">
>          <wsdlsoap:operation soapAction=""/>
>          <wsdl:input name="getMIDPRecordCountRequest">
>             <wsdlsoap:body use="literal"/>
>          </wsdl:input>
>          <wsdl:output name="getMIDPRecordCountResponse">
>             <wsdlsoap:body use="literal"/>
>          </wsdl:output>
>       </wsdl:operation>
>       <wsdl:operation name="login">
>          <wsdlsoap:operation soapAction=""/>
>          <wsdl:input name="loginRequest">
>             <wsdlsoap:body use="literal"/>
>          </wsdl:input>
>          <wsdl:output name="loginResponse">
>             <wsdlsoap:body use="literal"/>
>          </wsdl:output>
>       </wsdl:operation>
>       <wsdl:operation name="logout">
>          <wsdlsoap:operation soapAction=""/>
>          <wsdl:input name="logoutRequest">
>             <wsdlsoap:body use="literal"/>
>          </wsdl:input>
>          <wsdl:output name="logoutResponse">
>             <wsdlsoap:body use="literal"/>
>          </wsdl:output>
>       </wsdl:operation>
>       <wsdl:operation name="initSession">
>          <wsdlsoap:operation soapAction=""/>
>          <wsdl:input name="initSessionRequest">
>             <wsdlsoap:body use="literal"/>
>          </wsdl:input>
>          <wsdl:output name="initSessionResponse">
>             <wsdlsoap:body use="literal"/>
>          </wsdl:output>
>       </wsdl:operation>
>       <wsdl:operation name="setSessionTimeOut">
>          <wsdlsoap:operation soapAction=""/>
>          <wsdl:input name="setSessionTimeOutRequest">
>             <wsdlsoap:body use="literal"/>
>          </wsdl:input>
>          <wsdl:output name="setSessionTimeOutResponse">
>             <wsdlsoap:body use="literal"/>
>          </wsdl:output>
>       </wsdl:operation>
>       <wsdl:operation name="sendMail">
>          <wsdlsoap:operation soapAction=""/>
>          <wsdl:input name="sendMailRequest">
>             <wsdlsoap:body use="literal"/>
>          </wsdl:input>
>          <wsdl:output name="sendMailResponse">
>             <wsdlsoap:body use="literal"/>
>          </wsdl:output>
>       </wsdl:operation>
>    </wsdl:binding>
>    <wsdl:service name="SoapJMEProvisioningSessionService">
>       <wsdl:port binding="impl:servicesSoapBinding" name="services">
>          <wsdlsoap:address 
> location="http://ppx-ps.enitab.fr:8080/jmeprovisioning/control/services"/>
>       </wsdl:port>
>    </wsdl:service>
> </wsdl:definitions>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to