| Author |
Axis generating Elements instead of Attributes
|
Lee Wright
Greenhorn
Joined: Nov 29, 2004
Posts: 11
|
|
I'm a bit of a newbie with WSDL programming...here's my problem. I have a schema file (see end of this posting) that contains Elements and Attributes for those Elements. I used Castor to create the Java classes for the Schema and then Axis to generate the webservices for some methods using those classes. For some reason the attributes in the schema are getting set to Elements in the WSDL file. Does my WSDL somehow need to reference the Schema to determine the object types? Schema (partial...) : <?xml version="1.0" encoding="UTF-8"?> <!--W3C Schema generated by XMLSPY v2004 rel. 2 U (http://www.xmlspy.com)--> <xs:schema targetNamespace="mdep.albertsons.axlesolutions.net" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:mdep="mdep.albertsons.axlesolutions.net" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.0"> <xs:element name="annotation"> <xs:complexType> <xs:attribute name="description" type="xs:string" use="optional"/> </xs:complexType> </xs:element> <xs:element name="department" type="xs:int"/> <xs:element name="desk" type="xs:int"/> <xs:element name="division"> <xs:complexType> <xs:sequence> <xs:element ref="mdep:year"/> </xs:sequence> <xs:attribute name="code" type="xs:int" use="required"/> <xs:attribute name="name" type="xs:string" use="optional"/> </xs:complexType> So the schema expects: <division code="xxx" name="xxx"/> However the WSDL file gets generated like this: <?xml version="1.0" encoding="UTF-8"?> <wsdl:definitions targetNamespace="http://services.webservices.mdep.albertsons.axlesolutions.net" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://services.webservices.mdep.albertsons.axlesolutions.net" xmlns:intf="http://services.webservices.mdep.albertsons.axlesolutions.net" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns2="http://common.webservices.mdep.albertsons.axlesolutions.net" xmlns:tns3="http://exceptions.webservices.mdep.albertsons.axlesolutions.net" xmlns:tns4="http://schema.webservices.mdep.albertsons.axlesolutions.net" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <wsdl:types> <schema targetNamespace="http://common.webservices.mdep.albertsons.axlesolutions.net" xmlns="http://www.w3.org/2001/XMLSchema"> <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/> <complexType name="MDEPDivision"> <sequence> <element name="abbreviation" nillable="true" type="soapenc:string"/> <element name="code" type="xsd:int"/> <element name="defaultLanguage" nillable="true" type="soapenc:string"/> <element name="name" nillable="true" type="soapenc:string"/> </sequence> </complexType> <complexType name="MDEPPriceZone"> <sequence> <element name="abbreviation" nillable="true" type="soapenc:string"/> <element name="id" type="xsd:int"/> <element name="m_abbreviation" nillable="true" type="soapenc:string"/> <element name="m_parentID" type="xsd:int"/> <element name="m_path" nillable="true" type="soapenc:string"/> <element name="m_type" nillable="true" type="soapenc:string"/> <element name="name" nillable="true" type="soapenc:string"/> <element name="parentID" type="xsd:int"/> <element name="path" nillable="true" type="soapenc:string"/> <element name="priceZoneID" type="xsd:int"/> </sequence> </complexType> <complexType name="MDEPPrice"> <sequence> <element name="BOGO" type="xsd:boolean"/> <element name="EDLP" type="xsd:boolean"/> <element name="MDEPPriceZone" nillable="true" type="tns2:MDEPPriceZone"/> <element name="centsOff" type="xsd:double"/> <element name="comments" nillable="true" type="soapenc:string"/> <element name="costPrice" nillable="true" type="soapenc:decimal"/> <element name="costPriceDouble" type="xsd:double"/> <element name="factor" type="xsd:int"/> <element name="goodFrom" nillable="true" type="xsd:dateTime"/> <element name="goodFromString" nillable="true" type="soapenc:string"/> <element name="goodTo" nillable="true" type="xsd:dateTime"/> <element name="goodToAsString" nillable="true" type="soapenc:string"/> <element name="isBonusBuy" type="xsd:boolean"/> <element name="isLoyaltyCard" type="xsd:boolean"/> <element name="isMerchPrice" type="xsd:boolean"/> <element name="isStorePrice" type="xsd:boolean"/> <element name="limit" type="xsd:int"/> <element name="listPrice" nillable="true" type="soapenc:decimal"/> <element name="listPriceDouble" type="xsd:double"/> <element name="midwestBOGO" type="xsd:boolean"/> <element name="pctOff" type="xsd:boolean"/> <element name="preferredFlag" type="xsd:boolean"/> <element name="priceID" type="xsd:int"/> <element name="priceTier" nillable="true" type="soapenc:string"/> <element name="priceType" nillable="true" type="soapenc:string"/> <element name="priceZone" type="xsd:int"/> <element name="priceZoneID" type="xsd:int"/> <element name="priceZoneName" nillable="true" type="soapenc:string"/> <element name="productID" type="xsd:int"/> <element name="promoOption" nillable="true" type="soapenc:string"/> <element name="quantity" type="xsd:int"/> <element name="regularQuantity" type="xsd:int"/> <element name="salePrice" nillable="true" type="soapenc:decimal"/> <element name="salePriceDouble" type="xsd:double"/> <element name="save" nillable="true" type="soapenc:string"/> <element name="specialFlag" nillable="true" type="soapenc:string"/> <element name="stores" nillable="true" type="soapenc:Array"/> <element name="unitTypeId" type="xsd:int"/> <element name="units" nillable="true" type="soapenc:string"/> </sequence> </complexType> <complexType name="MDEPProduct"> <sequence> <element name="MDEPPrices" nillable="true" type="soapenc:Array"/> <element name="UPC" nillable="true" type="soapenc:string"/> <element name="basePriceZoneID" type="xsd:int"/> <element name="bodyCopy" nillable="true" type="soapenc:string"/> <element name="brandCopy" nillable="true" type="soapenc:string"/> <element name="categories" nillable="true" type="soapenc:Array"/> <element maxOccurs="unbounded" name="category" nillable="true" type="soapenc:string"/> <element name="created" nillable="true" type="xsd:dateTime"/> <element name="description" nillable="true" type="soapenc:string"/> <element name="division" nillable="true" type="soapenc:string"/> <element name="headerCopy" nillable="true" type="soapenc:string"/> <element name="id" type="xsd:int"/> <element name="isSwap" type="xsd:boolean"/> <element name="language" nillable="true" type="soapenc:string"/> <element name="longDescription" nillable="true" type="soapenc:string"/> <element name="modified" nillable="true" type="xsd:dateTime"/> <element name="name" nillable="true" type="soapenc:string"/> <element name="orderTypeItem" nillable="true" type="soapenc:string"/> <element maxOccurs="unbounded" name="price" nillable="true" type="tns2:MDEPPrice"/> <element name="productID" type="xsd:int"/> <element name="shopID" type="xsd:int"/> </sequence> </complexType> <complexType name="MDEPCopy"> <sequence> <element name="UPC" nillable="true" type="soapenc:string"/> <element name="copyTab" nillable="true" type="soapenc:string"/> <element name="copyText" nillable="true" type="soapenc:string"/> <element name="language" nillable="true" type="soapenc:string"/> <element name="productCopy" type="xsd:boolean"/> <element name="promoCopy" type="xsd:boolean"/> <element name="role" nillable="true" type="soapenc:string"/> <element name="target" nillable="true" type="soapenc:string"/> </sequence> </complexType> <complexType name="MDEPImage"> <sequence> <element name="UPC" nillable="true" type="soapenc:string"/> <element name="name" nillable="true" type="soapenc:string"/> <element name="previewURL" nillable="true" type="soapenc:string"/> <element name="rawURL" nillable="true" type="soapenc:string"/> <element name="thumbURL" nillable="true" type="soapenc:string"/> </sequence> </complexType> </schema> <schema targetNamespace="http://exceptions.webservices.mdep.albertsons.axlesolutions.net" xmlns="http://www.w3.org/2001/XMLSchema"> <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/> <complexType name="MDEPBaseException"> <sequence/> </complexType> <complexType name="MDEPException"> <complexContent> <extension base="tns3:MDEPBaseException"> <sequence/> </extension> </complexContent> </complexType> <complexType name="UnknownDivisionException"> <complexContent> <extension base="tns3:MDEPBaseException"> <sequence/> </extension> </complexContent> </complexType> <complexType name="InvalidUPCException"> <complexContent> <extension base="tns3:MDEPBaseException"> <sequence> <element name="UPC" nillable="true" type="soapenc:string"/> </sequence> </extension> </complexContent> </complexType> <complexType name="DAOException"> <sequence/> </complexType> <complexType name="InvalidPromoIDException"> <complexContent> <extension base="tns3:MDEPBaseException"> <sequence> <element name="promoID" type="xsd:int"/> </sequence> </extension> </complexContent> </complexType> <complexType name="InvalidCopyUpdateException"> <sequence/> </complexType> </schema> <schema targetNamespace="http://services.webservices.mdep.albertsons.axlesolutions.net" xmlns="http://www.w3.org/2001/XMLSchema"> <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/> <complexType name="ArrayOf_tns2_MDEPCopy"> <complexContent> <restriction base="soapenc:Array"> <attribute ref="soapenc:arrayType" wsdl:arrayType="tns2:MDEPCopy[]"/> </restriction> </complexContent> </complexType> </schema> <schema targetNamespace="http://schema.webservices.mdep.albertsons.axlesolutions.net" xmlns="http://www.w3.org/2001/XMLSchema"> <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/> <complexType name="Annotation"> <sequence> <element name="description" nillable="true" type="soapenc:string"/> <element name="valid" type="xsd:boolean"/> </sequence> </complexType> <complexType name="Instructions"> <sequence> <element name="description" nillable="true" type="soapenc:string"/> <element name="valid" type="xsd:boolean"/> </sequence> </complexType> <complexType name="PageAllocation"> <sequence> <element name="XPos" type="xsd:int"/> <element name="YPos" type="xsd:int"/> <element name="height" type="xsd:int"/> <element name="mod" type="xsd:short"/> <element name="valid" type="xsd:boolean"/> <element name="width" type="xsd:int"/> </sequence> </complexType> <complexType name="PromoCopy"> <sequence> <element name="copyRole" nillable="true" type="soapenc:string"/> <element name="copyTab" nillable="true" type="soapenc:string"/> <element name="copyType" nillable="true" type="soapenc:string"/> <element name="language" nillable="true" type="soapenc:string"/> <element name="mediaTarget" nillable="true" type="soapenc:string"/> <element name="mediaType" nillable="true" type="soapenc:string"/> <element name="valid" type="xsd:boolean"/> </sequence> </complexType> <complexType name="PriceZone"> <sequence> <element name="ID" type="xsd:int"/> <element name="name" nillable="true" type="soapenc:string"/> <element name="valid" type="xsd:boolean"/> </sequence> </complexType> <complexType name="Price"> <sequence> <element name="costPrice" nillable="true" type="soapenc:decimal"/> <element name="factor" type="xsd:byte"/> <element name="goodFrom" nillable="true" type="soapenc:string"/> <element name="goodUntil" nillable="true" type="soapenc:string"/> <element name="limit" type="xsd:byte"/> <element name="listPrice" nillable="true" type="soapenc:decimal"/> <element name="listQuantity" type="xsd:byte"/> <element name="priceType" nillable="true" type="soapenc:string"/> <element name="priceZone" nillable="true" type="tns4:PriceZone"/> <element name="priceZoneId" type="xsd:int"/> <element name="salePrice" nillable="true" type="soapenc:decimal"/> <element name="saleQuantity" type="xsd:byte"/> <element name="unitType" nillable="true" type="soapenc:string"/> <element name="valid" type="xsd:boolean"/> </sequence> </complexType> <complexType name="ProductCopy"> <sequence> <element name="copyRole" nillable="true" type="soapenc:string"/> <element name="copyTab" nillable="true" type="soapenc:string"/> <element name="copyType" nillable="true" type="soapenc:string"/> <element name="language" nillable="true" type="soapenc:string"/> <element name="mediaTarget" nillable="true" type="soapenc:string"/> <element name="mediaType" nillable="true" type="soapenc:string"/> <element name="valid" type="xsd:boolean"/> </sequence> </complexType> <complexType name="Product"> <sequence> <element name="UPC" type="xsd:long"/> <element name="description" nillable="true" type="soapenc:string"/> <element maxOccurs="unbounded" name="price" nillable="true" type="tns4:Price"/> <element name="priceCount" type="xsd:int"/> <element maxOccurs="unbounded" name="productCopy" nillable="true" type="tns4:ProductCopy"/> <element name="productCopyCount" type="xsd:int"/> <element name="size" nillable="true" type="soapenc:string"/> <element name="valid" type="xsd:boolean"/> </sequence> </complexType> <complexType name="PromoItem"> <sequence> <element name="primary" type="xsd:boolean"/> <element maxOccurs="unbounded" name="product" nillable="true" type="tns4:Product"/> <element name="productCount" type="xsd:int"/> <element name="quantity" type="xsd:int"/> <element name="treatment" nillable="true" type="soapenc:string"/> <element name="unitType" nillable="true" type="soapenc:string"/> <element name="valid" type="xsd:boolean"/> </sequence> </complexType> <complexType name="Promo"> <sequence> <element name="ID" type="xsd:long"/> <element name="SPAID" type="xsd:long"/> <element name="annotation" nillable="true" type="tns4:Annotation"/> <element name="department" type="xsd:int"/> <element name="desk" type="xsd:int"/> <element name="instructions" nillable="true" type="tns4:Instructions"/> <element name="name" nillable="true" type="soapenc:string"/> <element name="pageAllocation" nillable="true" type="tns4:PageAllocation"/> <element name="path" nillable="true" type="soapenc:string"/> <element maxOccurs="unbounded" name="promoCopy" nillable="true" type="tns4:PromoCopy"/> <element name="promoCopyCount" type="xsd:int"/> <element name="promoItem" nillable="true" type="tns4:PromoItem"/> <element name="valid" type="xsd:boolean"/> </sequence> </complexType> <complexType name="PromoList"> <sequence> <element name="promo" nillable="true" type="tns4:Promo"/> <element name="valid" type="xsd:boolean"/> </sequence> </complexType> <complexType name="Page"> <sequence> <element name="name" nillable="true" type="soapenc:string"/> <element name="number" type="xsd:int"/> <element name="promoList" nillable="true" type="tns4:PromoList"/> <element name="valid" type="xsd:boolean"/> </sequence> </complexType> <complexType name="Vehicle"> <sequence> <element name="endDate" nillable="true" type="soapenc:string"/> <element name="name" nillable="true" type="soapenc:string"/> <element name="page" nillable="true" type="tns4:Page"/> <element name="startDate" nillable="true" type="soapenc:string"/> <element name="valid" type="xsd:boolean"/> </sequence> </complexType> <complexType name="Week"> <sequence> <element name="name" nillable="true" type="soapenc:string"/> <element name="valid" type="xsd:boolean"/> <element maxOccurs="unbounded" name="vehicle" nillable="true" type="tns4:Vehicle"/> <element name="vehicleCount" type="xsd:int"/> </sequence> </complexType> <complexType name="Quarter"> <sequence> <element name="name" type="xsd:short"/> <element name="valid" type="xsd:boolean"/> <element name="week" nillable="true" type="tns4:Week"/> </sequence> </complexType> <complexType name="Year"> <sequence> <element name="name" type="xsd:int"/> <element name="quarter" nillable="true" type="tns4:Quarter"/> <element name="valid" type="xsd:boolean"/> </sequence> </complexType> <complexType name="Division"> <sequence> <element name="code" type="xsd:int"/> <element name="name" nillable="true" type="soapenc:string"/> <element name="valid" type="xsd:boolean"/> <element name="year" nillable="true" type="tns4:Year"/> </sequence> </complexType> <complexType name="Job"> <sequence> <element name="division" nillable="true" type="tns4 ivision"/> <element name="submitted" nillable="true" type="soapenc:string"/> <element name="userID" nillable="true" type="soapenc:string"/> <element name="valid" type="xsd:boolean"/> </sequence> </complexType> </schema> </wsdl:types> <wsdl:message name="getProductByUPCRequest"> <wsdl:part name="p_UPC" type="soapenc:string"/> </wsdl:message> <wsdl:message name="getProductCopyResponse1"> <wsdl:part name="getProductCopyReturn" type="impl:ArrayOf_tns2_MDEPCopy"/> </wsdl:message> <wsdl:message name="setProductCopyResponse"> <wsdl:part name="setProductCopyReturn" type="tns2:MDEPProduct"/> </wsdl:message> <wsdl:message name="setProductCopyResponse1"> </wsdl:message> <wsdl:message name="getTestResponseRequest"> </wsdl:message> <wsdl:message name="setProductCopyRequest1"> <wsdl:part name="UPC" type="soapenc:string"/> <wsdl:part name="divisionCode" type="xsd:int"/> <wsdl:part name="language" type="soapenc:string"/> <wsdl:part name="copyChanges" type="impl:ArrayOf_tns2_MDEPCopy"/> </wsdl:message> <wsdl:message name="getDivisionByCodeRequest"> <wsdl:part name="code" type="xsd:int"/> </wsdl:message> <wsdl:message name="getPromoCopyRequest"> <wsdl:part name="promoID" type="xsd:int"/> <wsdl:part name="divisionCode" type="xsd:int"/> <wsdl:part name="language" type="soapenc:string"/> </wsdl:message> <wsdl:message name="getProductImageResponse"> <wsdl:part name="getProductImageReturn" type="tns2:MDEPImage"/> </wsdl:message> <wsdl:message name="submitPromoRequest"> <wsdl:part name="job" type="tns4:Job"/> </wsdl:message> <wsdl:message name="getProductCopyRequest"> <wsdl:part name="p_product" type="tns2:MDEPProduct"/> </wsdl:message> <wsdl:message name="getStoreParentByNameRequest"> <wsdl:part name="p_storeName" type="soapenc:string"/> </wsdl:message> <wsdl:message name="getProductImageRequest"> <wsdl:part name="UPC" type="soapenc:string"/> <wsdl:part name="divisionCode" type="xsd:int"/> </wsdl:message> <wsdl:message name="MDEPException"> <wsdl:part name="fault" type="tns3:MDEPException"/> </wsdl:message> <wsdl:message name="getProductByUPCResponse"> <wsdl:part name="getProductByUPCReturn" type="tns2:MDEPProduct"/> </wsdl:message> <wsdl:message name="getStoreParentByNameResponse"> <wsdl:part name="getStoreParentByNameReturn" type="tns2:MDEPPriceZone"/> </wsdl:message> <wsdl:message name="setProductCopyRequest"> <wsdl:part name="p_product" type="tns2:MDEPProduct"/> <wsdl:part name="p_addOnly" type="xsd:boolean"/> </wsdl:message> <wsdl:message name="getProductCopyResponse"> <wsdl:part name="getProductCopyReturn" type="tns2:MDEPProduct"/> </wsdl:message> <wsdl:message name="getStoreGrandParentByNameRequest"> <wsdl:part name="p_storeName" type="soapenc:string"/> </wsdl:message> <wsdl:message name="submitPromoResponse"> <wsdl:part name="submitPromoReturn" type="soapenc:string"/> </wsdl:message> <wsdl:message name="InvalidUPCException"> <wsdl:part name="fault" type="tns3:InvalidUPCException"/> </wsdl:message> <wsdl:message name="InvalidCopyUpdateException"> <wsdl:part name="fault" type="tns3:InvalidCopyUpdateException"/> </wsdl:message> <wsdl:message name="getDivisionByCodeResponse"> <wsdl:part name="getDivisionByCodeReturn" type="tns2:MDEPDivision"/> </wsdl:message> <wsdl:message name="getPromoCopyResponse"> <wsdl:part name="getPromoCopyReturn" type="impl:ArrayOf_tns2_MDEPCopy"/> </wsdl:message> <wsdl:message name="getTestResponseResponse"> <wsdl:part name="getTestResponseReturn" type="soapenc:string"/> </wsdl:message> <wsdl:message name="getProductCopyRequest1"> <wsdl:part name="UPC" type="soapenc:string"/> <wsdl:part name="divisionCode" type="xsd:int"/> <wsdl:part name="language" type="soapenc:string"/> </wsdl:message> <wsdl:message name="getStoreGrandParentByNameResponse"> <wsdl:part name="getStoreGrandParentByNameReturn" type="tns2:MDEPPriceZone"/> </wsdl:message> <wsdl:message name="DAOException"> <wsdl:part name="fault" type="tns3 AOException"/> </wsdl:message> <wsdl:message name="InvalidPromoIDException"> <wsdl:part name="fault" type="tns3:InvalidPromoIDException"/> </wsdl:message> <wsdl:message name="UnknownDivisionException"> <wsdl:part name="fault" type="tns3:UnknownDivisionException"/> </wsdl:message> <wsdl:portType name="ObjectManagerImpl"> <wsdl peration name="getDivisionByCode" parameterOrder="code"> <wsdl:input message="impl:getDivisionByCodeRequest" name="getDivisionByCodeRequest"/> <wsdl utput message="impl:getDivisionByCodeResponse" name="getDivisionByCodeResponse"/> <wsdl:fault message="impl:UnknownDivisionException" name="UnknownDivisionException"/> <wsdl:fault message="impl:MDEPException" name="MDEPException"/> </wsdl peration> <wsdl peration name="getProductByUPC" parameterOrder="p_UPC"> <wsdl:input message="impl:getProductByUPCRequest" name="getProductByUPCRequest"/> <wsdl utput message="impl:getProductByUPCResponse" name="getProductByUPCResponse"/> <wsdl:fault message="impl:MDEPException" name="MDEPException"/> </wsdl peration> <wsdl peration name="getProductCopy" parameterOrder="p_product"> <wsdl:input message="impl:getProductCopyRequest" name="getProductCopyRequest"/> <wsdl utput message="impl:getProductCopyResponse" name="getProductCopyResponse"/> <wsdl:fault message="impl:InvalidUPCException" name="InvalidUPCException"/> <wsdl:fault message="impl:MDEPException" name="MDEPException"/> </wsdl peration> <wsdl peration name="getProductCopy" parameterOrder="UPC divisionCode language"> <wsdl:input message="impl:getProductCopyRequest1" name="getProductCopyRequest1"/> <wsdl utput message="impl:getProductCopyResponse1" name="getProductCopyResponse1"/> <wsdl:fault message="impl:UnknownDivisionException" name="UnknownDivisionException"/> <wsdl:fault message="impl:MDEPException" name="MDEPException"/> <wsdl:fault message="impl:InvalidUPCException" name="InvalidUPCException"/> </wsdl peration> <wsdl peration name="getProductImage" parameterOrder="UPC divisionCode"> <wsdl:input message="impl:getProductImageRequest" name="getProductImageRequest"/> <wsdl utput message="impl:getProductImageResponse" name="getProductImageResponse"/> <wsdl:fault message="impl:UnknownDivisionException" name="UnknownDivisionException"/> <wsdl:fault message="impl AOException" name="DAOException"/> <wsdl:fault message="impl:InvalidUPCException" name="InvalidUPCException"/> <wsdl:fault message="impl:MDEPException" name="MDEPException"/> </wsdl peration> <wsdl peration name="getPromoCopy" parameterOrder="promoID divisionCode language"> <wsdl:input message="impl:getPromoCopyRequest" name="getPromoCopyRequest"/> <wsdl utput message="impl:getPromoCopyResponse" name="getPromoCopyResponse"/> <wsdl:fault message="impl:UnknownDivisionException" name="UnknownDivisionException"/> <wsdl:fault message="impl AOException" name="DAOException"/> <wsdl:fault message="impl:MDEPException" name="MDEPException"/> <wsdl:fault message="impl:InvalidPromoIDException" name="InvalidPromoIDException"/> </wsdl peration> <wsdl peration name="getStoreGrandParentByName" parameterOrder="p_storeName"> <wsdl:input message="impl:getStoreGrandParentByNameRequest" name="getStoreGrandParentByNameRequest"/> <wsdl utput message="impl:getStoreGrandParentByNameResponse" name="getStoreGrandParentByNameResponse"/> <wsdl:fault message="impl:MDEPException" name="MDEPException"/> </wsdl peration> <wsdl peration name="getStoreParentByName" parameterOrder="p_storeName"> <wsdl:input message="impl:getStoreParentByNameRequest" name="getStoreParentByNameRequest"/> <wsdl utput message="impl:getStoreParentByNameResponse" name="getStoreParentByNameResponse"/> <wsdl:fault message="impl:MDEPException" name="MDEPException"/> </wsdl peration> <wsdl peration name="getTestResponse"> <wsdl:input message="impl:getTestResponseRequest" name="getTestResponseRequest"/> <wsdl utput message="impl:getTestResponseResponse" name="getTestResponseResponse"/> </wsdl peration> <wsdl peration name="setProductCopy" parameterOrder="p_product p_addOnly"> <wsdl:input message="impl:setProductCopyRequest" name="setProductCopyRequest"/> <wsdl utput message="impl:setProductCopyResponse" name="setProductCopyResponse"/> <wsdl:fault message="impl:InvalidUPCException" name="InvalidUPCException"/> <wsdl:fault message="impl:MDEPException" name="MDEPException"/> </wsdl peration> <wsdl peration name="setProductCopy" parameterOrder="UPC divisionCode language copyChanges"> <wsdl:input message="impl:setProductCopyRequest1" name="setProductCopyRequest1"/> <wsdl utput message="impl:setProductCopyResponse1" name="setProductCopyResponse1"/> <wsdl:fault message="impl:UnknownDivisionException" name="UnknownDivisionException"/> <wsdl:fault message="impl AOException" name="DAOException"/> <wsdl:fault message="impl:InvalidUPCException" name="InvalidUPCException"/> <wsdl:fault message="impl:MDEPException" name="MDEPException"/> <wsdl:fault message="impl:InvalidCopyUpdateException" name="InvalidCopyUpdateException"/> </wsdl peration> <wsdl peration name="submitPromo" parameterOrder="job"> <wsdl:input message="impl:submitPromoRequest" name="submitPromoRequest"/> <wsdl utput message="impl:submitPromoResponse" name="submitPromoResponse"/> <wsdl:fault message="impl:MDEPException" name="MDEPException"/> </wsdl peration> </wsdl:portType> <wsdl:binding name="ObjectManagerImplSoapBinding" type="impl:ObjectManagerImpl"> <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> <wsdl peration name="getDivisionByCode"> <wsdlsoap peration soapAction=""/> <wsdl:input name="getDivisionByCodeRequest"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.webservices.mdep.albertsons.axlesolutions.net" use="encoded"/> </wsdl:input> <wsdl utput name="getDivisionByCodeResponse"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.webservices.mdep.albertsons.axlesolutions.net" use="encoded"/> </wsdl utput> <wsdl:fault name="UnknownDivisionException"> <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.webservices.mdep.albertsons.axlesolutions.net" use="encoded"/> </wsdl:fault> <wsdl:fault name="MDEPException"> <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.webservices.mdep.albertsons.axlesolutions.net" use="encoded"/> </wsdl:fault> </wsdl peration> <wsdl peration name="getProductByUPC"> <wsdlsoap peration soapAction=""/> <wsdl:input name="getProductByUPCRequest"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.webservices.mdep.albertsons.axlesolutions.net" use="encoded"/> </wsdl:input> <wsdl utput name="getProductByUPCResponse"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.webservices.mdep.albertsons.axlesolutions.net" use="encoded"/> </wsdl utput> <wsdl:fault name="MDEPException"> <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.webservices.mdep.albertsons.axlesolutions.net" use="encoded"/> </wsdl:fault> </wsdl peration> <wsdl peration name="getProductCopy"> <wsdlsoap peration soapAction=""/> <wsdl:input name="getProductCopyRequest"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.webservices.mdep.albertsons.axlesolutions.net" use="encoded"/> </wsdl:input> <wsdl utput name="getProductCopyResponse"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.webservices.mdep.albertsons.axlesolutions.net" use="encoded"/> </wsdl utput> <wsdl:fault name="InvalidUPCException"> <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.webservices.mdep.albertsons.axlesolutions.net" use="encoded"/> </wsdl:fault> <wsdl:fault name="MDEPException"> <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.webservices.mdep.albertsons.axlesolutions.net" use="encoded"/> </wsdl:fault> </wsdl peration> <wsdl peration name="getProductCopy"> <wsdlsoap peration soapAction=""/> <wsdl:input name="getProductCopyRequest1"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.webservices.mdep.albertsons.axlesolutions.net" use="encoded"/> </wsdl:input> <wsdl utput name="getProductCopyResponse1"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.webservices.mdep.albertsons.axlesolutions.net" use="encoded"/> </wsdl utput> <wsdl:fault name="UnknownDivisionException"> <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.webservices.mdep.albertsons.axlesolutions.net" use="encoded"/> </wsdl:fault> <wsdl:fault name="MDEPException"> <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.webservices.mdep.albertsons.axlesolutions.net" use="encoded"/> </wsdl:fault> <wsdl:fault name="InvalidUPCException"> <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.webservices.mdep.albertsons.axlesolutions.net" use="encoded"/> </wsdl:fault> </wsdl peration> <wsdl peration name="getProductImage"> <wsdlsoap peration soapAction=""/> <wsdl:input name="getProductImageRequest"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.webservices.mdep.albertsons.axlesolutions.net" use="encoded"/> </wsdl:input> <wsdl utput name="getProductImageResponse"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.webservices.mdep.albertsons.axlesolutions.net" use="encoded"/> </wsdl utput> <wsdl:fault name="UnknownDivisionException"> <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.webservices.mdep.albertsons.axlesolutions.net" use="encoded"/> </wsdl:fault> <wsdl:fault name="DAOException"> <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.webservices.mdep.albertsons.axlesolutions.net" use="encoded"/> </wsdl:fault> <wsdl:fault name="InvalidUPCException"> <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.webservices.mdep.albertsons.axlesolutions.net" use="encoded"/> </wsdl:fault> <wsdl:fault name="MDEPException"> <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.webservices.mdep.albertsons.axlesolutions.net" use="encoded"/> </wsdl:fault> </wsdl peration> <wsdl peration name="getPromoCopy"> <wsdlsoap peration soapAction=""/> <wsdl:input name="getPromoCopyRequest"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.webservices.mdep.albertsons.axlesolutions.net" use="encoded"/> </wsdl:input> <wsdl utput name="getPromoCopyResponse"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.webservices.mdep.albertsons.axlesolutions.net" use="encoded"/> </wsdl utput> <wsdl:fault name="UnknownDivisionException"> <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.webservices.mdep.albertsons.axlesolutions.net" use="encoded"/> </wsdl:fault> <wsdl:fault name="DAOException"> <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.webservices.mdep.albertsons.axlesolutions.net" use="encoded"/> </wsdl:fault> <wsdl:fault name="MDEPException"> <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.webservices.mdep.albertsons.axlesolutions.net" use="encoded"/> </wsdl:fault> <wsdl:fault name="InvalidPromoIDException"> <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.webservices.mdep.albertsons.axlesolutions.net" use="encoded"/> </wsdl:fault> </wsdl peration> <wsdl peration name="getStoreGrandParentByName"> <wsdlsoap peration soapAction=""/> <wsdl:input name="getStoreGrandParentByNameRequest"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.webservices.mdep.albertsons.axlesolutions.net" use="encoded"/> </wsdl:input> <wsdl utput name="getStoreGrandParentByNameResponse"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.webservices.mdep.albertsons.axlesolutions.net" use="encoded"/> </wsdl utput> <wsdl:fault name="MDEPException"> <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.webservices.mdep.albertsons.axlesolutions.net" use="encoded"/> </wsdl:fault> </wsdl peration> <wsdl peration name="getStoreParentByName"> <wsdlsoap peration soapAction=""/> <wsdl:input name="getStoreParentByNameRequest"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.webservices.mdep.albertsons.axlesolutions.net" use="encoded"/> </wsdl:input> <wsdl utput name="getStoreParentByNameResponse"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.webservices.mdep.albertsons.axlesolutions.net" use="encoded"/> </wsdl utput> <wsdl:fault name="MDEPException"> <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.webservices.mdep.albertsons.axlesolutions.net" use="encoded"/> </wsdl:fault> </wsdl peration> <wsdl peration name="getTestResponse"> <wsdlsoap peration soapAction=""/> <wsdl:input name="getTestResponseRequest"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.webservices.mdep.albertsons.axlesolutions.net" use="encoded"/> </wsdl:input> <wsdl utput name="getTestResponseResponse"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.webservices.mdep.albertsons.axlesolutions.net" use="encoded"/> </wsdl utput> </wsdl peration> <wsdl peration name="setProductCopy"> <wsdlsoap peration soapAction=""/> <wsdl:input name="setProductCopyRequest"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.webservices.mdep.albertsons.axlesolutions.net" use="encoded"/> </wsdl:input> <wsdl utput name="setProductCopyResponse"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.webservices.mdep.albertsons.axlesolutions.net" use="encoded"/> </wsdl utput> <wsdl:fault name="InvalidUPCException"> <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.webservices.mdep.albertsons.axlesolutions.net" use="encoded"/> </wsdl:fault> <wsdl:fault name="MDEPException"> <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.webservices.mdep.albertsons.axlesolutions.net" use="encoded"/> </wsdl:fault> </wsdl peration> <wsdl peration name="setProductCopy"> <wsdlsoap peration soapAction=""/> <wsdl:input name="setProductCopyRequest1"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.webservices.mdep.albertsons.axlesolutions.net" use="encoded"/> </wsdl:input> <wsdl utput name="setProductCopyResponse1"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.webservices.mdep.albertsons.axlesolutions.net" use="encoded"/> </wsdl utput> <wsdl:fault name="UnknownDivisionException"> <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.webservices.mdep.albertsons.axlesolutions.net" use="encoded"/> </wsdl:fault> <wsdl:fault name="DAOException"> <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.webservices.mdep.albertsons.axlesolutions.net" use="encoded"/> </wsdl:fault> <wsdl:fault name="InvalidUPCException"> <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.webservices.mdep.albertsons.axlesolutions.net" use="encoded"/> </wsdl:fault> <wsdl:fault name="MDEPException"> <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.webservices.mdep.albertsons.axlesolutions.net" use="encoded"/> </wsdl:fault> <wsdl:fault name="InvalidCopyUpdateException"> <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.webservices.mdep.albertsons.axlesolutions.net" use="encoded"/> </wsdl:fault> </wsdl peration> <wsdl peration name="submitPromo"> <wsdlsoap peration soapAction=""/> <wsdl:input name="submitPromoRequest"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.webservices.mdep.albertsons.axlesolutions.net" use="encoded"/> </wsdl:input> <wsdl utput name="submitPromoResponse"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.webservices.mdep.albertsons.axlesolutions.net" use="encoded"/> </wsdl utput> <wsdl:fault name="MDEPException"> <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.webservices.mdep.albertsons.axlesolutions.net" use="encoded"/> </wsdl:fault> </wsdl peration> </wsdl:binding> <wsdl:service name="ObjectManagerImplService"> <wsdl:port binding="impl:ObjectManagerImplSoapBinding" name="ObjectManager"> <wsdlsoap:address location="http://localhost:8080/MDEPServices/services/ObjectManager"/> </wsdl:port> </wsdl:service> </wsdl:definitions> Division gets set with a code and name type as Element. HELP!! Thanks Lee
|
 |
William Barnes
Ranch Hand
Joined: Mar 16, 2001
Posts: 965
|
|
Not sure. Have you tried putting the entry after the entries?
|
Please ignore post, I have no idea what I am talking about.
|
 |
 |
|
|
subject: Axis generating Elements instead of Attributes
|
|
|