axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Parikh,Pratik" <Pratik.Par...@cerner.com>
Subject RE: Didn't find specified return QName
Date Fri, 16 Dec 2005 14:29:27 GMT

Hi Bhushan,

    I think this is a bug, i am trying to find the root cause for it.
But you make your variable name start with not capital alphabets then
you will be fine.

    <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

Try this it should work for you... Hey please let me know if this work i
just want to know if what i think is right or not?

Thanks,
Parikh, Pratik | Software Engineer | Cerner Corporation |
(1)-816-201-1298 | pratik.parikh@cerner.com
<mailto:pratik.parikh@cerner.com>  | www.cerner.com
<http://www.cerner.com/> 


________________________________

From: Bhushan Bhangale [mailto:bbhangale@Lastminute.com]
Sent: Friday, December 16, 2005 8:22 AM
To: axis-user@ws.apache.org
Subject: 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
**********************************************************************



CONFIDENTIALITY NOTICE

This message and any included attachments
are from Cerner Corporation and are intended
only for the addressee. The information
contained in this message is confidential and
may constitute inside or non-public information
under international, federal, or state
securities laws. Unauthorized forwarding,
printing, copying, distribution, or use of such
information is strictly prohibited and may be
unlawful. If you are not the addressee, please
promptly delete this message and notify the
sender of the delivery error by e-mail or you
may call Cerner's corporate offices in Kansas
City, Missouri, U.S.A at (+1) (816)221-1024.
---------------------------------------- --
Mime
View raw message