Skip to Content
avatar image
Former Member

Error importing WSDL file

Hi All,

When i try to import a WSDL file in the repository as an external definition i get the following error message:

"Unable to convert imported document to WSDL

Reason: Tag input cannot have an attribute message from namespace

Check the selected category"

Below here is the WSDL file. Can anyone see what i do wrong and/or is wrong with the WSDL file?

thanks a bunch!

Jeff

<?xml version="1.0" encoding="utf-8"?>

http://schemas.xmlsoap.org/wsdl/" xmlns:xs=" http://www.w3.org/2001/XMLSchema" name="IwsSAPPocservice"

targetNamespace="urn://test/" xmlns:tns="urn://test/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"

xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"

xmlns:ns1="urn:tpg_sapxi-wsSAPPocIntf">

<types>

<xs:schema targetNamespace="urn:tpg_sapxi-wsSAPPocIntf" xmlns="urn:tpg_sapxi-wsSAPPocIntf">

<xs:complexType name="TRemotableOrder">

<xs:sequence>

<xs:element name="DagID" type="xs:int"/>

<xs:element name="OrderNr" type="xs:int"/>

<xs:element name="BedrLoc_Proc_Cd" type="xs:int"/>

<xs:element name="KlantNr" type="xs:int"/>

<xs:element name="KlantNr_Verreken" type="xs:int"/>

<xs:element name="Aanpak_Loc_Cd" type="xs:int"/>

<xs:element name="Aanpak_OrderNr" type="xs:int"/>

<xs:element name="Aanpak_Order_Dt" type="xs:dateTime"/>

<xs:element name="OrderRegels" type="ns1:OrderRegelArray"/>

</xs:sequence>

</xs:complexType>

<xs:complexType name="OrderRegelArray">

<xs:complexContent>

<xs:restriction base="soapenc:Array">

<xs:sequence/>

<xs:attribute ref="soapenc:arrayType" n1:arrayType="ns1:TRemotableOrderRegel[]"

xmlns:n1="http://schemas.xmlsoap.org/wsdl/"/>

</xs:restriction>

</xs:complexContent>

</xs:complexType>

<xs:complexType name="TRemotableOrderRegel">

<xs:sequence>

<xs:element name="OrderRegelNr" type="xs:int"/>

<xs:element name="ProdAfsprNr" type="xs:int"/>

<xs:element name="ProdSrt_ID" type="xs:int"/>

<xs:element name="Landen_Groep" type="xs:int"/>

<xs:element name="Frank_Wijze_OptieSrt_Cd" type="xs:int"/>

<xs:element name="Ref_Aantal" type="xs:double"/>

<xs:element name="MeetEh_Cd_Aantal" type="xs:int"/>

<xs:element name="Ref_Gew" type="xs:double"/>

<xs:element name="MeetEh_Cd_Ref_Aantal" type="xs:int"/>

<xs:element name="Ptt_Aantal" type="xs:int"/>

<xs:element name="Ptt_Gewicht_Per_Zending" type="xs:double"/>

<xs:element name="Partij_Gewogen_Totaal" type="xs:double"/>

<xs:element name="Partij_Handmatig" type="xs:double"/>

<xs:element name="Metingen" type="ns1:OrderRegelMetingenArray"/>

<xs:element name="ProdAfspraken" type="ns1:OrderRegelProdAfsprakenArray"/>

</xs:sequence>

</xs:complexType>

<xs:complexType name="OrderRegelMetingenArray">

<xs:complexContent>

<xs:restriction base="soapenc:Array">

<xs:sequence/>

<xs:attribute ref="soapenc:arrayType" n1:arrayType="ns1:TRemotableOrderRegelMeting[]"

xmlns:n1="http://schemas.xmlsoap.org/wsdl/"/>

</xs:restriction>

</xs:complexContent>

</xs:complexType>

<xs:complexType name="OrderRegelProdAfsprakenArray">

<xs:complexContent>

<xs:restriction base="soapenc:Array">

<xs:sequence/>

<xs:attribute ref="soapenc:arrayType" n1:arrayType="ns1:TOrderRegelProdAfspraak[]"

xmlns:n1="http://schemas.xmlsoap.org/wsdl/"/>

</xs:restriction>

</xs:complexContent>

</xs:complexType>

<xs:complexType name="TRemotableOrderRegelMeting">

<xs:sequence>

<xs:element name="OptieSrt_Cd" type="xs:int"/>

<xs:element name="MeetEenh_Cd" type="xs:int"/>

<xs:element name="OrderRgl_Met_Wrd" type="xs:double"/>

</xs:sequence>

</xs:complexType>

<xs:complexType name="TOrderRegelProdAfspraak">

<xs:sequence>

<xs:element name="ProdAfsprNr" type="xs:int"/>

<xs:element name="Oordeel_Balie_Cd" type="xs:int"/>

<xs:element name="Res_Ctr_Vnw_1" type="xs:int"/>

<xs:element name="Res_Ctr_Vnw_2" type="xs:int"/>

<xs:element name="Res_Ctr_Vnw_3" type="xs:int"/>

<xs:element name="Ers_Afhandelingscode" type="xs:string"/>

<xs:element name="Min_Aantal_Voorw_Ind" type="xs:string"/>

</xs:sequence>

</xs:complexType>

<xs:complexType name="PrijsInfoArray">

<xs:complexContent>

<xs:restriction base="soapenc:Array">

<xs:sequence/>

<xs:attribute ref="soapenc:arrayType" n1:arrayType="ns1:TRemotablePrijsInfo[]"

xmlns:n1="http://schemas.xmlsoap.org/wsdl/"/>

</xs:restriction>

</xs:complexContent>

</xs:complexType>

<xs:complexType name="TRemotablePrijsInfo">

<xs:sequence>

<xs:element name="RegelNr" type="xs:int"/>

<xs:element name="PrijsNr" type="xs:int"/>

<xs:element name="Prijs" type="xs:double"/>

<xs:element name="Btw" type="xs:double"/>

</xs:sequence>

</xs:complexType>

</xs:schema>

</types>

<message name="prijsOrderRegel0Request">

<part name="klantnr_verreken" type="xs:int"/>

<part name="aanpak_loc_cd" type="xs:int"/>

<part name="orderrglnr" type="xs:int"/>

<part name="prodafsprnr" type="xs:int"/>

<part name="prodsrt_id" type="xs:int"/>

<part name="landen_groep" type="xs:int"/>

<part name="frank_wijze_optiesrt_cd" type="xs:int"/>

<part name="Prijs" type="xs:double"/>

<part name="BTW" type="xs:double"/>

</message>

<message name="prijsOrderRegel0Response">

<part name="Prijs" type="xs:double"/>

<part name="BTW" type="xs:double"/>

<part name="return" type="xs:int"/>

</message>

<message name="prijsOrderObj1Request">

<part name="order" type="ns1:TRemotableOrder"/>

</message>

<message name="prijsOrderObj1Response">

<part name="return" type="ns1:PrijsInfoArray"/>

</message>

<portType name="IwsSAPPoc">

<operation name="prijsOrderRegel">

<input message="tns:prijsOrderRegel0Request"/>

<output message="tns:prijsOrderRegel0Response"/>

</operation>

<operation name="prijsOrderObj">

<input message="tns:prijsOrderObj1Request"/>

<output message="tns:prijsOrderObj1Response"/>

</operation>

</portType>

<binding name="IwsSAPPocbinding" type="tns:IwsSAPPoc">

http://schemas.xmlsoap.org/soap/http"/>

<operation name="prijsOrderRegel">

<soap:operation soapAction="urn:tpg_sapxi-wsSAPPocIntf-IwsSAPPoc#prijsOrderRegel" style="rpc"/>

<input message="tns:prijsOrderRegel0Request">

http://schemas.xmlsoap.org/soap/encoding/"

namespace="urn:tpg_sapxi-wsSAPPocIntf-IwsSAPPoc"/>

</input>

<output message="tns:prijsOrderRegel0Response">

http://schemas.xmlsoap.org/soap/encoding/"

namespace="urn:tpg_sapxi-wsSAPPocIntf-IwsSAPPoc"/>

</output>

</operation>

<operation name="prijsOrderObj">

<soap:operation soapAction="urn:tpg_sapxi-wsSAPPocIntf-IwsSAPPoc#prijsOrderObj" style="rpc"/>

<input message="tns:prijsOrderObj1Request">

http://schemas.xmlsoap.org/soap/encoding/"

namespace="urn:tpg_sapxi-wsSAPPocIntf-IwsSAPPoc"/>

</input>

<output message="tns:prijsOrderObj1Response">

http://schemas.xmlsoap.org/soap/encoding/"

namespace="urn:tpg_sapxi-wsSAPPocIntf-IwsSAPPoc"/>

</output>

</operation>

</binding>

<service name="IwsSAPPocservice">

<port name="IwsSAPPocPort" binding="tns:IwsSAPPocbinding">

http://prid0059.tpgpost.local/SAPPocWebService/SAPPocWebService.exe/soap/IwsSAPPoc"/>

</port>

</service>

</definitions>

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Nov 28, 2005 at 02:00 PM

    Hi Jeffrey,

    Modify the file like this, it will work.

    <?xml version="1.0" encoding="ISO-8859-1"?>

    http://schemas.xmlsoap.org/wsdl/" xmlns:soapenc=" http://schemas.xmlsoap.org/soap/encoding/" > xmlns:tns="urn://test/" xmlns:xs=" http://www.w3.org/2001/XMLSchema" xmlns:ns1="urn:tpg_sapxi-wsSAPPocIntf" xmlns:mime=" http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap=" http://schemas.xmlsoap.org/wsdl/soap/" name="IwsSAPPocservice" targetNamespace="urn://test/">

    <types>

    <xs:schema xmlns="urn:tpg_sapxi-wsSAPPocIntf" targetNamespace="urn:tpg_sapxi-wsSAPPocIntf">

    <xs:complexType name="TRemotableOrder">

    <xs:sequence>

    <xs:element name="DagID" type="xs:int" />

    <xs:element name="OrderNr" type="xs:int" />

    <xs:element name="BedrLoc_Proc_Cd" type="xs:int" />

    <xs:element name="KlantNr" type="xs:int" />

    <xs:element name="KlantNr_Verreken" type="xs:int" />

    <xs:element name="Aanpak_Loc_Cd" type="xs:int" />

    <xs:element name="Aanpak_OrderNr" type="xs:int" />

    <xs:element name="Aanpak_Order_Dt" type="xs:dateTime" />

    <xs:element name="OrderRegels" type="ns1:OrderRegelArray" />

    </xs:sequence>

    </xs:complexType>

    <xs:complexType name="OrderRegelArray">

    <xs:complexContent>

    <xs:restriction base="soapenc:Array">

    <xs:sequence />

    http://schemas.xmlsoap.org/wsdl/" ref="soapenc:arrayType" n1:arrayType="ns1:TRemotableOrderRegel[]" />

    </xs:restriction>

    </xs:complexContent>

    </xs:complexType>

    <xs:complexType name="TRemotableOrderRegel">

    <xs:sequence>

    <xs:element name="OrderRegelNr" type="xs:int" />

    <xs:element name="ProdAfsprNr" type="xs:int" />

    <xs:element name="ProdSrt_ID" type="xs:int" />

    <xs:element name="Landen_Groep" type="xs:int" />

    <xs:element name="Frank_Wijze_OptieSrt_Cd" type="xs:int" />

    <xs:element name="Ref_Aantal" type="xs:double" />

    <xs:element name="MeetEh_Cd_Aantal" type="xs:int" />

    <xs:element name="Ref_Gew" type="xs:double" />

    <xs:element name="MeetEh_Cd_Ref_Aantal" type="xs:int" />

    <xs:element name="Ptt_Aantal" type="xs:int" />

    <xs:element name="Ptt_Gewicht_Per_Zending" type="xs:double" />

    <xs:element name="Partij_Gewogen_Totaal" type="xs:double" />

    <xs:element name="Partij_Handmatig" type="xs:double" />

    <xs:element name="Metingen" type="ns1:OrderRegelMetingenArray" />

    <xs:element name="ProdAfspraken" type="ns1:OrderRegelProdAfsprakenArray" />

    </xs:sequence>

    </xs:complexType>

    <xs:complexType name="OrderRegelMetingenArray">

    <xs:complexContent>

    <xs:restriction base="soapenc:Array">

    <xs:sequence />

    http://schemas.xmlsoap.org/wsdl/" ref="soapenc:arrayType" n1:arrayType="ns1:TRemotableOrderRegelMeting[]" />

    </xs:restriction>

    </xs:complexContent>

    </xs:complexType>

    <xs:complexType name="OrderRegelProdAfsprakenArray">

    <xs:complexContent>

    <xs:restriction base="soapenc:Array">

    <xs:sequence />

    http://schemas.xmlsoap.org/wsdl/" ref="soapenc:arrayType" n1:arrayType="ns1:TOrderRegelProdAfspraak[]" />

    </xs:restriction>

    </xs:complexContent>

    </xs:complexType>

    <xs:complexType name="TRemotableOrderRegelMeting">

    <xs:sequence>

    <xs:element name="OptieSrt_Cd" type="xs:int" />

    <xs:element name="MeetEenh_Cd" type="xs:int" />

    <xs:element name="OrderRgl_Met_Wrd" type="xs:double" />

    </xs:sequence>

    </xs:complexType>

    <xs:complexType name="TOrderRegelProdAfspraak">

    <xs:sequence>

    <xs:element name="ProdAfsprNr" type="xs:int" />

    <xs:element name="Oordeel_Balie_Cd" type="xs:int" />

    <xs:element name="Res_Ctr_Vnw_1" type="xs:int" />

    <xs:element name="Res_Ctr_Vnw_2" type="xs:int" />

    <xs:element name="Res_Ctr_Vnw_3" type="xs:int" />

    <xs:element name="Ers_Afhandelingscode" type="xs:string" />

    <xs:element name="Min_Aantal_Voorw_Ind" type="xs:string" />

    </xs:sequence>

    </xs:complexType>

    <xs:complexType name="PrijsInfoArray">

    <xs:complexContent>

    <xs:restriction base="soapenc:Array">

    <xs:sequence />

    http://schemas.xmlsoap.org/wsdl/" ref="soapenc:arrayType" n1:arrayType="ns1:TRemotablePrijsInfo[]" />

    </xs:restriction>

    </xs:complexContent>

    </xs:complexType>

    <xs:complexType name="TRemotablePrijsInfo">

    <xs:sequence>

    <xs:element name="RegelNr" type="xs:int" />

    <xs:element name="PrijsNr" type="xs:int" />

    <xs:element name="Prijs" type="xs:double" />

    <xs:element name="Btw" type="xs:double" />

    </xs:sequence>

    </xs:complexType>

    </xs:schema>

    </types>

    <message name="prijsOrderRegel0Request">

    <part name="klantnr_verreken" type="xs:int" />

    <part name="aanpak_loc_cd" type="xs:int" />

    <part name="orderrglnr" type="xs:int" />

    <part name="prodafsprnr" type="xs:int" />

    <part name="prodsrt_id" type="xs:int" />

    <part name="landen_groep" type="xs:int" />

    <part name="frank_wijze_optiesrt_cd" type="xs:int" />

    <part name="Prijs" type="xs:double" />

    <part name="BTW" type="xs:double" />

    </message>

    <message name="prijsOrderRegel0Response">

    <part name="Prijs" type="xs:double" />

    <part name="BTW" type="xs:double" />

    <part name="return" type="xs:int" />

    </message>

    <message name="prijsOrderObj1Request">

    <part name="order" type="ns1:TRemotableOrder" />

    </message>

    <message name="prijsOrderObj1Response">

    <part name="return" type="ns1:PrijsInfoArray" />

    </message>

    <portType name="IwsSAPPoc">

    <operation name="prijsOrderRegel">

    <b> <tns:input message="prijsOrderRegel0Request" />

    <tns:output message="prijsOrderRegel0Response" /></b>

    </operation>

    <operation name="prijsOrderObj">

    <b> <tns:input message="prijsOrderObj1Request" />

    <tns:output message="prijsOrderObj1Response" /></b>

    </operation>

    </portType>

    <binding name="IwsSAPPocbinding" type="tns:IwsSAPPoc">

    http://schemas.xmlsoap.org/soap/http" />

    <operation name="prijsOrderRegel">

    <soap:operation soapAction="urn:tpg_sapxi-wsSAPPocIntf-IwsSAPPoc#prijsOrderRegel" style="rpc" />

    <b> <tns:input message="prijsOrderRegel0Request"></b>

    http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:tpg_sapxi-wsSAPPocIntf-IwsSAPPoc" />

    <b> </tns:input>

    <tns:output message="prijsOrderRegel0Response"></b>

    http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:tpg_sapxi-wsSAPPocIntf-IwsSAPPoc" />

    <b></tns:output></b>

    </operation>

    <operation name="prijsOrderObj">

    <soap:operation soapAction="urn:tpg_sapxi-wsSAPPocIntf-IwsSAPPoc#prijsOrderObj" style="rpc" />

    <b> <tns:input message="prijsOrderObj1Request"></b>

    http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:tpg_sapxi-wsSAPPocIntf-IwsSAPPoc" />

    <b> </tns:input>

    <tns:output message="prijsOrderObj1Response"></b>

    http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:tpg_sapxi-wsSAPPocIntf-IwsSAPPoc" />

    <b></tns:output></b>

    </operation>

    </binding>

    <service name="IwsSAPPocservice">

    <port name="IwsSAPPocPort" binding="tns:IwsSAPPocbinding">

    http://prid0059.tpgpost.local/SAPPocWebService/SAPPocWebService.exe/soap/IwsSAPPoc" />

    </port>

    </service>

    </definitions>

    Add comment
    10|10000 characters needed characters exceeded