You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Patrick Quinn (JIRA)" <ax...@ws.apache.org> on 2005/08/01 13:25:49 UTC

[jira] Created: (AXIS-2156) Axis changes an element name in the original WSDL to something different in the server ?WSDL

Axis changes an element name in the original WSDL to something different in the server ?WSDL
--------------------------------------------------------------------------------------------

         Key: AXIS-2156
         URL: http://issues.apache.org/jira/browse/AXIS-2156
     Project: Apache Axis
        Type: Bug
  Components: WSDL processing  
    Versions: 1.2.1    
 Environment: Solaris 9, against Java version 1.4.2_05
    Reporter: Patrick Quinn


Axis changes an element name in the original WSDL to something different in the server ?WSDL :

ProvisioningTaskResponse -> ProvisioningTaskRequestOperationResponse


Here is the original WSDL (fragment):
 
       </xsd:element>
       <xsd:element name="ProvisioningTaskResponse">
         <xsd:complexType>
           <xsd:sequence>
             <xsd:element name="ProvisioningTaskReturn"  type="xsd:string"/>
           </xsd:sequence>
         </xsd:complexType>
       </xsd:element>
 
 
But after processing with WSDL2Java and deployment:
 
 http://<ipaddress>:8880/axis/services/ProvisioningTaskRequestPort?wsdl
 
       <element>
       <element name="ProvisioningTaskRequestOperationResponse">
         <complexType>
           <sequence>
             <element name="ProvisioningTaskReturn" type="xsd:string"/>
           </sequence>
         </complexType>
       </element>


The original WSDL and the generated deploy.wsdd are below:

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions 
  xmlns="http://schemas.xmlsoap.org/wsdl/" 
  xmlns:impl="urn:xml-soapadapter" 
  xmlns:intf="urn:xml-soapadapter" 
  xmlns:tns="urn:ProvidentProvisioningTNS" 
  xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
  xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
  xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" 
  targetNamespace="urn:ProvidentProvisioningTNS" 
  name="ProvidentProvisioning">
  <wsdl:types>
    <xsd:schema elementFormDefault="qualified" targetNamespace="urn:ProvidentProvisioningTNS">
      <xsd:element name="ProvisioningTaskRequestOperation">
        <xsd:complexType>
          <xsd:sequence>
            <xsd:element minOccurs="0" maxOccurs="1" name="REQUESTID" type="xsd:string"/>
            <xsd:element minOccurs="0" maxOccurs="1" name="SOTYPE" type="xsd:string"/>
            <xsd:element minOccurs="0" maxOccurs="1" name="PRIORITY" type="xsd:string"/>
            <xsd:element minOccurs="0" maxOccurs="1" name="RECOVERY" type="xsd:string"/>
            <xsd:element minOccurs="0" maxOccurs="1" name="XML_SO" type="xsd:string"/>
          </xsd:sequence>
        </xsd:complexType>
      </xsd:element>
      <xsd:element name="ProvisioningTaskResponse">
        <xsd:complexType>
          <xsd:sequence>
            <xsd:element name="ProvisioningTaskReturn" type="xsd:string"/>
          </xsd:sequence>
        </xsd:complexType>
      </xsd:element>
    </xsd:schema>
  </wsdl:types>
  <message name="ProvisioningTaskRequestMessage">
    <part name="parameter" element="tns:ProvisioningTaskRequestOperation"/>
  </message>
  <message name="ProvisioningTaskAckMessage">
    <part name="parameter" element="tns:ProvisioningTaskResponse"/>
  </message>
  <portType name="ProvisioningTaskRequestPortType">
    <operation name="ProvisioningTaskRequestOperation">
      <input message="tns:ProvisioningTaskRequestMessage"/>
      <output message="tns:ProvisioningTaskAckMessage"/>
    </operation>
  </portType>
  <binding name="ProvisioningTaskRequestSoapBinding"
type="tns:ProvisioningTaskRequestPortType">
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
    <operation name="ProvisioningTaskRequestOperation">
      <soap:operation soapAction="ProvidentProvisioningTNS/ProvisioningTaskRequestOperation"/>
      <input>
        <soap:body use="literal"/>
      </input>
      <output>
        <soap:body use="literal"/>
      </output>
    </operation>
  </binding>
  <service name="ProvisioningService">
    <documentation>Provident Provisioning Service</documentation>
    <port name="ProvisioningTaskRequestPort"
binding="tns:ProvisioningTaskRequestSoapBinding">
      <soap:address location="http://192.168.1.150:8880/axis/services/ProvidentProvisioning"/>
    </port>
  </service>
        <!--  message declns -->
        <!--  port type declns FINISHED -->
        <!--  binding declns FINISHED -->
        <!--  service decln  FINISHED  -->
</wsdl:definitions>


- deploy.wsdd -

<!-- Use this file to deploy some handlers/chains and services      -->
<!-- Two ways to do this:                                           -->
<!--   java org.apache.axis.client.AdminClient deploy.wsdd          -->
<!--      after the axis server is running                          -->
<!-- or                                                             -->
<!--   java org.apache.axis.utils.Admin client|server deploy.wsdd   -->
<!--      from the same directory that the Axis engine runs         -->

<deployment
    xmlns="http://xml.apache.org/axis/wsdd/"
    xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">

  <!-- Services from ProvisioningService WSDL service -->

  <service name="ProvisioningTaskRequestPort" provider="java:RPC" style="wrapped" use="literal">
      <parameter name="wsdlTargetNamespace" value="urn:ProvidentProvisioningTNS"/>
      <parameter name="wsdlServiceElement" value="ProvisioningService"/>
      <parameter name="schemaQualified" value="urn:ProvidentProvisioningTNS"/>
      <parameter name="wsdlServicePort" value="ProvisioningTaskRequestPort"/>
      <parameter name="className" value="ProvidentProvisioningTNS.ProvisioningTaskRequestSoapBindingSkeleton"/>
      <parameter name="wsdlPortType" value="ProvisioningTaskRequestPortType"/>
      <parameter name="typeMappingVersion" value="1.2"/>
      <parameter name="allowedMethods" value="*"/>

  </service>
</deployment>




-- 
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