axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bhushan Bhangale" <bbhang...@Lastminute.com>
Subject RE: Didn't find specified return QName
Date Mon, 19 Dec 2005 11:02:25 GMT
The wsdl says this -
 
<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>
 
I get error this -
 
Didn't find specified return QName
{http://xxxx/xWS}CheckAvailabilityResult!

Its because the below response. But the wsdl says minOccurs="0"
maxOccurs="1" for CheckAvailabilityResult.
 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="
http://www.w3.org/2001/XMLSchema">
<soap:Body>
<CheckAvailabilityResponse xmlns="http://xxxxxx/xxxWS">
<Error>GeneralSystemError</Error>
</CheckAvailabilityResponse>
</soap:Body>
</soap:Envelope>
 
Thanks
Bhushan
 

________________________________

From: Bhushan Bhangale 
Sent: 19 December 2005 10:00
To: 'axis-user@ws.apache.org'
Subject: RE: Didn't find specified return QName


Anyone any idea?
 
I even tried latets 1.3 version still its same. Is the service response
not compatible with Axis?
 
Thanks
Bhushan
 

________________________________

From: Bhushan Bhangale 
Sent: 16 December 2005 15:05
To: 'axis-user@ws.apache.org'
Subject: RE: Didn't find specified return QName


yes its axis 2
 
POST /ctnWS/ctnWebService.asmx HTTP/1.0
Content-Type: text/xml; charset=utf-8
Accept: application/soap+xml, application/dime, multipart/related,
text/*
User-Agent: Axis/1.2alpha
 
Thanks
Bhushan
 

________________________________

From: Parikh,Pratik [mailto:Pratik.Parikh@cerner.com] 
Sent: 16 December 2005 15:02
To: axis-user@ws.apache.org
Subject: RE: Didn't find specified return QName


what axis version are you using??? are you using Axis2
 
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:58 AM
To: axis-user@ws.apache.org
Subject: RE: Didn't find specified return QName


Its really cool
 
The request is like this
 
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="
http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="
http://www.w3.org/2001/XMLSchema" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance">
 <soapenv:Body>
  <CheckAvailability xmlns="xxxxxxxxxxxxx <http://ws.ctntours.com/ctnWS>
">
   <MasterAgentID>LMC-UK-000</MasterAgentID>
   <MasterAgentPassword>KEH6875116</MasterAgentPassword>
   <SubAgentID>LMC-UK-000</SubAgentID>
   <rooms>
    <ctnRoomQuote>
     <HotelId>66</HotelId>
     <CheckInDate>2006-02-10T14:49:59.690Z</CheckInDate>
     <CheckOutDate>2006-02-10T14:49:59.690Z</CheckOutDate>
     <Party>
      <NumberOfAdults>2</NumberOfAdults>
     </Party>
     <QuoteFullStayOnly>true</QuoteFullStayOnly>
    </ctnRoomQuote>
    <ctnRoomQuote>
     <HotelId>95</HotelId>
     <CheckInDate>2006-02-10T14:49:59.690Z</CheckInDate>
     <CheckOutDate>2006-02-10T14:49:59.690Z</CheckOutDate>
     <Party>
      <NumberOfAdults>2</NumberOfAdults>
     </Party>
     <QuoteFullStayOnly>true</QuoteFullStayOnly>
    </ctnRoomQuote>
   </rooms>
   <Error>None</Error>
  </CheckAvailability>
 </soapenv:Body>
</soapenv:Envelope>
 
The response is - 
 
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="
http://www.w3.org/2001/XMLSchema">
<soap:Body>
    <CheckAvailabilityResponse xmlns="xxxxxxxxxxxx">
<http://ws.ctntours.com/ctnWS">> 
    <Error>InvalidDates</Error>
    </CheckAvailabilityResponse>
</soap:Body>
</soap:Envelope>
 
Leave the error apart as that can be fixed, but why Didn't find
specified return QName {http://xxxx/xWS}CheckAvailabilityResult!
 
Seems it looks for CheckAvailabilityResult rather than
CheckAvailabilityResponse.
 
Thanks
Bhushan
 

________________________________

From: Parikh,Pratik [mailto:Pratik.Parikh@cerner.com] 
Sent: 16 December 2005 14:41
To: axis-user@ws.apache.org
Subject: RE: Didn't find specified return QName


Hi Bhushan,
 
I am running into the same issue, the bug is in BeanDeSerializer. Is
this happening once the message it created. Can you look at the message
on tcpTrace, if you don't have tcpTrace i recommend getting it from
pocketsoap and try to use that as redirect that should give you a good
understanding of what is going on. I need some expert help on this
before i put the hack on it.
 
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:34 AM
To: axis-user@ws.apache.org
Subject: RE: Didn't find specified return QName


Ohh that would be bad if its a bug....
 
I can't change that as the service is written by some third party and
hosted at their end.
 
I am just writing a client to access it.
 
Thanks
Bhushan
 

________________________________

From: Parikh,Pratik [mailto:Pratik.Parikh@cerner.com] 
Sent: 16 December 2005 14:29
To: axis-user@ws.apache.org
Subject: RE: Didn't find specified return QName


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