You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Bhushan Bhangale <bb...@Lastminute.com> on 2005/12/16 15:21:44 UTC

Didn't find specified return QName

Hi,
 
I am getting following error -
 
Didn't find specified return QName
{http://xxxx/xWS}CheckAvailabilityResult!
 at org.apache.axis.client.Call.invoke(Call.java:2490)
 at org.apache.axis.client.Call.invoke(Call.java:2278)
 at org.apache.axis.client.Call.invoke(Call.java:1772)
 at
com.ctntours.ws.ctnWS.CtnWebServiceSoapStub.checkAvailability(Unknown
Source)
 at
com.lastminute.connectivity.messaging.hotels.CTNMessagesTest.processChec
kAvailability(CTNMessagesTest.java:112)
 at
com.lastminute.connectivity.messaging.hotels.CTNMessagesTest.testCTNMess
age(CTNMessagesTest.java:242)
 
I have written code like this -
 
ArrayOfCtnHotel result =
locator.getctnWebServiceSoap().checkAvailability(MASTER_AGENT_ID,
                    MASTER_AGENT_PASSWORD, SUB_AGENT_ID,
getRoomQuotes(), errorCodeHolder);
 
I converted wsdl to Java and got the above API which I used.
 
WSDL looks like this -
 
    <s:element name="CheckAvailability">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="MasterAgentID"
type="s:string" />
            <s:element minOccurs="0" maxOccurs="1"
name="MasterAgentPassword" type="s:string" />
            <s:element minOccurs="0" maxOccurs="1" name="SubAgentID"
type="s:string" />
            <s:element minOccurs="0" maxOccurs="1" name="rooms"
type="tns:ArrayOfCtnRoomQuote" />
            <s:element minOccurs="1" maxOccurs="1" name="Error"
type="tns:ErrorCode" />
          </s:sequence>
        </s:complexType>
      </s:element>
 
    <s:element name="CheckAvailabilityResponse">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1"
name="CheckAvailabilityResult" type="tns:ArrayOfCtnHotel" />
            <s:element minOccurs="1" maxOccurs="1" name="Error"
type="tns:ErrorCode" />
          </s:sequence>
        </s:complexType>
      </s:element>
 
  <wsdl:message name="CheckAvailabilitySoapIn">
    <wsdl:part name="parameters" element="tns:CheckAvailability" />
  </wsdl:message>
  <wsdl:message name="CheckAvailabilitySoapOut">
    <wsdl:part name="parameters" element="tns:CheckAvailabilityResponse"
/>
  </wsdl:message>
 
 
    <wsdl:operation name="CheckAvailability">
      <wsdl:input message="tns:CheckAvailabilitySoapIn" />
      <wsdl:output message="tns:CheckAvailabilitySoapOut" />
    </wsdl:operation>
 
    <wsdl:operation name="CheckAvailability">
      <soap:operation soapAction="http://xxxx/xWS/CheckAvailability
<http://ws.ctntours.com/ctnWS/CheckAvailability> " style="document" />
      <wsdl:input>
        <soap:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
 
Whats wrong I am doing? Any direction would be much appreciated.
 
I know that the service is written in C# and using java as client but
that shouldn't be any problem.
 
Thanks

Bhushan Bhangale Tech Team Lead Connectivity

address: 39 Victoria Street, London, SW1H 0EE 
tel: +44 (0)207 866 4305 mob: +44 (0)793 089 0610 fax: +44 (0)870 145
7802 

email: bbhangale@lastminute.com internet: http://www.lastminute.com

enjoy every lastminute.com <http://www.lastminute.com/> 

 
 
 

Bhushan Bhangale Tech Team Lead Connectivity

address: 39 Victoria Street, London, SW1H 0EE 
tel: +44 (0)207 866 4305 mob: +44 (0)793 089 0610 fax: +44 (0)870 145
7802 

email: bbhangale@lastminute.com internet: http://www.lastminute.com

  <http://www.lastminute.com/> 

 


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************