You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Tom Jordahl (JIRA)" <ax...@ws.apache.org> on 2005/06/07 21:25:42 UTC

[jira] Commented: (AXIS-2043) WSDL prcoessing varies by toolset

    [ http://issues.apache.org/jira/browse/AXIS-2043?page=comments#action_12312929 ] 

Tom Jordahl commented on AXIS-2043:
-----------------------------------

I seem to remember fixing this missing 'name' attribute on faults quite a while ago.  Are you using Axis 1.0 or 1.1?  Can you try 1.2?


> WSDL prcoessing varies by toolset
> ---------------------------------
>
>          Key: AXIS-2043
>          URL: http://issues.apache.org/jira/browse/AXIS-2043
>      Project: Axis
>         Type: Bug
>   Components: WSDL processing
>     Reporter: Dan Savoie
>     Priority: Minor

>
> I wasn't sure how to classify this...
> I am attempting to use a WSDL file that was apparently generated by Apache AXIS server components (running on JBoss).  The WSDL apparently works fine with the Apache WSDL2Java component.   However, when I validate the WSDL with IBM's Eclipse WPT WSDL validation (http://www.eclipse.org/webtools/), it is said to be invalid.  I am new to WSDL and have never used Axis Server/JBoss.  Can someone tell me if they feel this WSDL is in fact valid?
> I receive an error message initially that is flagged in 6 different places in the wsdl file:
> Severity	Description	Resource	In Folder	Location	Creation Time
> 2	cvc-complex-type.4: Attribute 'name' must appear on element 'wsdlsoap:fault'.	ParcelPrintService.wsdl	CR71392	line 81	June 7, 2005 2:50:17 PM
> Once I fix this problem by adding a name attribute, that leads to various other problems:
> The prefix "wsdl" for attribute "wsdl:arrayType" associated with an element type "attribute" is not bound.
> The part 'in0' has an invalid value 'ArrayOfParcelControlRequestImpl' defined for its type. Type declarations must refer to valid values defined in a schema.
> The part 'in0' has an invalid value 'DespatchRequestImpl' defined for its type. Type declarations must refer to valid values defined in a schema.
> The part 'in0' has an invalid value 'ParcelControlRequestImpl' defined for its type. Type declarations must refer to valid values defined in a schema.
> The part 'in0' has an invalid value 'ParcelControlRequestImpl' defined for its type. Type declarations must refer to valid values defined in a schema.
> The part 'printParcelReturn' has an invalid value 'ArrayOfParcelLabelPrintResponseImpl' defined for its type. Type declarations must refer to valid values defined in a schema.
> The part 'batchProcessReturn' has an invalid value 'ArrayOfParcelControlRequestImpl' defined for its type. Type declarations must refer to valid values defined in a schema.
> The part 'fault' has an invalid value 'DMSException' defined for its type. Type declarations must refer to valid values defined in a schema.
> The part 'in0' has an invalid value 'ParcelControlRequestImpl' defined for its type. Type declarations must refer to valid values defined in a schema.
> The part 'in0' has an invalid value 'ParcelControlRequestImpl' defined for its type. Type declarations must refer to valid values defined in a schema.
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions targetNamespace="urn:DMS:ParcelPrintService" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="urn:DMS:ParcelPrintService" xmlns:intf="urn:DMS:ParcelPrintService" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" 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="urn:DMS:ParcelPrintService" xmlns="http://www.w3.org/2001/XMLSchema"><import namespace="http://schemas.xmlsoap.org/soap/encoding/"/><complexType name="DMSException"><sequence/></complexType><complexType name="char"><simpleContent><extension base="xsd:string"/></simpleContent></complexType><complexType name="ArrayOf_xsd_string"><complexContent><restriction base="soapenc:Array"><attribute ref="soapenc:arrayType" wsdl:arrayType="xsd:string[]"/></restriction></complexContent></complexType><complexType name="DespatchRequestImpl"><sequence><element name="additionalServicesAvailableFlag" nillable="true" type="impl:char"/><element name="collectionAddress" nillable="true" type="impl:ArrayOf_xsd_string"/><element name="collectionContact" nillable="true" type="xsd:string"/><element name="collectionContactMobileNumber" nillable="true" type="xsd:string"/><element name="collectionContactTelephoneNumber" nillable="true" type="xsd:string"/><element name="collectionCountry" nillable="true" type="xsd:string"/><element name="collectionCountryCode" nillable="true" type="xsd:string"/><element name="collectionPostcode" nillable="true" type="xsd:string"/><element name="deliveryAddress" nillable="true" type="impl:ArrayOf_xsd_string"/><element name="deliveryContact" nillable="true" type="xsd:string"/><element name="deliveryContactMobileNumber" nillable="true" type="xsd:string"/><element name="deliveryContactTelephoneNumber" nillable="true" type="xsd:string"/><element name="deliveryCountry" nillable="true" type="xsd:string"/><element name="deliveryCountryCode" nillable="true" type="xsd:string"/><element name="deliveryPostcode" nillable="true" type="xsd:string"/><element name="despatchCutOffDate" nillable="true" type="xsd:dateTime"/><element name="estimatedDepth" type="xsd:double"/><element name="estimatedHeight" type="xsd:double"/><element name="estimatedWidth" type="xsd:double"/><element name="firstLegBarcode" nillable="true" type="xsd:string"/><element name="fragileGoodsFlag" nillable="true" type="impl:char"/><element name="hazard" nillable="true" type="xsd:string"/><element name="hazardousGoodsFlag" nillable="true" type="impl:char"/><element name="numParcelsInConsignment" type="xsd:int"/><element name="orderNumber" nillable="true" type="xsd:string"/><element name="orderType" nillable="true" type="xsd:string"/><element name="podFlag" nillable="true" type="impl:char"/><element name="printLabelIndicator" nillable="true" type="xsd:string"/><element name="printerId" nillable="true" type="xsd:string"/><element name="pudoOutletId" type="xsd:int"/><element name="requiredDeliveryDate" nillable="true" type="xsd:dateTime"/><element name="securityPIN" nillable="true" type="xsd:string"/><element name="serviceChainId" type="xsd:int"/><element name="shipViaCode" nillable="true" type="xsd:string"/><element name="sizeCode" nillable="true" type="xsd:string"/><element name="specialInstruction1" nillable="true" type="xsd:string"/><element name="specialInstruction2" nillable="true" type="xsd:string"/><element name="timeslotEndTime" type="xsd:int"/><element name="timeslotStartTime" type="xsd:int"/><element name="twoManLiftFlag" nillable="true" type="impl:char"/><element name="typeCode" nillable="true" type="xsd:string"/><element name="upi" type="xsd:long"/><element name="warehouseID" type="xsd:int"/><element name="cartonNumber" nillable="true" type="xsd:string"/><element name="consignmentCode" nillable="true" type="xsd:string"/><element name="consignmentParcelNumber" nillable="true" type="xsd:string"/><element name="pickticketNumber" nillable="true" type="xsd:string"/><element name="retailerId" type="xsd:int"/><element name="salesChannelId" type="xsd:int"/><element name="carrierConsCode" nillable="true" type="xsd:string"/><element name="numberOfCopiesOfLabel" type="xsd:int"/><element name="consValue" type="xsd:double"/><element name="consWeight" type="xsd:double"/><element name="parcelValue" type="xsd:double"/><element name="retailerCapabilityCodes" nillable="true" type="xsd:string"/><element name="retailerCapabilityValues" nillable="true" type="xsd:string"/><element name="weight" type="xsd:double"/></sequence></complexType><complexType name="ParcelControlRequestImpl"><sequence><element name="barcode" nillable="true" type="xsd:string"/><element name="manifestID" nillable="true" type="xsd:string"/><element name="warehousePrinterId" nillable="true" type="xsd:string"/><element name="messageType" nillable="true" type="xsd:string"/><element name="cartonNumber" nillable="true" type="xsd:string"/><element name="consignmentCode" nillable="true" type="xsd:string"/><element name="consignmentParcelNumber" nillable="true" type="xsd:string"/><element name="pickticketNumber" nillable="true" type="xsd:string"/><element name="retailerId" type="xsd:int"/><element name="salesChannelId" type="xsd:int"/><element name="numberOfCopiesOfLabel" type="xsd:int"/></sequence></complexType><complexType name="ParcelLabelPrintResponseImpl"><sequence><element name="deliveryPartnerID" type="xsd:int"/><element name="dispatchDate" nillable="true" type="xsd:dateTime"/><element name="parcelCode" nillable="true" type="xsd:string"/><element name="status" type="xsd:boolean"/><element name="upi" type="xsd:long"/><element name="carrierConsCode" nillable="true" type="xsd:string"/></sequence></complexType><complexType name="ArrayOfParcelLabelPrintResponseImpl"><complexContent><restriction base="soapenc:Array"><attribute ref="soapenc:arrayType" wsdl:arrayType="impl:ParcelLabelPrintResponseImpl[]"/></restriction></complexContent></complexType><complexType name="ArrayOfParcelControlRequestImpl"><complexContent><restriction base="soapenc:Array"><attribute ref="soapenc:arrayType" wsdl:arrayType="impl:ParcelControlRequestImpl[]"/></restriction></complexContent></complexType></schema></wsdl:types>
>   <wsdl:message name="manifestCarrierParcelResponse">
>   </wsdl:message>
>   <wsdl:message name="processBatchRequest">
>     <wsdl:part name="in0" type="impl:ArrayOfParcelControlRequestImpl"/>
>   </wsdl:message>
>   <wsdl:message name="printParcelRequest">
>     <wsdl:part name="in0" type="impl:DespatchRequestImpl"/>
>   </wsdl:message>
>   <wsdl:message name="manifestCarrierParcelRequest">
>     <wsdl:part name="in0" type="impl:ParcelControlRequestImpl"/>
>   </wsdl:message>
>   <wsdl:message name="cancelParcelLabelRequest">
>     <wsdl:part name="in0" type="impl:ParcelControlRequestImpl"/>
>   </wsdl:message>
>   <wsdl:message name="reprintParcelLabelResponse">
>   </wsdl:message>
>   <wsdl:message name="cancelParcelLabelResponse">
>   </wsdl:message>
>   <wsdl:message name="printParcelResponse">
>     <wsdl:part name="printParcelReturn" type="impl:ArrayOfParcelLabelPrintResponseImpl"/>
>   </wsdl:message>
>   <wsdl:message name="unManifestCarrierParcelResponse">
>   </wsdl:message>
>   <wsdl:message name="processBatchResponse">
>     <wsdl:part name="batchProcessReturn" type="impl:ArrayOfParcelControlRequestImpl"/>
>   </wsdl:message>
>   <wsdl:message name="DMSException">
>     <wsdl:part name="fault" type="impl:DMSException"/>
>   </wsdl:message>
>   <wsdl:message name="unManifestCarrierParcelRequest">
>     <wsdl:part name="in0" type="impl:ParcelControlRequestImpl"/>
>   </wsdl:message>
>   <wsdl:message name="reprintParcelLabelRequest">
>     <wsdl:part name="in0" type="impl:ParcelControlRequestImpl"/>
>   </wsdl:message>
>   <wsdl:portType name="ParcelLabelInterface">
>     <wsdl:operation name="printParcel" parameterOrder="in0">
>       <wsdl:input message="impl:printParcelRequest" name="printParcelRequest"/>
>       <wsdl:output message="impl:printParcelResponse" name="printParcelResponse"/>
>       <wsdl:fault message="impl:DMSException" name="DMSException"/>
>     </wsdl:operation>
>     <wsdl:operation name="cancelParcelLabel" parameterOrder="in0">
>       <wsdl:input message="impl:cancelParcelLabelRequest" name="cancelParcelLabelRequest"/>
>       <wsdl:output message="impl:cancelParcelLabelResponse" name="cancelParcelLabelResponse"/>
>       <wsdl:fault message="impl:DMSException" name="DMSException"/>
>     </wsdl:operation>
>     <wsdl:operation name="reprintParcelLabel" parameterOrder="in0">
>       <wsdl:input message="impl:reprintParcelLabelRequest" name="reprintParcelLabelRequest"/>
>       <wsdl:output message="impl:reprintParcelLabelResponse" name="reprintParcelLabelResponse"/>
>       <wsdl:fault message="impl:DMSException" name="DMSException"/>
>     </wsdl:operation>
>     <wsdl:operation name="manifestCarrierParcel" parameterOrder="in0">
>       <wsdl:input message="impl:manifestCarrierParcelRequest" name="manifestCarrierParcelRequest"/>
>       <wsdl:output message="impl:manifestCarrierParcelResponse" name="manifestCarrierParcelResponse"/>
>       <wsdl:fault message="impl:DMSException" name="DMSException"/>
>     </wsdl:operation>
>     <wsdl:operation name="unManifestCarrierParcel" parameterOrder="in0">
>       <wsdl:input message="impl:unManifestCarrierParcelRequest" name="unManifestCarrierParcelRequest"/>
>       <wsdl:output message="impl:unManifestCarrierParcelResponse" name="unManifestCarrierParcelResponse"/>
>       <wsdl:fault message="impl:DMSException" name="DMSException"/>
>     </wsdl:operation>
>     <wsdl:operation name="processBatch" parameterOrder="in0">
>       <wsdl:input message="impl:processBatchRequest" name="processBatchRequest"/>
>       <wsdl:output message="impl:processBatchResponse" name="processBatchResponse"/>
>       <wsdl:fault message="impl:DMSException" name="DMSException"/>
>     </wsdl:operation>
>   </wsdl:portType>
>   <wsdl:binding name="ParcelPrintServiceSoapBinding" type="impl:ParcelLabelInterface">
>     <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
>     <wsdl:operation name="printParcel">
>       <wsdlsoap:operation soapAction=""/>
>       <wsdl:input name="printParcelRequest">
>         <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:DMS:ParcelPrintService" use="encoded"/>
>       </wsdl:input>
>       <wsdl:output name="printParcelResponse">
>         <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:DMS:ParcelPrintService" use="encoded"/>
>       </wsdl:output>
>       <wsdl:fault name="DMSException">
>         <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:DMS:ParcelPrintService" use="encoded"/>
>       </wsdl:fault>
>     </wsdl:operation>
>     <wsdl:operation name="cancelParcelLabel">
>       <wsdlsoap:operation soapAction=""/>
>       <wsdl:input name="cancelParcelLabelRequest">
>         <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:DMS:ParcelPrintService" use="encoded"/>
>       </wsdl:input>
>       <wsdl:output name="cancelParcelLabelResponse">
>         <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:DMS:ParcelPrintService" use="encoded"/>
>       </wsdl:output>
>       <wsdl:fault name="DMSException">
>         <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:DMS:ParcelPrintService" use="encoded"/>
>       </wsdl:fault>
>     </wsdl:operation>
>     <wsdl:operation name="reprintParcelLabel">
>       <wsdlsoap:operation soapAction=""/>
>       <wsdl:input name="reprintParcelLabelRequest">
>         <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:DMS:ParcelPrintService" use="encoded"/>
>       </wsdl:input>
>       <wsdl:output name="reprintParcelLabelResponse">
>         <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:DMS:ParcelPrintService" use="encoded"/>
>       </wsdl:output>
>       <wsdl:fault name="DMSException">
>         <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:DMS:ParcelPrintService" use="encoded"/>
>       </wsdl:fault>
>     </wsdl:operation>
>     <wsdl:operation name="manifestCarrierParcel">
>       <wsdlsoap:operation soapAction=""/>
>       <wsdl:input name="manifestCarrierParcelRequest">
>         <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:DMS:ParcelPrintService" use="encoded"/>
>       </wsdl:input>
>       <wsdl:output name="manifestCarrierParcelResponse">
>         <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:DMS:ParcelPrintService" use="encoded"/>
>       </wsdl:output>
>       <wsdl:fault name="DMSException">
>         <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:DMS:ParcelPrintService" use="encoded"/>
>       </wsdl:fault>
>     </wsdl:operation>
>     <wsdl:operation name="unManifestCarrierParcel">
>       <wsdlsoap:operation soapAction=""/>
>       <wsdl:input name="unManifestCarrierParcelRequest">
>         <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:DMS:ParcelPrintService" use="encoded"/>
>       </wsdl:input>
>       <wsdl:output name="unManifestCarrierParcelResponse">
>         <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:DMS:ParcelPrintService" use="encoded"/>
>       </wsdl:output>
>       <wsdl:fault name="DMSException">
>         <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:DMS:ParcelPrintService" use="encoded"/>
>       </wsdl:fault>
>     </wsdl:operation>
>     <wsdl:operation name="processBatch">
>       <wsdlsoap:operation soapAction=""/>
>       <wsdl:input name="processBatchRequest">
>         <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:DMS:ParcelPrintService" use="encoded"/>
>       </wsdl:input>
>       <wsdl:output name="processBatchResponse">
>         <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:DMS:ParcelPrintService" use="encoded"/>
>       </wsdl:output>
>       <wsdl:fault name="DMSException">
>         <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:DMS:ParcelPrintService" use="encoded"/>
>       </wsdl:fault>
>     </wsdl:operation>
>   </wsdl:binding>
>   <wsdl:service name="ParcelLabelInterfaceService">
>     <wsdl:port binding="impl:ParcelPrintServiceSoapBinding" name="ParcelPrintService">
>       <wsdlsoap:address location="http://172.19.151.22:8080/dms/webServices/services/ParcelPrintService"/>
>     </wsdl:port>
>   </wsdl:service>
> </wsdl:definitions>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira