axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aleksandrs Hristoforovs (JIRA)" <>
Subject [jira] Created: (AXIS-1685) Invalid element name in response for document/literal services
Date Thu, 25 Nov 2004 17:50:20 GMT
Invalid element name in response for document/literal services

         Key: AXIS-1685
     Project: Axis
        Type: Bug
  Components: Serialization/Deserialization  
    Versions: 1.2RC1    
    Reporter: Aleksandrs Hristoforovs

I have created simple Java class

public class Test
  public String operation1 (String param)
     return  param;
compiled with debug info and deployed it as a Web Service

 <service name="TestDoc" provider="java:RPC" style="document" use="literal">
  <parameter name="className" value="Test"/>

Axis generates WSDL for this service, which contains such elements:

   <wsdl:message name="operation1Request">
      <wsdl:part element="tns1:param" name="param"/>
   <wsdl:message name="operation1Response">
      <wsdl:part element="impl:operation1Return" name="operation1Return"/>
   <wsdl:portType name="Test">
      <wsdl:operation name="operation1" parameterOrder="param">
         <wsdl:input message="impl:operation1Request" name="operation1Request"/>
         <wsdl:output message="impl:operation1Response" name="operation1Response"/>

So the request message I sent is:

<soapenv:Envelope xmlns:soapenv="" xmlns:xsd=""
		<doc:param xmlns:doc="http://DefaultNamespace"></doc:param>

The response is:

<soapenv:Envelope xmlns:soapenv="" xmlns:xsd=""
		<paramReturn xmlns="http://DefaultNamespace"></paramReturn>

The problem is that element name "paramReturn" does not correspond to WSDL. It must be "operation1Return".
Proxy, genrated by WSDL2Java, does not fail because does not check the actual element name.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
If you want more information on JIRA, or have a bug to report see:

View raw message