Hi,
We are trying to use the Docuemnt/literal style in the JBOSS/Axis environment 
and getting the following errors.
Could you please guide us if any thing is wrong.
1. Manually we created our own wsdl
2. Used WSCompile from sun to create all the server side and client side stubs
3. During the invocation of the service, it is complainning on the top level 
element.

14:12:47,546 ERROR [ServerEngine] Server error: AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Client
 faultSubcode:
 faultString: Invalid element in 
com.bluecanopy.concierge.webservices.TravelItineraryRQ - Verification
 faultActor:
 faultNode:
 faultDetail:
{http://xml.apache.org/axis/}stackTrace: org.xml.sax.SAXException: Invalid 
element in com.bluecanopy.concierge.webservices.TravelItineraryRQ - Verification
at 
org.jboss.axis.encoding.ser.BeanDeserializer.onStartChild(BeanDeserializer.java:455)
at 
org.jboss.axis.encoding.DeserializationContextImpl.startElement(DeserializationContextImpl.java:1168)
at org.jboss.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:244)
at 
org.jboss.axis.message.SOAPElementAxisImpl.publishToHandler(SOAPElementAxisImpl.java:1394)
at org.jboss.axis.message.RPCElement.deserialize(RPCElement.java:266)
at org.jboss.axis.message.RPCElement.getParams(RPCElement.java:402)
at 
org.jboss.axis.providers.java.RPCInvocation.prepareFromRequestEnvelope(RPCInvocation.java:235)
at 
org.jboss.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:103)
at org.jboss.axis.providers.java.JavaProvider.invoke(JavaProvider.java:358)
at 
org.jboss.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:73)
at org.jboss.axis.SimpleChain.doVisiting(SimpleChain.java:160)
at org.jboss.axis.SimpleChain.invoke(SimpleChain.java:123)
at org.jboss.axis.handlers.soap.SOAPService.invoke(SOAPService.java:560)
at 
org.jboss.webservice.server.ServerEngine.invokeInternal(ServerEngine.java:215)
at org.jboss.webservice.server.ServerEngine.invoke(ServerEngine.java:104)
at org.jboss.axis.transport.http.AxisServlet.doPost(AxisServlet.java:911)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at 
org.jboss.axis.transport.http.AxisServletBase.service(AxisServletBase.java:370)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
com.bluecanopy.commons.web.TransactionFilter.doHttpFilter(TransactionFilter.java:105)
at 
com.bluecanopy.commons.web.BaseHttpServletFilter.doFilter(BaseHttpServletFilter.java:62)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at 
org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:54)
at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:174)
at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663)
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at 
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Thread.java:595)

{http://xml.apache.org/axis/}isRuntimeException: true


Here is my soap request and response from the NetTool.

Request:
--------
<?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>


<PersonName xsi:type="xsd:string">personName
<Email xsi:type="xsd:string">[EMAIL PROTECTED]
<PhoneNumber xsi:type="xsd:string">1231231234

<AddressLine xsi:type="xsd:string">12355 Sunrise Valley Dr
<CityName xsi:type="xsd:string">Reston
<PostalCode xsi:type="xsd:short">0
<County xsi:type="xsd:string">Fairfax
<State xsi:type="xsd:string">VA
<Country xsi:type="xsd:string">USA


<Quantity xsi:type="xsd:byte">10
<Location xsi:type="xsd:string">location


</soapenv:Body>
</soapenv:Envelope>

Response:
---------
HTTP/1.1 500 Internal Server Error
Server: Apache-Coyote/1.1
X-Powered-By: Servlet 2.4; JBoss-4.0.4RC1 (build: CVSTag=JBoss_4_0_4_RC1 
date=200602071519)/Tomcat-5.5
Content-Type: text/xml;charset=utf-8
Date: Wed, 29 Mar 2006 18:08:06 GMT
Connection: close

<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>
  <soapenv:Fault>
   soapenv:Client
   Invalid element in com.bluecanopy.concierge.webservices.TravelItineraryRQ - 
Verification
   
  </soapenv:Fault>
 </soapenv:Body>
</soapenv:Envelope>


WSDLS
----

Concierge4piService.wsdl
-------------------------

<?xml version="1.0"?>
<definitions xmlns:tns="http://bluecanopy.com/concierge/service"; 
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; 
xmlns:defs="http://bluecanopy.com/concierge/definitions"; 
xmlns="http://schemas.xmlsoap.org/wsdl/"; 
targetNamespace="http://bluecanopy.com/concierge/service"; name="Concierge4pi">


<soap:binding style="document" 
transport="http://schemas.xmlsoap.org/soap/http"/>

<soap:operation/>

<soap:body use="literal"/>


<soap:body use="literal"/>



<soap:operation/>

<soap:body use="literal"/>


<soap:body use="literal"/>



<soap:operation/>

<soap:body use="literal"/>


<soap:body use="literal"/>





<soap:address location="http://localhost:8080/concierge/Concierge4PiService"/>






Concierge4pi.wsdl
-----------------
<?xml version="1.0"?>
<definitions xmlns:tns="http://bluecanopy.com/concierge/definitions"; 
xmlns:type="http://bluecanopy.com/concierge/types"; 
xmlns:ota="http://www.opentravel.org/OTA/2003/05"; 
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; 
xmlns:xs="http://www.w3.org/2001/XMLSchema"; 
xmlns="http://schemas.xmlsoap.org/wsdl/"; 
targetNamespace="http://bluecanopy.com/concierge/definitions"; 
name="Concierge4pi">

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"; 
targetNamespace="http://bluecanopy.com/concierge/types"; 
xmlns="http://bluecanopy.com/concierge/types"; elementFormDefault="qualified">
<xs:element name="AddressInfo">
<xs:complexType>
<xs:sequence>
<xs:element ref="AddressLine"/>
<xs:element ref="CityName"/>
<xs:element ref="PostalCode"/>
<xs:element ref="County"/>
<xs:element ref="State"/>
<xs:element ref="Country"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="AddressLine" type="xs:string"/>
<xs:element name="CityName" type="xs:string"/>
<xs:element name="Country" type="xs:string"/>
<xs:element name="County" type="xs:string"/>
<xs:element name="Email" type="xs:string"/>
<xs:element name="Location" type="xs:string"/>
<xs:element name="TravelItineraryRQ">
<xs:complexType>
<xs:sequence>
<xs:element ref="Verification"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="PersonName" type="xs:string"/>
<xs:element name="PhoneNumber" type="xs:string"/>
<xs:element name="PostalCode" type="xs:short"/>
<xs:element name="Quantity" type="xs:byte"/>
<xs:element name="ReservationTimeSpan">
<xs:complexType>
<xs:attribute name="End" use="required" type="xs:date"/>
<xs:attribute name="Start" use="required" type="xs:date"/>
</xs:complexType>
</xs:element>
<xs:element name="State" type="xs:string"/>
<xs:element name="Verification">
<xs:complexType>
<xs:sequence>
<xs:element ref="PersonName"/>
<xs:element ref="Email"/>
<xs:element ref="PhoneNumber"/>
<xs:element ref="AddressInfo"/>
<xs:element ref="ReservationTimeSpan"/>
<xs:element ref="Quantity"/>
<xs:element ref="Location"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Address">
<xs:complexType>
<xs:sequence>
<xs:element ref="AddressLine"/>
<xs:element ref="CityName"/>
<xs:element ref="PostalCode"/>
<xs:element ref="County"/>
<xs:element ref="StateProv"/>
<xs:element ref="CountryName"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="CountryName">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="String"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="CustomerInfo">
<xs:complexType>
<xs:sequence>
<xs:element ref="CustomerName"/>
<xs:element ref="Telephone"/>
<xs:element ref="Email"/>
<xs:element ref="Address"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="CustomerInfos">
<xs:complexType>
<xs:sequence>
<xs:element ref="CustomerInfo"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="CustomerName">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="bob jones"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Item">
<xs:complexType>
<xs:sequence>
<xs:element ref="Quantity"/>
<xs:element ref="Location"/>
</xs:sequence>
<xs:attribute name="Status" use="required">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="V"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
</xs:element>
<xs:element name="ItemPricing">
<xs:complexType mixed="true">
<xs:attribute name="Amount" use="required">
<xs:simpleType>
<xs:restriction base="xs:decimal">
<xs:enumeration value="480.00"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="CurrencyCode" use="required">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="USD"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
</xs:element>
<xs:element name="ItineraryInfo">
<xs:complexType>
<xs:sequence>
<xs:element ref="ReservationItems"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="ReservationItems">
<xs:complexType>
<xs:sequence>
<xs:element ref="Item"/>
<xs:element ref="ItemPricing"/>
</xs:sequence>
<xs:attribute name="ChronoOrdered" use="required">
<xs:simpleType>
<xs:restriction base="xs:boolean"/>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
</xs:element>
<xs:element name="StateProv">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="String"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Telephone">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="123-123-1234"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="TravelItinerary">
<xs:complexType>
<xs:sequence>
<xs:element ref="CustomerInfos"/>
<xs:element ref="ItineraryInfo"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="TravelItineraryRS">
<xs:complexType>
<xs:sequence>
<xs:element ref="TravelItinerary"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="CustomerInf">
<xs:complexType>
<xs:sequence>
<xs:element ref="CustomerName"/>
</xs:sequence>
<xs:attribute name="id" use="required">
<xs:simpleType>
<xs:restriction base="xs:byte">
<xs:enumeration value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
</xs:element>
<xs:element name="ItineraryHistoryRQ">
<xs:complexType>
<xs:sequence>
<xs:element ref="CustomerInf"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Itinerary">
<xs:complexType>
<xs:sequence>
<xs:element ref="ItineraryInfo"/>
</xs:sequence>
<xs:attribute name="id" use="required">
<xs:simpleType>
<xs:restriction base="xs:byte">
<xs:enumeration value="1"/>
<xs:enumeration value="2"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="name" use="required">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="test"/>
<xs:enumeration value="test1"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
</xs:element>
<xs:element name="ItineraryHistoryRS">
<xs:complexType>
<xs:sequence>
<xs:element ref="CustomerInfo"/>
<xs:element ref="Itinerary" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="AvailabilityRequestSegment">
<xs:complexType>
<xs:sequence>
<xs:element ref="StayDateRange"/>
<xs:element ref="RoomStayCandidate"/>
<xs:element ref="HotelSearchCriteria"/>
</xs:sequence>
<xs:attribute name="AvailReqType" use="required" type="xs:string"/>
</xs:complexType>
</xs:element>
<xs:element name="AvailabilityRequestSegments">
<xs:complexType>
<xs:sequence>
<xs:element ref="AvailabilityRequestSegment"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="HotelAvailRQ">
<xs:complexType>
<xs:sequence>
<xs:element ref="AvailabilityRequestSegments"/>
</xs:sequence>
<xs:attribute name="Version" use="required" type="xs:decimal"/>
</xs:complexType>
</xs:element>
<xs:element name="HotelSearchCriteria">
<xs:complexType>
<xs:attribute name="name" use="required" type="xs:string"/>
</xs:complexType>
</xs:element>
<xs:element name="RoomStayCandidate">
<xs:complexType>
<xs:attribute name="Quantity" use="required" type="xs:byte"/>
</xs:complexType>
</xs:element>
<xs:element name="StayDateRange">
<xs:complexType>
<xs:attribute name="Start" use="required" type="xs:date"/>
<xs:attribute name="End" use="required" type="xs:date"/>
</xs:complexType>
</xs:element>
<xs:element name="BasicPropertyInfo">
<xs:complexType>
<xs:attribute name="Name" use="required" type="xs:string"/>
</xs:complexType>
</xs:element>
<xs:element name="HotelAvailRS">
<xs:complexType>
<xs:sequence>
<xs:element ref="RoomStays"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="RoomStay">
<xs:complexType>
<xs:sequence>
<xs:element ref="Total"/>
<xs:element ref="BasicPropertyInfo"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="RoomStays">
<xs:complexType>
<xs:sequence>
<xs:element ref="RoomStay"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Total">
<xs:complexType mixed="true">
<xs:attribute name="Amount" use="required" type="xs:decimal"/>
<xs:attribute name="CurrencyCode" use="required" type="xs:string"/>
</xs:complexType>
</xs:element>
</xs:schema>


































  
   
  
  
   
  
 
 


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3933719#3933719

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3933719


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to