I may have done my renaming wrongly, or missed a trick.

I have successfully developed and tested a service using Axis2 based on 
generation from our own wsdl.

For depolyment we needed to change the service name. To do this I:

1) Took a copy of the service.xml file generated from our wsdl.
2) Renamed the <service name="newname"> tag inside service.xml then used it to 
generate compile and jar the webservice.
3) Then changed oldname.aar to newname.aar
4) Run our JUnit tests on the new service successfully.

However, when we request newname?wsdl the returned wsdl is faulty.

Our original wsdl imported multiple files to define the schema:

<wsdl:types>
  <xs:schema>
    <xs:import namespace="http://www.ournamespace"; 
schemaLocation="BsSearchEstabsRQ.xsd"/>
  </xs:schema>
   ...
<wsdl:types>

When requested from the running service they became:

<wsdl:types>
  <xs:schema attributeFormDefault="unqualified" 
elementFormDefault="unqualified">
    <xs:import namespace="http://www.ournamespace"; 
schemaLocation="oldname?xsd=xsd0"/>
  </xs:schema>
   ...
<wsdl:types>

This was fine, but when requested from the renamed service they become:
 
<wsdl:types>
 <xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" 
targetNamespace="http://server.service.bs.org";>
   <xs:element name="searchEstabs">
     <xs:complexType>
       <xs:sequence>
         <xs:element minOccurs="0" name="searchEstabs" nillable="true" 
type="xs:anyType"/>
       </xs:sequence>
     </xs:complexType>
   </xs:element>
 </xs:schema>
   ...
</wsdl:types>

The import references are missing and the complexTypes generated in their 
place bear no resemblance.

Have I done my renaming wrongly, have I missed a trick, or is there a bug? Any 
comments or advice would be welcome.

Many thanks,
Pete.H.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to