He posted that already, just look at his previous mail.

Thank you!
Deepal

Martin Gainty wrote:
> Can you post the ComplexType definition for TelephoneInfoType or
> relevant xsd that contains that definition..
>
> Thanks,
> Martin
> ______________________________________________
> Disclaimer and confidentiality note
> Everything in this e-mail and any attachments relates to the official
> business of Sender. This transmission is of a confidential nature and
> Sender does not endorse distribution to any party other than intended
> recipient. Sender does not necessarily endorse content contained
> within this transmission.
>
>
>
>
> > Date: Tue, 30 Dec 2008 16:07:05 -0500
> > From: deep...@gmail.com
> > To: axis-user@ws.apache.org
> > Subject: Re: Axis2/Java Nightly builds
> >
> > As I can see this has something to do with the code generation, so I
> > hope Amila will give you a better answer.
> >
> > Thank you!
> > Deepal
> > > Deepal, Forgot to mention, I debugged the code and found out that the
> > > exception is being thrown while processing the 2nd ContactNumber
> > > element The First ContactNumber element s being processed fine though.
> > >
> > > Many Thanks,
> > > Nateshan
> > >
> > > On Tue, Dec 30, 2008 at 1:33 PM, Deepal jayasinghe <deep...@gmail.com
> > > <mailto:deep...@gmail.com>> wrote:
> > >
> > > can you send us the full schema, for the part you have given I can
> > > exactly tell whether the response is correct for that I need to
> > > look at
> > > the schema type of TelephoneInfoType as well. because all the
> > > properties
> > > in that fields are in as attributes. So need to make sure that is the
> > > what the schema also says.
> > >
> > > Deepal
> > > > Dear Deepal,
> > > >
> > > > Thanks for the response. NO, The server side code is not Axis2.
> > > > However the server side code returns the soap envelope that conforms
> > > > to the Schema defined in the wsdl.
> > > >
> > > > This problem is related to sequences defined in the xsd.
> > > >
> > > >
> > > > Here is what I defined in the Response schema:
> > > > <xs:element name="ContactNumbers" minOccurs="0">
> > > > <xs:complexType>
> > > > <xs:sequence>
> > > > <xs:element name="ContactNumber"
> > > > type="TelephoneInfoType" minOccurs="0" maxOccurs="unbounded">
> > > > <xs:annotation>
> > > > <xs:documentation
> > > > xml:lang="en">Contact numbers of the hotel property. Examples are
> > > > telephone and fax numbers.</xs:documentation>
> > > > </xs:annotation>
> > > > </xs:element>
> > > > </xs:sequence>
> > > > </xs:complexType>
> > > >
> > > > Here is the Response:
> > > > <ContactNumbers>
> > > > <ContactNumber PhoneNumber="1-305-4469000" PhoneTechType="1"
> > > > PhoneUseType="5"/>
> > > > <ContactNumber PhoneNumber="1-305-4471189" PhoneTechType="3"
> > > > PhoneUseType="5"/>
> > > > </ContactNumbers>
> > > >
> > > > Exception:
> > > > org.apache.axis2.AxisFault:
> > > org.apache.axis2.databinding.ADBException:
> > > > Unexpected subelement ContactNumber
> > > > at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
> > > > at
> > > >
> > >
> org.opentravel.www.ota._2003._05.HotelAvailabilityStub.fromOM(HotelAvailabilityStub.java:363)
> > > >
> > >
> <http://www.ota._2003._05.hotelavailabilitystub.fromom%28hotelavailabilitystub.java:363/>
> > > >
> > > > at
> > > >
> > >
> org.opentravel.www.ota._2003._05.HotelAvailabilityStub.HotelAvailabilityOperation(HotelAvailabilityStub.java:191)
> > > >
> > >
> <http://www.ota._2003._05.hotelavailabilitystub.hotelavailabilityoperation%28hotelavailabilitystub.java:191/>
> > > >
> > > > at
> > > >
> > >
> com.ihg.ws.cxf.servlets.HotelAvailability.doGet(HotelAvailability.java:211)
> > > >
> > > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:114)
> > > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:91)
> > > > at
> > > >
> > >
> com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:103)
> > > >
> > > > at
> > > >
> > >
> com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:187)
> > > >
> > > > at
> > > >
> > >
> com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:266)
> > > >
> > > > at
> > > com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:270)
> > > > at com.caucho.server.port.TcpConnection.run(TcpConnection.java:678)
> > > > at com.caucho.util.ThreadPool$Item.runTasks(ThreadPool.java:721)
> > > > at com.caucho.util.ThreadPool$Item.run(ThreadPool.java:643)
> > > > at java.lang.Thread.run(Thread.java:595)
> > > >
> > > > Please note: Iam not posting all the schema information here as they
> > > > are huge.
> > > >
> > > >
> > > > Many Thanks,
> > > > nateshan
> > > >
> > > >
> > > > On Tue, Dec 30, 2008 at 1:08 PM, Deepal Jayasinghe
> > > > <dee...@opensource.lk <mailto:dee...@opensource.lk>
> > > <mailto:dee...@opensource.lk <mailto:dee...@opensource.lk>>> wrote:
> > > >
> > > > How about the server side code? is it also Axis2?
> > > >
> > > > You get this error when you receive a message which is not
> > > correct
> > > > according to its WSDL.
> > > >
> > > > Deepal
> > > > > Hi,
> > > > >
> > > > > I am new to Axis2. I am having some trouble with the Axis
> > > Client
> > > > code
> > > > > that was generated using Axis2 Release 1.4.1. However I wanted
> > > > to try
> > > > > with the nightly builds to see if the problem has been
> > > fixed as
> > > > I see
> > > > > so many bug reports on Axis2/ADB UnExpected Sublement errors.
> > > > >
> > > > > Please advice on where I can download Axis2/Java nightly
> > > builds, The
> > > > > Axis2 Website only points to a directory where only
> > > Axis2/C Nightly
> > > > > downloads are available.
> > > > >
> > > > > Many Thanks,
> > > > > Nateshan Soundarapandian
> > > > > Amutech Business Solutions Inc
> > > > > Mobile:(813) 579-0326
> > > > > Fax: (919) 882-1737
> > > >
> > > > --
> > > > Thank you!
> > > >
> > > >
> > > > http://blogs.deepal.org
> > > > http://deepal.org
> > > >
> > > >
> > >
> > >
> > > --
> > > Thank you!
> > >
> > >
> > > http://blogs.deepal.org
> > > http://deepal.org
> > >
> > >
> >
> >
> > --
> > Thank you!
> >
> >
> > http://blogs.deepal.org
> > http://deepal.org
> >
>
> ------------------------------------------------------------------------
> Send e-mail faster without improving your typing skills. Get your
> HotmailĀ® account.
> <http://windowslive.com/online/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_speed_122008>

-- 
Thank you!


http://blogs.deepal.org
http://deepal.org

Reply via email to