Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-5352

Getting parameters values blank and null when using custom wsdl in axis2

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Invalid
    • Affects Version/s: 1.4.1
    • Fix Version/s: None
    • Component/s: wsdl
    • Labels:

      Description

      I am using axis2 for my web services creation. I want to use my own wsdl file instead of using generated wsdl file. When I am placing my own wsdl file in META-INF directory and deploying my web services they are deploying successfully. But the problem is when i try to test these web service using soapui sending null request to the webservice.

      Please see my wsdl file

      <?xml version="1.0" encoding="UTF-8" standalone="no"?>
      <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://genone"
      xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
      xmlns:xsd="http://www.w3.org/2001/XMLSchema"
      xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
      xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
      xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
      name="ScheduleService"
      targetNamespace="http://genone" xmlns:req="http://genone">
      <wsdl:types>
      <xsd:schema targetNamespace="http://genone">
      <xsd:element name="SendScheduleMessage">
      <xsd:complexType>
      <xsd:sequence>
      <xsd:element minOccurs="0" name="szMessage" type="xsd:string"/>
      <xsd:element minOccurs="0" name="szUserName" type="xsd:string"/>
      <xsd:element minOccurs="0" name="szPassword" type="xsd:string"/>
      </xsd:sequence>
      </xsd:complexType>
      </xsd:element>
      <xsd:element name="SendScheduleMessageResponse">
      <xsd:complexType>
      <xsd:sequence>
      <xsd:element minOccurs="0" name="return" type="xsd:string" />
      </xsd:sequence>
      </xsd:complexType>
      </xsd:element>
      </xsd:schema>

      </wsdl:types>
      <wsdl:message name="SendScheduleMessageRequest">
      <wsdl:part element="tns:SendScheduleMessage" name="parameters"/>
      </wsdl:message>
      <wsdl:message name="SendScheduleMessageResponse">
      <wsdl:part element="tns:SendScheduleMessageResponse" name="parameters"/>
      </wsdl:message>
      <wsdl:portType name="ScheduleService">
      <wsdl:operation name="SendScheduleMessage">
      <wsdl:input message="tns:SendScheduleMessageRequest"></wsdl:input>
      <wsdl:output message="tns:SendScheduleMessageResponse"></wsdl:output>
      </wsdl:operation>
      </wsdl:portType>
      <wsdl:binding name="ScheduleServiceSOAP" type="tns:ScheduleService">
      <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
      <wsdl:operation name="SendScheduleMessage">
      <soap:operation soapAction="http://genone/SendScheduleMessage"/>
      <wsdl:input>
      <soap:body use="literal"/>
      </wsdl:input>
      <wsdl:output>
      <soap:body use="literal"/>
      </wsdl:output>
      </wsdl:operation>
      </wsdl:binding>
      <wsdl:service name="ScheduleService">
      <wsdl:port binding="tns:ScheduleServiceSOAP" name="ScheduleServiceSOAP">
      <soap:address location="http://10.90.1.32/Genone/services/ScheduleService"/>
      </wsdl:port>
      </wsdl:service>
      </wsdl:definitions>

      Also see my services.xml

      <service name="ScheduleService">
      <description>
      GenerationOne Schedule Service
      </description>
      <parameter name="ServiceClass">genone.XMLReceiver</parameter>
      <parameter name="useOriginalwsdl">true</parameter>
      <parameter name="modifyUserWSDLPortAddress">false</parameter>
      <operation name="SendScheduleMessage">
      <messageReceiver class="org.apache.axis2.rpc.receivers.RPCMessageReceiver" />
      </operation>
      </service>

      Please suggest us

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              exsatheeshv satheesh
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 2m
                2m
                Remaining:
                Remaining Estimate - 2m
                2m
                Logged:
                Time Spent - Not Specified
                Not Specified