cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Kulp <dk...@apache.org>
Subject Re: CXF-XMLBean Throwing Exception on Glassfish 2.1.1 PrivilegedActionException - "JAXB can't handle interfaces"
Date Wed, 15 Jun 2011 16:01:15 GMT

It looks like the JAXB databinding is being picked up instead of XMLBeans.   
I'm not sure why that would be occuring, but you could use the 
JaxWsProxyFactoryBean to create the client and make sure you set the 
databinding to XMLBeans.

Dan


On Tuesday, June 14, 2011 1:49:56 PM Registered Member wrote:
> Hi,
> I am creating a Webservice Consumer ( Client using WSDL )
> My Environment is as follows:
> Maven 2.X
> Glassfish 2.1.1
> JDK 1.6
> CXF 2.4.X
> <b>Maven Plugin</b>
> <raw>
>             <plugin>
>                 <groupId>org.apache.cxf</groupId>
>                 <artifactId>cxf-codegen-plugin</artifactId>
>                 <version>${cxf.version}</version>
>                 <executions>
>                     <execution>
>                         <id>sap-ws</id>
>                         <phase>generate-sources</phase>
>                         <configuration>
>                            
> <sourceRoot>${project.build.directory}/generated-sources/xmlbeans</sourceRo
> ot> <wsdlOptions>
>                                 <wsdlOption>
>                                    
> <wsdl>src/main/resources/webservices/wsdl/SapOrder.wsdl</wsdl> <extraargs>
>                                         <extraarg>-client</extraarg>
>                                        <extraarg>-db</extraarg>
>                                         <extraarg>xmlbeans</extraarg>
>                                     </extraargs>
>                                 </wsdlOption>
>                             </wsdlOptions>
>                             <verbose>true</verbose>
>                         </configuration>
>                         <goals>
>                             <goal>wsdl2java</goal>
>                         </goals>
>                     </execution>
>                 </executions>
>                 <dependencies>
>                     <dependency>
>                         <groupId>xerces</groupId>
>                         <artifactId>xercesImpl</artifactId>
>                         <version>2.8.1</version>
>                     </dependency>
>                     <dependency>
>                         <groupId>org.apache.cxf</groupId>
>                         <artifactId>cxf-rt-frontend-jaxws</artifactId>
>                         <version>${cxf.version}</version>
>                     </dependency>
>                     <dependency>
>                         <groupId>org.apache.cxf</groupId>
>                         <artifactId>cxf-rt-transports-http</artifactId>
>                         <version>${cxf.version}</version>
>                     </dependency>
>                     <dependency>
>                         <groupId>org.apache.cxf</groupId>
>                         <artifactId>cxf-rt-databinding-xmlbeans</artifactId>
> <version>${cxf.version}</version>
>                     </dependency>
>                 </dependencies>
>             </plugin>
> </raw>
> WSDL File
> <raw>
> <?xml version="1.0" encoding="utf-8"?>
> <!-- @editor-info:link autogen="false" source="" -->
> <definitions xmlns="http://schemas.xmlsoap.org/wsdl/"
> xmlns:conv="http://www.openuri.org/2002/04/soap/conversation/"
> xmlns:cw="http://www.openuri.org/2002/04/wsdl/conversation/"
> xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
> xmlns:jms="http://www.openuri.org/2002/04/wsdl/jms/"
> xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
> xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:s0="URLXXX"
> xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
> targetNamespace="URLXXX"> <types>
>     <s:schema elementFormDefault="qualified" targetNamespace="URLXXX"
> xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:pas="URLXXX"> <s:element
> name="getPreview">
>         <s:complexType>
>           <s:sequence>
>             <s:element ref="pas:sap-order-request"/>
>           </s:sequence>
>         </s:complexType>
>       </s:element>
>       <s:element name="getPreviewResponse">
>         <s:complexType>
>           <s:sequence>
>             <s:element ref="pas:sap-order-response"/>
>           </s:sequence>
>         </s:complexType>
>       </s:element>
>       <s:element name="getPreviewAndPrice">
>         <s:complexType>
>           <s:sequence>
>             <s:element ref="pas:sap-order-request"/>
>           </s:sequence>
>         </s:complexType>
>       </s:element>
>       <s:element name="getPreviewAndPriceResponse">
>         <s:complexType>
>           <s:sequence>
>             <s:element ref="pas:sap-order-response"/>
>           </s:sequence>
>         </s:complexType>
>       </s:element>
>       <s:element name="createOrder">
>         <s:complexType>
>           <s:sequence>
>             <s:element ref="pas:sap-order-request"/>
>           </s:sequence>
>         </s:complexType>
>       </s:element>
>       <s:element name="createOrderResponse">
>         <s:complexType>
>           <s:sequence>
>             <s:element ref="pas:sap-order-response"/>
>           </s:sequence>
>         </s:complexType>
>       </s:element>
>       <s:element name="getOrder">
>         <s:complexType>
>           <s:sequence>
>             <s:element ref="pas:get-order-details"/>
>           </s:sequence>
>         </s:complexType>
>       </s:element>
>       <s:element name="getOrderResponse">
>         <s:complexType>
>           <s:sequence>
>             <s:element ref="pas:sap-order-response"/>
>           </s:sequence>
>         </s:complexType>
>       </s:element>
>       <s:element name="getOrderList">
>         <s:complexType>
>           <s:sequence>
>             <s:element ref="pas:get-order-list-request"/>
>           </s:sequence>
>         </s:complexType>
>       </s:element>
>       <s:element name="getOrderListResponse">
>         <s:complexType>
>           <s:sequence>
>             <s:element ref="pas:sap-order-list-response"/>
>           </s:sequence>
>         </s:complexType>
>       </s:element>
>       <s:element name="cancelOrder">
>         <s:complexType>
>           <s:sequence>
>             <s:element ref="pas:cancel-ad"/>
>           </s:sequence>
>         </s:complexType>
>       </s:element>
>       <s:element name="cancelOrderResponse">
>         <s:complexType>
>           <s:sequence>
>             <s:element ref="pas:sap-order-response"/>
>           </s:sequence>
>         </s:complexType>
>       </s:element>
>       <s:element name="updateOrder">
>         <s:complexType>
>           <s:sequence>
>             <s:element ref="pas:sap-order-request"/>
>           </s:sequence>
>         </s:complexType>
>       </s:element>
>       <s:element name="updateOrderResponse">
>         <s:complexType>
>           <s:sequence>
>             <s:element ref="pas:sap-order-response"/>
>           </s:sequence>
>         </s:complexType>
>       </s:element>
>     </s:schema>
>     <!-- edited with XMLSpy v2006 rel. 3 sp1 (http://www.altova.com) by
> Victor Marquez (ZZ XX YY) --> <xs:schema targetNamespace="URLXXX"
> elementFormDefault="unqualified" xmlns:pas="URLXXX"
> xmlns:xs="http://www.w3.org/2001/XMLSchema"> <!-- definition of root
> element -->
>       <xs:element name="sap-order-request">
>         <xs:complexType>
>           <xs:sequence>
>             <xs:element name="order-no" minOccurs="0">
>               <xs:simpleType>
>                 <xs:restriction base="xs:string">
>                   <xs:maxLength value="10"/>
>                 </xs:restriction>
>               </xs:simpleType>
>             </xs:element>
>             <xs:element name="business-partner" minOccurs="0">
>               <xs:simpleType>
>                 <xs:restriction base="xs:string">
>                   <xs:maxLength value="10"/>
>                 </xs:restriction>
>               </xs:simpleType>
>             </xs:element>
>             <xs:element name="source-system" minOccurs="0">
>               <xs:simpleType>
>                 <xs:restriction base="xs:string">
>                   <xs:maxLength value="4"/>
>                 </xs:restriction>
>               </xs:simpleType>
>             </xs:element>
>             <xs:element name="ext-document-no" minOccurs="0">
>               <xs:simpleType>
>                 <xs:restriction base="xs:string">
>                   <xs:maxLength value="20"/>
>                 </xs:restriction>
>               </xs:simpleType>
>             </xs:element>
>             <xs:element name="po-number" minOccurs="0">
>               <xs:simpleType>
>                 <xs:restriction base="xs:string">
>                   <xs:maxLength value="20"/>
>                 </xs:restriction>
>               </xs:simpleType>
>             </xs:element>
>             <xs:element name="authorizer-name" minOccurs="0">
>               <xs:simpleType>
>                 <xs:restriction base="xs:string">
>                   <xs:maxLength value="35"/>
>                 </xs:restriction>
>               </xs:simpleType>
>             </xs:element>
>             <xs:element name="phone-number" minOccurs="0">
>               <xs:simpleType>
>                 <xs:restriction base="xs:string">
>                   <xs:maxLength value="16"/>
>                 </xs:restriction>
>               </xs:simpleType>
>             </xs:element>
>             <xs:element name="ad-proof-email" minOccurs="0">
>               <xs:simpleType>
>                 <xs:restriction base="xs:string">
>                   <xs:maxLength value="50"/>
>                 </xs:restriction>
>               </xs:simpleType>
>             </xs:element>
>             <xs:element name="item-ad" minOccurs="0" maxOccurs="unbounded">
>               <xs:complexType>
>                 <xs:sequence>
>                   <xs:element name="item-no" type="xs:positiveInteger"
> minOccurs="0"/> <xs:element name="item-category" minOccurs="0">
>                     <xs:simpleType>
>                       <xs:restriction base="xs:string">
>                         <xs:length value="4"/>
>                       </xs:restriction>
>                     </xs:simpleType>
>                   </xs:element>
>                   <xs:element name="booking-unit" minOccurs="0">
>                     <xs:simpleType>
>                       <xs:restriction base="xs:string">
>                         <xs:maxLength value="10"/>
>                       </xs:restriction>
>                     </xs:simpleType>
>                   </xs:element>
>                   <xs:element name="content-component" minOccurs="0">
>                     <xs:simpleType>
>                       <xs:restriction base="xs:string">
>                         <xs:maxLength value="8"/>
>                       </xs:restriction>
>                     </xs:simpleType>
>                   </xs:element>
>                   <xs:element name="advertiser" minOccurs="0">
>                     <xs:simpleType>
>                       <xs:restriction base="xs:string">
>                         <xs:maxLength value="10"/>
>                       </xs:restriction>
>                     </xs:simpleType>
>                   </xs:element>
>                   <xs:element name="price-group" minOccurs="0">
>                     <xs:simpleType>
>                       <xs:restriction base="xs:string">
>                         <xs:maxLength value="2"/>
>                       </xs:restriction>
>                     </xs:simpleType>
>                   </xs:element>
>                   <xs:choice>
>                     <xs:element name="package" minOccurs="0">
>                       <xs:complexType>
>                         <xs:sequence>
>                           <xs:element name="package-id">
>                             <xs:simpleType>
>                               <xs:restriction base="xs:string">
>                                 <xs:maxLength value="6"/>
>                               </xs:restriction>
>                             </xs:simpleType>
>                           </xs:element>
>                           <xs:element name="start-date" type="xs:date"/>
>                           <xs:element name="opt-out-online"
> type="xs:boolean" minOccurs="0"/> </xs:sequence>
>                       </xs:complexType>
>                     </xs:element>
>                     <xs:element name="non-package" minOccurs="0">
>                       <xs:complexType>
>                         <xs:sequence>
>                           <xs:element name="online-booking-unit"
> minOccurs="0" maxOccurs="1"> <xs:simpleType>
>                               <xs:restriction base="xs:string">
>                                 <xs:maxLength value="10"/>
>                               </xs:restriction>
>                             </xs:simpleType>
>                           </xs:element>
>                           <xs:element name="ad-schedule"
> maxOccurs="unbounded"> <xs:complexType>
>                               <xs:all>
>                                 <xs:element name="publication-date"
> type="xs:date"/> <xs:element name="basic-booking-unit" minOccurs="0">
> <xs:simpleType>
>                                     <xs:restriction base="xs:string">
>                                       <xs:maxLength value="10"/>
>                                     </xs:restriction>
>                                   </xs:simpleType>
>                                 </xs:element>
>                               </xs:all>
>                             </xs:complexType>
>                           </xs:element>
>                         </xs:sequence>
>                       </xs:complexType>
>                     </xs:element>
>                   </xs:choice>
>                   <xs:element name="ad-content" minOccurs="0">
>                     <xs:complexType>
>                       <xs:sequence>
>                         <xs:element name="exchange-format" minOccurs="0">
>                           <xs:complexType>
>                             <xs:sequence>
>                               <xs:element ref="pas:Ad"/>
>                             </xs:sequence>
>                           </xs:complexType>
>                         </xs:element>
>                         <xs:element name="template-id" minOccurs="0">
>                           <xs:simpleType>
>                             <xs:restriction base="xs:string">
>                               <xs:maxLength value="30"/>
>                             </xs:restriction>
>                           </xs:simpleType>
>                         </xs:element>
>                         <xs:element name="proof-required" minOccurs="0"
> type="xs:boolean"/> <xs:element name="panel-field" minOccurs="0"
> maxOccurs="unbounded"> <xs:complexType>
>                             <xs:sequence>
>                               <xs:element name="field-name">
>                                 <xs:simpleType>
>                                   <xs:restriction base="xs:string">
>                                     <xs:maxLength value="30"/>
>                                   </xs:restriction>
>                                 </xs:simpleType>
>                               </xs:element>
>                               <xs:element name="field-value"
> type="xs:string"/> </xs:sequence>
>                           </xs:complexType>
>                         </xs:element>
>                         <xs:element name="ad-graphic" minOccurs="0"
> maxOccurs="unbounded"> <xs:complexType>
>                             <xs:sequence>
>                               <xs:choice>
>                                 <xs:element name="dms-graphic"
> minOccurs="0"> <xs:complexType>
>                                     <xs:all>
>                                       <xs:element name="dms-id">
>                                         <xs:simpleType>
>                                           <xs:restriction base="xs:string">
>                                             <xs:maxLength value="32"/>
>                                           </xs:restriction>
>                                         </xs:simpleType>
>                                       </xs:element>
>                                       <xs:element name="bus-object-type">
>                                         <xs:simpleType>
>                                           <xs:restriction base="xs:string">
>                                             <xs:maxLength value="10"/>
>                                           </xs:restriction>
>                                         </xs:simpleType>
>                                       </xs:element>
>                                       <xs:element name="key1">
>                                         <xs:simpleType>
>                                           <xs:restriction base="xs:string">
>                                             <xs:maxLength value="32"/>
>                                           </xs:restriction>
>                                         </xs:simpleType>
>                                       </xs:element>
>                                       <xs:element name="key2">
>                                         <xs:simpleType>
>                                           <xs:restriction base="xs:string">
>                                             <xs:maxLength value="32"/>
>                                           </xs:restriction>
>                                         </xs:simpleType>
>                                       </xs:element>
>                                       <xs:element name="class">
>                                         <xs:simpleType>
>                                           <xs:restriction base="xs:string">
>                                             <xs:maxLength value="4"/>
>                                           </xs:restriction>
>                                         </xs:simpleType>
>                                       </xs:element>
>                                       <xs:element name="dms-object-type">
>                                         <xs:simpleType>
>                                           <xs:restriction base="xs:string">
>                                             <xs:maxLength value="128"/>
>                                           </xs:restriction>
>                                         </xs:simpleType>
>                                       </xs:element>
>                                       <xs:element name="dms-graphic-type">
>                                         <xs:simpleType>
>                                           <xs:restriction base="xs:string">
>                                             <xs:maxLength value="4"/>
>                                           </xs:restriction>
>                                         </xs:simpleType>
>                                       </xs:element>
>                                     </xs:all>
>                                   </xs:complexType>
>                                 </xs:element>
>                                 <xs:element name="binary-graphic"
> type="xs:base64Binary" minOccurs="0"/> </xs:choice>
>                               <xs:choice>
>                                 <xs:element name="graphic-id">
>                                   <xs:simpleType>
>                                     <xs:restriction
> base="xs:positiveInteger"> <xs:totalDigits value="6"/>
>                                     </xs:restriction>
>                                   </xs:simpleType>
>                                 </xs:element>
>                                 <xs:element name="image-block-id">
>                                   <xs:simpleType>
>                                     <xs:restriction
> base="xs:positiveInteger"> <xs:totalDigits value="6"/>
>                                     </xs:restriction>
>                                   </xs:simpleType>
>                                 </xs:element>
>                               </xs:choice>
>                             </xs:sequence>
>                           </xs:complexType>
>                         </xs:element>
>                         <xs:element name="camera-code" type="xs:boolean"
> minOccurs="0"/> </xs:sequence>
>                     </xs:complexType>
>                   </xs:element>
>                 </xs:sequence>
>               </xs:complexType>
>             </xs:element>
>             <xs:element name="credit-card" minOccurs="0">
>               <xs:complexType>
>                 <xs:all>
>                   <xs:element name="card-type">
>                     <xs:simpleType>
>                       <xs:restriction base="xs:string">
>                         <xs:maxLength value="4"/>
>                       </xs:restriction>
>                     </xs:simpleType>
>                   </xs:element>
>                   <xs:element name="card-number">
>                     <xs:simpleType>
>                       <xs:restriction base="xs:string">
>                         <xs:maxLength value="25"/>
>                       </xs:restriction>
>                     </xs:simpleType>
>                   </xs:element>
>                   <xs:element name="card-valid-to" type="xs:date"/>
>                   <xs:element name="card-name">
>                     <xs:simpleType>
>                       <xs:restriction base="xs:string">
>                         <xs:maxLength value="40"/>
>                       </xs:restriction>
>                     </xs:simpleType>
>                   </xs:element>
>                   <xs:element name="card-cvv">
>                     <xs:simpleType>
>                       <xs:restriction base="xs:string">
>                         <xs:maxLength value="6"/>
>                       </xs:restriction>
>                     </xs:simpleType>
>                   </xs:element>
>                 </xs:all>
>               </xs:complexType>
>             </xs:element>
>           </xs:sequence>
>         </xs:complexType>
>       </xs:element>
>     </xs:schema>
>         <!-- edited with XMLSpy v2006 rel. 3 sp1 (http://www.altova.com) by
> Victor Marquez (ZZ XX YY) --> <xs:schema targetNamespace="URLXXX"
> elementFormDefault="unqualified" xmlns:pas="URLXXX"
> xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element
> name="sap-order-response">
>         <xs:complexType>
>           <xs:sequence>
>             <xs:element ref="pas:sap-order"/>
>             <xs:element ref="pas:sap-return"/>
>           </xs:sequence>
>         </xs:complexType>
>       </xs:element>
>     </xs:schema>
>         <!-- edited with XMLSpy v2006 rel. 3 sp1 (http://www.altova.com) by
> Victor Marquez (ZZ XX YY) --> <xs:schema targetNamespace="URLXXX"
> elementFormDefault="unqualified" xmlns:pas="URLXXX"
> xmlns:xs="http://www.w3.org/2001/XMLSchema"> <!-- definition of root
> element -->
>       <xs:element name="get-order-details">
>         <xs:complexType>
>           <xs:sequence>
>             <xs:element name="order-no">
>               <xs:simpleType>
>                 <xs:restriction base="xs:string">
>                   <xs:maxLength value="10"/>
>                 </xs:restriction>
>               </xs:simpleType>
>             </xs:element>
>             <xs:element name="get-content" type="xs:boolean" minOccurs="0"/>
> <xs:element name="get-preview" type="xs:boolean" minOccurs="0"/>
> </xs:sequence>
>         </xs:complexType>
>       </xs:element>
>     </xs:schema>
>         <!-- edited with XMLSpy v2006 rel. 3 sp1 (http://www.altova.com) by
> Victor Marquez (ZZ XX YY) --> <xs:schema targetNamespace="URLXXX"
> elementFormDefault="unqualified" xmlns:pas="URLXXX"
> xmlns:xs="http://www.w3.org/2001/XMLSchema"> <!-- definition of root
> element -->
>       <xs:element name="get-order-list-request">
>         <xs:complexType>
>           <xs:all>
>             <xs:element name="business-partner">
>               <xs:simpleType>
>                 <xs:restriction base="xs:string">
>                   <xs:maxLength value="10"/>
>                 </xs:restriction>
>               </xs:simpleType>
>             </xs:element>
>             <xs:element name="start-date" type="xs:date" minOccurs="0"/>
>             <xs:element name="end-date" type="xs:date" minOccurs="0"/>
>             <xs:element name="get-content" type="xs:boolean" minOccurs="0"/>
> <xs:element name="get-preview" type="xs:boolean" minOccurs="0"/>
> <xs:element name="get-graphics" type="xs:boolean" minOccurs="0"/>
> <xs:element name="get-exchange-format" type="xs:boolean" minOccurs="0"/>
> </xs:all>
>         </xs:complexType>
>       </xs:element>
>     </xs:schema>
>         <!-- edited with XMLSpy v2006 rel. 3 sp1 (http://www.altova.com) by
> Victor Marquez (ZZ XX YY) --> <xs:schema targetNamespace="URLXXX"
> elementFormDefault="unqualified" xmlns:pas="URLXXX"
> xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element
> name="sap-order-list-response">
>         <xs:annotation>
>           <xs:documentation>Sales Documents Selected</xs:documentation>
>         </xs:annotation>
>         <xs:complexType>
>           <xs:sequence>
>             <xs:element ref="pas:sap-order" minOccurs="0"
> maxOccurs="unbounded"/> <xs:element ref="pas:sap-return"/>
>           </xs:sequence>
>         </xs:complexType>
>       </xs:element>
>     </xs:schema>
>         <!-- edited with XMLSpy v2006 rel. 3 sp1 (http://www.altova.com) by
> Victor Marquez (ZZ XX YY) --> <xs:schema targetNamespace="URLXXX"
> elementFormDefault="unqualified" xmlns:pas="URLXXX"
> xmlns:xs="http://www.w3.org/2001/XMLSchema"> <!-- definition of root
> element -->
>       <xs:element name="cancel-ad">
>         <xs:complexType>
>           <xs:sequence>
>             <xs:element name="order-no">
>               <xs:simpleType>
>                 <xs:restriction base="xs:string">
>                   <xs:maxLength value="10"/>
>                 </xs:restriction>
>               </xs:simpleType>
>             </xs:element>
>             <xs:element name="cancellation-reason"
> type="xs:positiveInteger"/> <xs:element name="item" maxOccurs="unbounded">
>               <xs:complexType>
>                 <xs:sequence>
>                   <xs:element name="item-no" type="xs:positiveInteger"/>
>                   <xs:element name="schedule-line" minOccurs="0"
> maxOccurs="unbounded"> <xs:complexType>
>                       <xs:all>
>                         <xs:element name="publication-date" type="xs:date"/>
> <xs:element name="basic-booking-unit">
>                           <xs:simpleType>
>                             <xs:restriction base="xs:string">
>                               <xs:maxLength value="10"/>
>                             </xs:restriction>
>                           </xs:simpleType>
>                         </xs:element>
>                         <xs:element name="sub-item-no">
>                           <xs:simpleType>
>                             <xs:restriction base="xs:string">
>                               <xs:maxLength value="4"/>
>                             </xs:restriction>
>                           </xs:simpleType>
>                         </xs:element>
>                       </xs:all>
>                     </xs:complexType>
>                   </xs:element>
>                 </xs:sequence>
>               </xs:complexType>
>             </xs:element>
>           </xs:sequence>
>         </xs:complexType>
>       </xs:element>
>     </xs:schema>
>         <!-- edited with XMLSPY v2004 rel. 3 U (http://www.xmlspy.com) by
> Mr. Thorsten Bruckmeier (SAP AG) --> <!-- author:     Thorsten Bruckmeier,
> Thomas Scherzinger  -->
>     <xs:schema targetNamespace="URLXXX" xmlns:pas="URLXXX"
> xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:attributeGroup
> name="value">
>         <xs:attribute name="value" use="required"/>
>       </xs:attributeGroup>
>       <xs:element name="Ad">
>         <xs:complexType>
>           <xs:sequence minOccurs="0" maxOccurs="unbounded">
>             <xs:element ref="pas:Border" minOccurs="0"/>
>             <xs:element ref="pas:TextBlock" maxOccurs="unbounded"/>
>           </xs:sequence>
>           <xs:attributeGroup ref="pas:attlist.Ad"/>
>         </xs:complexType>
>       </xs:element>
>       <xs:attributeGroup name="attlist.Ad">
>         <xs:attribute name="importScenarioId"/>
>         <xs:attribute name="unit" use="required">
>           <xs:simpleType>
>             <xs:restriction base="xs:token">
>               <xs:enumeration value="MM"/>
>               <xs:enumeration value="IN"/>
>               <xs:enumeration value="DD"/>
>               <xs:enumeration value="PCS"/>
>               <xs:enumeration value="PTS"/>
>             </xs:restriction>
>           </xs:simpleType>
>         </xs:attribute>
>         <xs:attribute name="styleId"/>
>         <xs:attribute name="backgroundColor"/>
>         <xs:attribute name="width"/>
>       </xs:attributeGroup>
>       <xs:element name="Border">
>         <xs:complexType>
>           <xs:sequence>
>             <xs:element ref="pas:Graphic" minOccurs="0"/>
>           </xs:sequence>
>           <xs:attributeGroup ref="pas:attlist.Border"/>
>         </xs:complexType>
>       </xs:element>
>       <xs:attributeGroup name="attlist.Border">
>         <xs:attribute name="left">
>           <xs:simpleType>
>             <xs:restriction base="xs:token">
>               <xs:enumeration value="true"/>
>               <xs:enumeration value="false"/>
>             </xs:restriction>
>           </xs:simpleType>
>         </xs:attribute>
>         <xs:attribute name="right">
>           <xs:simpleType>
>             <xs:restriction base="xs:token">
>               <xs:enumeration value="true"/>
>               <xs:enumeration value="false"/>
>             </xs:restriction>
>           </xs:simpleType>
>         </xs:attribute>
>         <xs:attribute name="top">
>           <xs:simpleType>
>             <xs:restriction base="xs:token">
>               <xs:enumeration value="true"/>
>               <xs:enumeration value="false"/>
>             </xs:restriction>
>           </xs:simpleType>
>         </xs:attribute>
>         <xs:attribute name="bottom">
>           <xs:simpleType>
>             <xs:restriction base="xs:token">
>               <xs:enumeration value="true"/>
>               <xs:enumeration value="false"/>
>             </xs:restriction>
>           </xs:simpleType>
>         </xs:attribute>
>         <xs:attribute name="color"/>
>         <xs:attribute name="borderTypeID"/>
>         <xs:attribute name="width"/>
>       </xs:attributeGroup>
>       <xs:element name="TextBlock">
>         <xs:complexType>
>           <xs:sequence>
>             <xs:element ref="pas:Paragraph" maxOccurs="unbounded"/>
>           </xs:sequence>
>           <xs:attributeGroup ref="pas:attlist.TextBlock"/>
>         </xs:complexType>
>       </xs:element>
>       <xs:attributeGroup name="attlist.TextBlock">
>         <xs:attribute name="id" use="required"/>
>         <xs:attribute name="rowNumber"/>
>         <xs:attribute name="relativeWidth"/>
>       </xs:attributeGroup>
>       <xs:element name="Paragraph">
>         <xs:complexType>
>           <xs:sequence minOccurs="0" maxOccurs="unbounded">
>             <xs:element ref="pas:FontFamily" minOccurs="0"
> maxOccurs="unbounded"/> <xs:element ref="pas:FontSize" minOccurs="0"
> maxOccurs="unbounded"/> <xs:element ref="pas:Bold" minOccurs="0"
> maxOccurs="unbounded"/> <xs:element ref="pas:Italic" minOccurs="0"
> maxOccurs="unbounded"/> <xs:element ref="pas:ExtraBold" minOccurs="0"
> maxOccurs="unbounded"/> <xs:element ref="pas:TabStop" minOccurs="0"
> maxOccurs="unbounded"/> <xs:element ref="pas:Underline" minOccurs="0"
> maxOccurs="unbounded"/> <xs:element ref="pas:FontColor" minOccurs="0"
> maxOccurs="unbounded"/> <xs:element ref="pas:Text" minOccurs="0"
> maxOccurs="unbounded"/> <xs:element ref="pas:SoftLineBreak" minOccurs="0"
> maxOccurs="unbounded"/> <xs:element ref="pas:ForceLineBreak" minOccurs="0"
> maxOccurs="unbounded"/> <xs:element ref="pas:Graphic" minOccurs="0"
> maxOccurs="unbounded"/> <xs:element ref="pas:Bullet" minOccurs="0"
> maxOccurs="unbounded"/> <xs:element ref="pas:LineIndent" minOccurs="0"
> maxOccurs="unbounded"/> <xs:element ref="pas:LineEnd" minOccurs="0"
> maxOccurs="unbounded"/> </xs:sequence>
>           <xs:attributeGroup ref="pas:attlist.Paragraph"/>
>         </xs:complexType>
>       </xs:element>
>       <xs:attributeGroup name="attlist.Paragraph">
>         <xs:attribute name="lineSpacing"/>
>         <xs:attribute name="tracking"/>
>         <xs:attribute name="alignment" use="required">
>           <xs:simpleType>
>             <xs:restriction base="xs:token">
>               <xs:enumeration value="left"/>
>               <xs:enumeration value="right"/>
>               <xs:enumeration value="center"/>
>               <xs:enumeration value="justified"/>
>               <xs:enumeration value="forceJustified"/>
>             </xs:restriction>
>           </xs:simpleType>
>         </xs:attribute>
>         <xs:attribute name="leftIndent"/>
>         <xs:attribute name="rightIndent"/>
>         <xs:attribute name="firstLineIndent"/>
>         <xs:attribute name="implicit" default="false">
>           <xs:simpleType>
>             <xs:restriction base="xs:token">
>               <xs:enumeration value="true"/>
>               <xs:enumeration value="false"/>
>             </xs:restriction>
>           </xs:simpleType>
>         </xs:attribute>
>         <xs:attribute name="paragraphColor"/>
>         <xs:attribute name="horizontalScaling"/>
>         <xs:attribute name="lineSpacingBetweenLines" default="false">
>           <xs:simpleType>
>             <xs:restriction base="xs:token">
>               <xs:enumeration value="true"/>
>               <xs:enumeration value="false"/>
>             </xs:restriction>
>           </xs:simpleType>
>         </xs:attribute>
>         <xs:attribute name="paragraphBullet">
>           <xs:simpleType>
>             <xs:restriction base="xs:token">
>               <xs:enumeration value="true"/>
>               <xs:enumeration value="false"/>
>             </xs:restriction>
>           </xs:simpleType>
>         </xs:attribute>
>       </xs:attributeGroup>
>       <xs:element name="FontFamily">
>         <xs:complexType>
>           <xs:attributeGroup ref="pas:attlist.FontFamily"/>
>         </xs:complexType>
>       </xs:element>
>       <xs:attributeGroup name="attlist.FontFamily">
>         <xs:attributeGroup ref="pas:value"/>
>       </xs:attributeGroup>
>       <xs:element name="FontSize">
>         <xs:complexType>
>           <xs:attributeGroup ref="pas:attlist.FontSize"/>
>         </xs:complexType>
>       </xs:element>
>       <xs:attributeGroup name="attlist.FontSize">
>         <xs:attributeGroup ref="pas:value"/>
>       </xs:attributeGroup>
>       <xs:element name="Bold">
>         <xs:complexType>
>           <xs:attributeGroup ref="pas:attlist.Bold"/>
>         </xs:complexType>
>       </xs:element>
>       <xs:attributeGroup name="attlist.Bold">
>         <xs:attribute name="value" default="false">
>           <xs:simpleType>
>             <xs:restriction base="xs:token">
>               <xs:enumeration value="true"/>
>               <xs:enumeration value="false"/>
>             </xs:restriction>
>           </xs:simpleType>
>         </xs:attribute>
>       </xs:attributeGroup>
>       <xs:element name="ExtraBold">
>         <xs:complexType>
>           <xs:attributeGroup ref="pas:attlist.ExtraBold"/>
>         </xs:complexType>
>       </xs:element>
>       <xs:attributeGroup name="attlist.ExtraBold">
>         <xs:attribute name="value" default="false">
>           <xs:simpleType>
>             <xs:restriction base="xs:token">
>               <xs:enumeration value="true"/>
>               <xs:enumeration value="false"/>
>             </xs:restriction>
>           </xs:simpleType>
>         </xs:attribute>
>       </xs:attributeGroup>
>       <xs:element name="Italic">
>         <xs:complexType>
>           <xs:attributeGroup ref="pas:attlist.Italic"/>
>         </xs:complexType>
>       </xs:element>
>       <xs:attributeGroup name="attlist.Italic">
>         <xs:attribute name="value" default="false">
>           <xs:simpleType>
>             <xs:restriction base="xs:token">
>               <xs:enumeration value="true"/>
>               <xs:enumeration value="false"/>
>             </xs:restriction>
>           </xs:simpleType>
>         </xs:attribute>
>       </xs:attributeGroup>
>       <xs:element name="Underline">
>         <xs:complexType>
>           <xs:attributeGroup ref="pas:attlist.Underline"/>
>         </xs:complexType>
>       </xs:element>
>       <xs:attributeGroup name="attlist.Underline">
>         <xs:attribute name="value" default="false">
>           <xs:simpleType>
>             <xs:restriction base="xs:token">
>               <xs:enumeration value="true"/>
>               <xs:enumeration value="false"/>
>             </xs:restriction>
>           </xs:simpleType>
>         </xs:attribute>
>       </xs:attributeGroup>
>       <xs:element name="FontColor">
>         <xs:complexType>
>           <xs:attributeGroup ref="pas:attlist.FontColor"/>
>         </xs:complexType>
>       </xs:element>
>       <xs:attributeGroup name="attlist.FontColor">
>         <xs:attributeGroup ref="pas:value"/>
>       </xs:attributeGroup>
>       <xs:element name="Text">
>         <xs:complexType>
>           <xs:attributeGroup ref="pas:attlist.Text"/>
>         </xs:complexType>
>       </xs:element>
>       <xs:attributeGroup name="attlist.Text">
>         <xs:attributeGroup ref="pas:value"/>
>       </xs:attributeGroup>
>       <xs:element name="SoftLineBreak">
>         <xs:complexType/>
>       </xs:element>
>       <xs:element name="LineEnd">
>         <xs:complexType/>
>       </xs:element>
>       <xs:element name="ForceLineBreak">
>         <xs:complexType/>
>       </xs:element>
>       <xs:element name="Graphic">
>         <xs:complexType mixed="true">
>           <xs:attributeGroup ref="pas:attlist.Graphic"/>
>         </xs:complexType>
>       </xs:element>
>       <xs:attributeGroup name="attlist.Graphic">
>         <xs:attribute name="id"/>
>         <xs:attribute name="imageType"/>
>         <xs:attribute name="dmsName"/>
>         <xs:attribute name="dmsDescription"/>
>         <xs:attribute name="artworkType"/>
>         <xs:attribute name="width"/>
>         <xs:attribute name="height"/>
>         <xs:attribute name="origSizeX"/>
>         <xs:attribute name="origSizeY"/>
>         <xs:attribute name="dmsClass"/>
>         <xs:attribute name="dmsId"/>
>         <xs:attribute name="dmsAliasName"/>
>         <xs:attribute name="dmsObjType"/>
>         <xs:attribute name="businessObjectKey1"/>
>         <xs:attribute name="businessObjectKey2"/>
>         <xs:attribute name="busObjectType"/>
>         <xs:attribute name="relativePosition"/>
>         <xs:attribute name="positionX"/>
>         <xs:attribute name="positionY"/>
>         <xs:attribute name="fileUrl"/>
>         <xs:attribute name="wrapping" default="false">
>           <xs:simpleType>
>             <xs:restriction base="xs:token">
>               <xs:enumeration value="true"/>
>               <xs:enumeration value="false"/>
>             </xs:restriction>
>           </xs:simpleType>
>         </xs:attribute>
>         <xs:attribute name="staticPosition" default="false">
>           <xs:simpleType>
>             <xs:restriction base="xs:token">
>               <xs:enumeration value="true"/>
>               <xs:enumeration value="false"/>
>             </xs:restriction>
>           </xs:simpleType>
>         </xs:attribute>
>         <xs:attribute name="blackAndWhite" default="false">
>           <xs:simpleType>
>             <xs:restriction base="xs:token">
>               <xs:enumeration value="true"/>
>               <xs:enumeration value="false"/>
>             </xs:restriction>
>           </xs:simpleType>
>         </xs:attribute>
>         <xs:attribute name="encoding" default="base64">
>           <xs:simpleType>
>             <xs:restriction base="xs:token">
>               <xs:enumeration value="base64"/>
>             </xs:restriction>
>           </xs:simpleType>
>         </xs:attribute>
>       </xs:attributeGroup>
>       <xs:element name="Bullet">
>         <xs:complexType>
>           <xs:attributeGroup ref="pas:attlist.Bullet"/>
>         </xs:complexType>
>       </xs:element>
>       <xs:attributeGroup name="attlist.Bullet">
>         <xs:attribute name="bulletID" use="required"/>
>       </xs:attributeGroup>
>       <xs:element name="TabStop">
>         <xs:complexType>
>           <xs:attributeGroup ref="pas:attlist.TabStop"/>
>         </xs:complexType>
>       </xs:element>
>       <xs:attributeGroup name="attlist.TabStop">
>         <xs:attribute name="leaderID"/>
>         <xs:attribute name="position"/>
>         <xs:attribute name="alignment" use="required">
>           <xs:simpleType>
>             <xs:restriction base="xs:token">
>               <xs:enumeration value="left"/>
>               <xs:enumeration value="center"/>
>               <xs:enumeration value="right"/>
>             </xs:restriction>
>           </xs:simpleType>
>         </xs:attribute>
>       </xs:attributeGroup>
>       <xs:element name="LineIndent">
>         <xs:complexType>
>           <xs:attributeGroup ref="pas:attlist.LineIndent"/>
>         </xs:complexType>
>       </xs:element>
>       <xs:attributeGroup name="attlist.LineIndent">
>         <xs:attribute name="alignment" use="required">
>           <xs:simpleType>
>             <xs:restriction base="xs:token">
>               <xs:enumeration value="left"/>
>               <xs:enumeration value="right"/>
>             </xs:restriction>
>           </xs:simpleType>
>         </xs:attribute>
>         <xs:attribute name="width" use="required"/>
>       </xs:attributeGroup>
>     </xs:schema>
>         <!-- edited with XMLSpy v2006 rel. 3 sp1 (http://www.altova.com) by
> Victor Marquez (ZZ XX YY) --> <xs:schema targetNamespace="URLXXX"
> elementFormDefault="unqualified" xmlns:pas="URLXXX"
> xmlns:xs="http://www.w3.org/2001/XMLSchema"> <!-- definition of root
> element -->
>       <xs:element name="sap-order">
>         <xs:complexType>
>           <xs:sequence>
>             <xs:element name="order-no">
>               <xs:simpleType>
>                 <xs:restriction base="xs:string">
>                   <xs:maxLength value="10"/>
>                 </xs:restriction>
>               </xs:simpleType>
>             </xs:element>
>             <xs:element name="order-editable" type="xs:boolean"
> minOccurs="0"/> <xs:element name="business-partner">
>               <xs:simpleType>
>                 <xs:restriction base="xs:string">
>                   <xs:maxLength value="10"/>
>                 </xs:restriction>
>               </xs:simpleType>
>             </xs:element>
>             <xs:element name="item-ad" minOccurs="0" maxOccurs="unbounded">
>               <xs:complexType>
>                 <xs:sequence>
>                   <xs:element name="item-no" type="xs:positiveInteger"/>
>                   <xs:element name="price">
>                     <xs:simpleType>
>                       <xs:restriction base="xs:decimal">
>                         <xs:totalDigits value="23"/>
>                         <xs:fractionDigits value="4"/>
>                       </xs:restriction>
>                     </xs:simpleType>
>                   </xs:element>
>                   <xs:element name="booking-unit">
>                     <xs:simpleType>
>                       <xs:restriction base="xs:string">
>                         <xs:maxLength value="10"/>
>                       </xs:restriction>
>                     </xs:simpleType>
>                   </xs:element>
>                   <xs:element name="package-id" minOccurs="0">
>                     <xs:simpleType>
>                       <xs:restriction base="xs:string">
>                         <xs:maxLength value="6"/>
>                       </xs:restriction>
>                     </xs:simpleType>
>                   </xs:element>
>                   <xs:element name="content-component">
>                     <xs:simpleType>
>                       <xs:restriction base="xs:string">
>                         <xs:maxLength value="8"/>
>                       </xs:restriction>
>                     </xs:simpleType>
>                   </xs:element>
>                   <xs:element name="source-system" minOccurs="0">
>                     <xs:simpleType>
>                       <xs:restriction base="xs:string">
>                         <xs:maxLength value="4"/>
>                       </xs:restriction>
>                     </xs:simpleType>
>                   </xs:element>
>                   <xs:element name="po-number" minOccurs="0">
>                     <xs:simpleType>
>                       <xs:restriction base="xs:string">
>                         <xs:maxLength value="20"/>
>                       </xs:restriction>
>                     </xs:simpleType>
>                   </xs:element>
>                   <xs:element name="authorizer-name" minOccurs="0">
>                     <xs:simpleType>
>                       <xs:restriction base="xs:string">
>                         <xs:maxLength value="35"/>
>                       </xs:restriction>
>                     </xs:simpleType>
>                   </xs:element>
>                   <xs:element name="phone-number" minOccurs="0">
>                     <xs:simpleType>
>                       <xs:restriction base="xs:string">
>                         <xs:maxLength value="16"/>
>                       </xs:restriction>
>                     </xs:simpleType>
>                   </xs:element>
>                   <xs:element name="ad-proof-email" minOccurs="0">
>                     <xs:simpleType>
>                       <xs:restriction base="xs:string">
>                         <xs:maxLength value="50"/>
>                       </xs:restriction>
>                     </xs:simpleType>
>                   </xs:element>
>                   <xs:element name="advertiser">
>                     <xs:simpleType>
>                       <xs:restriction base="xs:string">
>                         <xs:maxLength value="10"/>
>                       </xs:restriction>
>                     </xs:simpleType>
>                   </xs:element>
>                   <xs:element name="credit-check-failed" type="xs:boolean"
> minOccurs="0"/> <xs:element name="price-group">
>                     <xs:simpleType>
>                       <xs:restriction base="xs:string">
>                         <xs:maxLength value="2"/>
>                       </xs:restriction>
>                     </xs:simpleType>
>                   </xs:element>
>                   <xs:element name="schedule-line" minOccurs="0"
> maxOccurs="unbounded"> <xs:complexType>
>                       <xs:all>
>                         <xs:element name="schedule-line-no">
>                           <xs:simpleType>
>                             <xs:restriction base="xs:positiveInteger">
>                               <xs:totalDigits value="6"/>
>                             </xs:restriction>
>                           </xs:simpleType>
>                         </xs:element>
>                         <xs:element name="publication-date" type="xs:date"/>
> <xs:element name="sub-item-no" minOccurs="0"> <xs:simpleType>
>                             <xs:restriction base="xs:string">
>                               <xs:maxLength value="4"/>
>                             </xs:restriction>
>                           </xs:simpleType>
>                         </xs:element>
>                         <xs:element name="basic-booking-unit" minOccurs="0">
> <xs:simpleType>
>                             <xs:restriction base="xs:string">
>                               <xs:maxLength value="10"/>
>                             </xs:restriction>
>                           </xs:simpleType>
>                         </xs:element>
>                         <xs:element name="ad-spec-no" minOccurs="0">
>                           <xs:simpleType>
>                             <xs:restriction base="xs:positiveInteger">
>                               <xs:totalDigits value="6"/>
>                             </xs:restriction>
>                           </xs:simpleType>
>                         </xs:element>
>                         <xs:element name="schedule-line-status">
>                           <xs:complexType>
>                             <xs:all>
>                               <xs:element name="status-level">
>                                 <xs:simpleType>
>                                   <xs:restriction base="xs:string">
>                                     <xs:maxLength value="2"/>
>                                   </xs:restriction>
>                                 </xs:simpleType>
>                               </xs:element>
>                               <xs:element name="status-msg">
>                                 <xs:simpleType>
>                                   <xs:restriction base="xs:string">
>                                     <xs:maxLength value="30"/>
>                                   </xs:restriction>
>                                 </xs:simpleType>
>                               </xs:element>
>                             </xs:all>
>                           </xs:complexType>
>                         </xs:element>
>                       </xs:all>
>                     </xs:complexType>
>                   </xs:element>
>                   <xs:element name="keyword" minOccurs="0">
>                     <xs:simpleType>
>                       <xs:restriction base="xs:string">
>                         <xs:maxLength value="25"/>
>                       </xs:restriction>
>                     </xs:simpleType>
>                   </xs:element>
>                   <xs:element name="credit-card" minOccurs="0">
>                     <xs:complexType>
>                       <xs:all>
>                         <xs:element name="auth-status">
>                           <xs:simpleType>
>                             <xs:restriction base="xs:string">
>                               <xs:maxLength value="3"/>
>                             </xs:restriction>
>                           </xs:simpleType>
>                         </xs:element>
>                         <xs:element name="auth-no">
>                           <xs:simpleType>
>                             <xs:restriction base="xs:string">
>                               <xs:maxLength value="10"/>
>                             </xs:restriction>
>                           </xs:simpleType>
>                         </xs:element>
>                         <xs:element name="card-type">
>                           <xs:simpleType>
>                             <xs:restriction base="xs:string">
>                               <xs:maxLength value="4"/>
>                             </xs:restriction>
>                           </xs:simpleType>
>                         </xs:element>
>                         <xs:element name="card-number" minOccurs="0">
>                           <xs:simpleType>
>                             <xs:restriction base="xs:string">
>                               <xs:maxLength value="25"/>
>                             </xs:restriction>
>                           </xs:simpleType>
>                         </xs:element>
>                       </xs:all>
>                     </xs:complexType>
>                   </xs:element>
>                   <xs:element name="item-status">
>                     <xs:complexType>
>                       <xs:all>
>                         <xs:element name="status-level">
>                           <xs:simpleType>
>                             <xs:restriction base="xs:string">
>                               <xs:maxLength value="2"/>
>                             </xs:restriction>
>                           </xs:simpleType>
>                         </xs:element>
>                         <xs:element name="status-msg">
>                           <xs:simpleType>
>                             <xs:restriction base="xs:string">
>                               <xs:maxLength value="30"/>
>                             </xs:restriction>
>                           </xs:simpleType>
>                         </xs:element>
>                       </xs:all>
>                     </xs:complexType>
>                   </xs:element>
>                 </xs:sequence>
>               </xs:complexType>
>             </xs:element>
>             <xs:element name="ad-spec" minOccurs="0" maxOccurs="unbounded">
>               <xs:complexType>
>                 <xs:sequence>
>                   <xs:element name="ad-spec-no">
>                     <xs:simpleType>
>                       <xs:restriction base="xs:positiveInteger">
>                         <xs:totalDigits value="6"/>
>                       </xs:restriction>
>                     </xs:simpleType>
>                   </xs:element>
>                   <xs:element name="proof-required" minOccurs="0"
> type="xs:boolean"/> <xs:element name="technical-id">
>                     <xs:simpleType>
>                       <xs:restriction base="xs:string">
>                         <xs:maxLength value="12"/>
>                       </xs:restriction>
>                     </xs:simpleType>
>                   </xs:element>
>                   <xs:element name="ad-width">
>                     <xs:simpleType>
>                       <xs:restriction base="xs:decimal">
>                         <xs:totalDigits value="7"/>
>                         <xs:fractionDigits value="3"/>
>                       </xs:restriction>
>                     </xs:simpleType>
>                   </xs:element>
>                   <xs:element name="ad-width-uom">
>                     <xs:simpleType>
>                       <xs:restriction base="xs:string">
>                         <xs:maxLength value="3"/>
>                       </xs:restriction>
>                     </xs:simpleType>
>                   </xs:element>
>                   <xs:element name="ad-height">
>                     <xs:simpleType>
>                       <xs:restriction base="xs:decimal">
>                         <xs:totalDigits value="7"/>
>                         <xs:fractionDigits value="3"/>
>                       </xs:restriction>
>                     </xs:simpleType>
>                   </xs:element>
>                   <xs:element name="ad-height-uom">
>                     <xs:simpleType>
>                       <xs:restriction base="xs:string">
>                         <xs:maxLength value="3"/>
>                       </xs:restriction>
>                     </xs:simpleType>
>                   </xs:element>
>                   <xs:element name="ad-lines" type="xs:nonNegativeInteger"/>
> <xs:element name="template-id" minOccurs="0">
>                     <xs:simpleType>
>                       <xs:restriction base="xs:string">
>                         <xs:maxLength value="30"/>
>                       </xs:restriction>
>                     </xs:simpleType>
>                   </xs:element>
>                   <xs:element name="ad-preview" type="xs:base64Binary"
> minOccurs="0"/> <xs:element name="exchange-format" minOccurs="0">
> <xs:complexType>
>                       <xs:sequence>
>                         <xs:element ref="pas:Ad"/>
>                       </xs:sequence>
>                     </xs:complexType>
>                   </xs:element>
>                   <xs:element name="ad-text" type="xs:string"
> minOccurs="0"/> <xs:element name="panel-field" minOccurs="0"
> maxOccurs="unbounded"> <xs:complexType>
>                       <xs:all>
>                         <xs:element name="field-name">
>                           <xs:simpleType>
>                             <xs:restriction base="xs:string">
>                               <xs:maxLength value="30"/>
>                             </xs:restriction>
>                           </xs:simpleType>
>                         </xs:element>
>                         <xs:element name="field-value" type="xs:string"/>
>                       </xs:all>
>                     </xs:complexType>
>                   </xs:element>
>                   <xs:element name="ad-graphic" minOccurs="0"
> maxOccurs="unbounded"> <xs:complexType>
>                       <xs:sequence>
>                         <xs:element name="photo-placeholder-id"
> minOccurs="0"> <xs:simpleType>
>                             <xs:restriction base="xs:string">
>                               <xs:maxLength value="18"/>
>                             </xs:restriction>
>                           </xs:simpleType>
>                         </xs:element>
>                         <xs:choice>
>                           <xs:element name="dms-graphic" minOccurs="0">
>                             <xs:complexType>
>                               <xs:all>
>                                 <xs:element name="dms-id">
>                                   <xs:simpleType>
>                                     <xs:restriction base="xs:string">
>                                       <xs:maxLength value="32"/>
>                                     </xs:restriction>
>                                   </xs:simpleType>
>                                 </xs:element>
>                                 <xs:element name="bus-object-type">
>                                   <xs:simpleType>
>                                     <xs:restriction base="xs:string">
>                                       <xs:maxLength value="10"/>
>                                     </xs:restriction>
>                                   </xs:simpleType>
>                                 </xs:element>
>                                 <xs:element name="key1">
>                                   <xs:simpleType>
>                                     <xs:restriction base="xs:string">
>                                       <xs:maxLength value="32"/>
>                                     </xs:restriction>
>                                   </xs:simpleType>
>                                 </xs:element>
>                                 <xs:element name="key2">
>                                   <xs:simpleType>
>                                     <xs:restriction base="xs:string">
>                                       <xs:maxLength value="32"/>
>                                     </xs:restriction>
>                                   </xs:simpleType>
>                                 </xs:element>
>                                 <xs:element name="class" type="xs:string"/>
>                                 <xs:element name="dms-object-type"
> type="xs:string"/> <xs:element name="dms-graphic-type"> <xs:simpleType>
>                                     <xs:restriction base="xs:string">
>                                       <xs:maxLength value="4"/>
>                                     </xs:restriction>
>                                   </xs:simpleType>
>                                 </xs:element>
>                               </xs:all>
>                             </xs:complexType>
>                           </xs:element>
>                           <xs:element name="binary-graphic"
> type="xs:base64Binary" minOccurs="0"/> </xs:choice>
>                         <xs:choice>
>                           <xs:element name="graphic-id">
>                             <xs:simpleType>
>                               <xs:restriction base="xs:positiveInteger">
>                                 <xs:totalDigits value="6"/>
>                               </xs:restriction>
>                             </xs:simpleType>
>                           </xs:element>
>                           <xs:element name="image-block-id">
>                             <xs:simpleType>
>                               <xs:restriction base="xs:positiveInteger">
>                                 <xs:totalDigits value="6"/>
>                               </xs:restriction>
>                             </xs:simpleType>
>                           </xs:element>
>                         </xs:choice>
>                       </xs:sequence>
>                     </xs:complexType>
>                   </xs:element>
>                 </xs:sequence>
>               </xs:complexType>
>             </xs:element>
>           </xs:sequence>
>         </xs:complexType>
>       </xs:element>
>     </xs:schema>
>         <!-- edited with XMLSpy v2006 rel. 3 sp1 (http://www.altova.com) by
> Victor Marquez (ZZ XX YY) --> <xs:schema targetNamespace="URLXXX"
> elementFormDefault="unqualified" xmlns:pas="URLXXX"
> xmlns:xs="http://www.w3.org/2001/XMLSchema"> <!-- definition of root
> element -->
>       <xs:element name="sap-return">
>         <xs:complexType>
>           <xs:sequence>
>             <xs:element name="number" type="xs:positiveInteger"/>
>             <xs:element name="type">
>               <xs:simpleType>
>                 <xs:restriction base="xs:string">
>                   <xs:length value="1"/>
>                 </xs:restriction>
>               </xs:simpleType>
>             </xs:element>
>             <xs:element name="message">
>               <xs:simpleType>
>                 <xs:restriction base="xs:string">
>                   <xs:maxLength value="60"/>
>                 </xs:restriction>
>               </xs:simpleType>
>             </xs:element>
>             <xs:element name="TrackingId" type="xs:string" minOccurs="0"/>
>           </xs:sequence>
>         </xs:complexType>
>       </xs:element>
>     </xs:schema>
> 
>     <xs:schema xmlns:pas="URLXXX"
> xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="URLXXX"
> elementFormDefault="unqualified"> <xs:element
> name="business-partner-create">
>   <xs:complexType>
> 
>    <xs:sequence>
>     <xs:element name="partner-type" nillable="true" minOccurs="0">
>      <xs:simpleType>
>       <xs:restriction base="xs:string"/>
>      </xs:simpleType>
>     </xs:element>
>     <xs:choice>
>      <xs:element name="person" type="pas:person"/>
>      <xs:element name="company" type="pas:company"/>
>     </xs:choice>
> 
>     <xs:element name="email">
>      <xs:simpleType>
>       <xs:restriction base="xs:string"/>
>      </xs:simpleType>
>     </xs:element>
> 
>     <xs:element name="phone">
>      <xs:simpleType>
>       <xs:restriction base="xs:string"/>
>      </xs:simpleType>
>     </xs:element>
>     <xs:choice>
>      <xs:element name="addressData" type="pas:addressData"/>
>      <xs:element name="addressClean" type="pas:addressClean"/>
>     </xs:choice>
> 
>     <xs:element name="city">
>      <xs:simpleType>
>       <xs:restriction base="xs:string"/>
>      </xs:simpleType>
>     </xs:element>
> 
>     <xs:element name="state">
>      <xs:simpleType>
>       <xs:restriction base="xs:string"/>
>      </xs:simpleType>
>     </xs:element>
> 
>     <xs:element name="zip-code">
>      <xs:simpleType>
>       <xs:restriction base="xs:string"/>
>      </xs:simpleType>
>     </xs:element>
> 
>    </xs:sequence>
>   </xs:complexType>
>  </xs:element>
> 
> 
>  <xs:complexType name="person">
>   <xs:sequence>
>    <xs:element name="firstName" nillable="true" minOccurs="0">
>     <xs:simpleType>
>      <xs:restriction base="xs:string"/>
>     </xs:simpleType>
>    </xs:element>
>    <xs:element name="lastName">
>     <xs:simpleType>
>      <xs:restriction base="xs:string"/>
>     </xs:simpleType>
>    </xs:element>
>    <xs:element name="title" nillable="true" minOccurs="0">
>     <xs:simpleType>
>      <xs:restriction base="xs:string"/>
>     </xs:simpleType>
>    </xs:element>
>   </xs:sequence>
>  </xs:complexType>
> 
> 
>  <xs:complexType name="company">
>   <xs:sequence>
>    <xs:element name="companyName">
>     <xs:simpleType>
>      <xs:restriction base="xs:string"/>
>     </xs:simpleType>
>    </xs:element>
>    <xs:element name="companyContact" nillable="true" minOccurs="0">
>     <xs:simpleType>
>      <xs:restriction base="xs:string"/>
>     </xs:simpleType>
>    </xs:element>
>   </xs:sequence>
>  </xs:complexType>
> 
> 
>  <xs:complexType name="addressData">
>   <xs:annotation>
>    <xs:documentation>addressData type is to be used for unscubbed
>             addresses</xs:documentation>
>   </xs:annotation>
>   <xs:sequence>
>    <xs:element name="addressLine1">
>     <xs:simpleType>
>      <xs:restriction base="xs:string"/>
>     </xs:simpleType>
>    </xs:element>
>    <xs:element name="addressLine2" nillable="true" minOccurs="0">
>     <xs:simpleType>
>      <xs:restriction base="xs:string"/>
>     </xs:simpleType>
>    </xs:element>
>   </xs:sequence>
>  </xs:complexType>
> 
> 
>  <xs:complexType name="addressClean">
>   <xs:annotation>
>    <xs:documentation>addressClean type is to be used for scubbed
>             addresses</xs:documentation>
>   </xs:annotation>
>   <xs:sequence>
>    <xs:element name="house-number">
>     <xs:simpleType>
>      <xs:restriction base="xs:string"/>
>     </xs:simpleType>
>    </xs:element>
>    <xs:element name="street-name">
>     <xs:simpleType>
>      <xs:restriction base="xs:string"/>
>     </xs:simpleType>
>    </xs:element>
>    <xs:element name="street-abbr">
>     <xs:simpleType>
>      <xs:restriction base="xs:string"/>
>     </xs:simpleType>
>    </xs:element>
>    <xs:element name="apartment-number" nillable="true" minOccurs="0">
>     <xs:simpleType>
>      <xs:restriction base="xs:string"/>
>     </xs:simpleType>
>    </xs:element>
>    <xs:element name="predirectional" nillable="true" minOccurs="0">
>     <xs:simpleType>
>      <xs:restriction base="xs:string"/>
>     </xs:simpleType>
>    </xs:element>
>    <xs:element name="YYdirectional" nillable="true" minOccurs="0">
>     <xs:simpleType>
>      <xs:restriction base="xs:string"/>
>     </xs:simpleType>
>    </xs:element>
>   </xs:sequence>
>  </xs:complexType>
> 
> 
> </xs:schema>
> 
> <!-- <xs:schema targetNamespace="http://www.huffingingtonYY.com/ccssAdInfo"
> xmlns:pas="URLXXX" xmlns:mm="http://www.huffingingtonYY.com/ccssAdInfo"
> xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
> <xs:import namespace="URLXXX" />
>  <xs:element name="printAdReturn">
>   <xs:complexType>
>    <xs:sequence>
>     <xs:element name="adPrice" type="xs:float"/>
>     <xs:element name="sap-order-request">
>      <xs:complexType>
>       <xs:sequence>
>        <xs:element ref="pas:sap-order-request"/>
>       </xs:sequence>
>      </xs:complexType>
>     </xs:element>
>     <xs:element name="numberLines" type="xs:int"/>
>    </xs:sequence>
>   </xs:complexType>
>  </xs:element>
> </xs:schema>
>  -->
> <xs:schema elementFormDefault="qualified"
> targetNamespace="http://www.huffingingtonYY.com/ccssAdInfo"
> xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:pas="URLXXX" > <xs:import
> namespace="URLXXX" />
>   <xs:element name="printAdReturn" type="ccs:printAdReturnType"
> xmlns:ccs="http://www.huffingingtonYY.com/ccssAdInfo"/> <xs:complexType
> name="sap-order-requestType">
>     <xs:sequence>
>       <xs:element ref="pas:sap-order-request"  xmlns:pas="URLXXX" />
>     </xs:sequence>
>   </xs:complexType>
>   <xs:complexType name="printAdReturnType">
>     <xs:sequence>
>       <xs:element type="xs:float" name="adPrice"/>
>       <xs:element type="ccs:sap-order-requestType" name="sap-order-request"
> xmlns:ccs="http://www.huffingingtonYY.com/ccssAdInfo"/> <xs:element
> type="xs:byte" name="numberLines"/>
>     </xs:sequence>
>   </xs:complexType>
> </xs:schema>
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
> xmlns:mm="http://www.huffingYY.com/jobsAdInfo" xmlns:pas="URLXXX"
> targetNamespace="http://www.huffingYY.com/jobsAdInfo"
> elementFormDefault="qualified">
> 
>  <xs:element name="printAd">
>   <xs:complexType>
>    <xs:sequence>
>     <!-- create = new print ad
>       edit = Employer has purchased print ad and chooses "edit" button on
> ManageListings page renew = Employer has purchased print ad and chooses
> "renew" button on ManageListings page --> <xs:element name="action">
>      <xs:simpleType>
>       <xs:restriction base="xs:string">
>        <xs:enumeration value="create"/>
>        <xs:enumeration value="edit"/>
>        <xs:enumeration value="renew"/>
>       </xs:restriction>
>      </xs:simpleType>
>     </xs:element>
>     <!-- Only populated if edit/renew -->
>     <xs:element name="order-no" type="xs:string" minOccurs="0"/>
>     <!-- Only populated if create and Employer has previously saved ZZir BP
> ID for purchase --> <xs:element name="BPNumber" type="xs:int"
> minOccurs="0"/>
>     <!-- Only populated if create and Employer has NOT previously saved ZZir
> BP ID for purchase ZZ value for this field will be ZZ entire
> BusinessPartnerCreate.xml field (see BusinessPartnerCreate.xsd) -->
>     <xs:element name="BusinessPartnerCreate" minOccurs="0">
>      <xs:complexType>
>       <xs:sequence>
>        <xs:element ref="pas:business-partner-create"/>
>       </xs:sequence>
>      </xs:complexType>
>     </xs:element>
>     <!-- Only populated if create and populated if user selects eiZZr combo
> or PrintAd as an upsell --> <xs:element name="adTitle" type="xs:string"
> minOccurs="0"/>
>     <!-- Only populated if create and populated if user selects eiZZr combo
> or PrintAd as an upsell --> <xs:element name="adText" type="xs:string"
> minOccurs="0"/>
>     <!-- Only populated if create and populated if user selects eiZZr combo
> or PrintAd as an upsell --> <xs:element name="adLocation" minOccurs="0">
>      <xs:simpleType>
>       <xs:restriction base="xs:string">
>        <xs:enumeration value="1"/>
>        <xs:enumeration value="0"/>
>        <!-- Value determined by Employer's selection of PAJ field: Job
> Location --> <!-- Is 1 if value of PAJ: Job Location is any selection
> except "Outside DC Metro Region", "OZZr VA", "OZZr MD" --> <!-- Is 0 if
> value of PAJ: Job Location is eiZZr "Outside DC Metro Region", "OZZr VA",
> "OZZr MD" --> </xs:restriction>
>      </xs:simpleType>
>     </xs:element>
>     <!-- Only populated if create.  -->
>     <xs:element name="adKeyword" type="xs:string" minOccurs="0"/>
>     <!-- Only populated if create. This field is also know as "Job Class
> Code". ZZ value should always be "0905" --> <xs:element
> name="contentComponent" type="xs:string" minOccurs="0"/> <!-- Only
> populated if create. If user selects "combo", ZZ value should be "true",
> oZZrwise "false" --> <xs:element name="combo" type="xs:boolean"
> minOccurs="0"/>
>     <!-- Always populate for all action options (create/edit/renew). ZZ
> value is ZZ EU_LoginID - used for UI display only --> <xs:element
> name="userName" type="xs:string"/>
>     <!-- Always populate for all action options (create/edit/renew). ZZ
> value is ZZ current timestamp ENCRYPTED. This value must be within 5 min of
> TWP's time to prevent replay--> <xs:element name="timeStamp"
> type="xs:string"/>
>    </xs:sequence>
>   </xs:complexType>
>  </xs:element>
> </xs:schema>
> 
> 
>   </types>
>   <message name="getPreviewSoapIn">
>     <part name="parameters" element="s0:getPreview"/>
>   </message>
>   <message name="getPreviewSoapOut">
>     <part name="parameters" element="s0:getPreviewResponse"/>
>   </message>
>   <message name="getPreviewAndPriceSoapIn">
>     <part name="parameters" element="s0:getPreviewAndPrice"/>
>   </message>
>   <message name="getPreviewAndPriceSoapOut">
>     <part name="parameters" element="s0:getPreviewAndPriceResponse"/>
>   </message>
>   <message name="createOrderSoapIn">
>     <part name="parameters" element="s0:createOrder"/>
>   </message>
>   <message name="createOrderSoapOut">
>     <part name="parameters" element="s0:createOrderResponse"/>
>   </message>
>   <message name="getOrderSoapIn">
>     <part name="parameters" element="s0:getOrder"/>
>   </message>
>   <message name="getOrderSoapOut">
>     <part name="parameters" element="s0:getOrderResponse"/>
>   </message>
>   <message name="getOrderListSoapIn">
>     <part name="parameters" element="s0:getOrderList"/>
>   </message>
>   <message name="getOrderListSoapOut">
>     <part name="parameters" element="s0:getOrderListResponse"/>
>   </message>
>   <message name="cancelOrderSoapIn">
>     <part name="parameters" element="s0:cancelOrder"/>
>   </message>
>   <message name="cancelOrderSoapOut">
>     <part name="parameters" element="s0:cancelOrderResponse"/>
>   </message>
>   <message name="updateOrderSoapIn">
>     <part name="parameters" element="s0:updateOrder"/>
>   </message>
>   <message name="updateOrderSoapOut">
>     <part name="parameters" element="s0:updateOrderResponse"/>
>   </message>
>   <portType name="SapSalesOrderSoap">
>     <operation name="getPreview">
>       <input message="s0:getPreviewSoapIn"/>
>       <output message="s0:getPreviewSoapOut"/>
>     </operation>
>     <operation name="getPreviewAndPrice">
>       <input message="s0:getPreviewAndPriceSoapIn"/>
>       <output message="s0:getPreviewAndPriceSoapOut"/>
>     </operation>
>     <operation name="createOrder">
>       <input message="s0:createOrderSoapIn"/>
>       <output message="s0:createOrderSoapOut"/>
>     </operation>
>     <operation name="getOrder">
>       <input message="s0:getOrderSoapIn"/>
>       <output message="s0:getOrderSoapOut"/>
>     </operation>
>     <operation name="getOrderList">
>       <input message="s0:getOrderListSoapIn"/>
>       <output message="s0:getOrderListSoapOut"/>
>     </operation>
>     <operation name="cancelOrder">
>       <input message="s0:cancelOrderSoapIn"/>
>       <output message="s0:cancelOrderSoapOut"/>
>     </operation>
>     <operation name="updateOrder">
>       <input message="s0:updateOrderSoapIn"/>
>       <output message="s0:updateOrderSoapOut"/>
>     </operation>
>   </portType>
>   <binding name="SapSalesOrderSoap" type="s0:SapSalesOrderSoap">
>     <soap:binding transport="http://schemas.xmlsoap.org/soap/http"
> style="document"/> <operation name="getPreview">
>       <soap:operation soapAction="URLXXX/getPreview" style="document"/>
>       <input>
>         <soap:body use="literal"/>
>       </input>
>       <output>
>         <soap:body use="literal"/>
>       </output>
>     </operation>
>     <operation name="getPreviewAndPrice">
>       <soap:operation soapAction="URLXXX/getPreviewAndPrice"
> style="document"/> <input>
>         <soap:body use="literal"/>
>       </input>
>       <output>
>         <soap:body use="literal"/>
>       </output>
>     </operation>
>     <operation name="createOrder">
>       <soap:operation soapAction="URLXXX/createOrder" style="document"/>
>       <input>
>         <soap:body use="literal"/>
>       </input>
>       <output>
>         <soap:body use="literal"/>
>       </output>
>     </operation>
>     <operation name="getOrder">
>       <soap:operation soapAction="URLXXX/getOrder" style="document"/>
>       <input>
>         <soap:body use="literal"/>
>       </input>
>       <output>
>         <soap:body use="literal"/>
>       </output>
>     </operation>
>     <operation name="getOrderList">
>       <soap:operation soapAction="URLXXX/getOrderList" style="document"/>
>       <input>
>         <soap:body use="literal"/>
>       </input>
>       <output>
>         <soap:body use="literal"/>
>       </output>
>     </operation>
>     <operation name="cancelOrder">
>       <soap:operation soapAction="URLXXX/cancelOrder" style="document"/>
>       <input>
>         <soap:body use="literal"/>
>       </input>
>       <output>
>         <soap:body use="literal"/>
>       </output>
>     </operation>
>     <operation name="updateOrder">
>       <soap:operation soapAction="URLXXX/updateOrder" style="document"/>
>       <input>
>         <soap:body use="literal"/>
>       </input>
>       <output>
>         <soap:body use="literal"/>
>       </output>
>     </operation>
>   </binding>
>   <service name="SapSalesOrder">
>     <port name="SapSalesOrderSoap" binding="s0:SapSalesOrderSoap">
>       <soap:address
> location="http://1.1.1.1/SapSalesOrderWS/SapSalesOrder.jws"/> </port>
>   </service>
> </definitions>
> 
> </raw>
> <b>Client Code</b>
> <raw>
> SapSalesOrder sap = new SapSalesOrder();
> SapSalesOrderSoap stub = (SapSalesOrderSoap)sap.getSapSalesOrderSoap(); <--
> Throws Exception
> 
> </raw>
> <b>Exception Trace </b>
> <raw>
> java.security.PrivilegedActionException:
> com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 201 counts of
> IllegalAnnotationExceptions huffingYY.pas.GetPreviewAndPriceDocument is an
> interface, and JAXB can't handle interfaces. </raw>
-- 
Daniel Kulp
dkulp@apache.org
http://dankulp.com/blog
Talend - http://www.talend.com

Mime
View raw message