![]() |
Delphi-SOAP-Server - Fehler bei Nutzung in IDEA (2018)
Beim Versuch den erstellten SOAP-Webservice in Java (IDEA) zu importieren, bekomme ich (bzw. Kollege) folgende Meldung:
Zitat:
Gibts irgendwelche Schalter (die ich jetzt noch nicht gefunden habe) um den WSDL-Export/SOAP-Nutzung steuern zu können um den moderneren Weg zu folgen? |
AW: Delphi-SOAP-Server - Fehler bei Nutzung in IDEA (2018)
Zeigst du uns die ersten paar Dutzend Zeilen deiner WSDL?
|
AW: Delphi-SOAP-Server - Fehler bei Nutzung in IDEA (2018)
Wenn nicht stört sogar alles (Ist eh gerade eher ein "Versucherla"):
Code:
<definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://tempuri.org/" 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:QueryPartsInfoIntf" name="IQueryPartsInfoservice" targetNamespace="http://tempuri.org/">
<types> <xs:schema xmlns="urn:QueryPartsInfoIntf" targetNamespace="urn:QueryPartsInfoIntf"> <xs:complexType name="TPartInfo"> <sequence xmlns="http://www.w3.org/2001/XMLSchema"> <xs:element name="PartNo" type="xs:string"/> <xs:element name="PartAvailable" type="ns1:TPartAvailable"/> <xs:element name="BasePrice" type="xs:double"/> </sequence> </xs:complexType> <xs:simpleType name="TPartAvailable"> <xs:restriction base="xs:string"> <xs:enumeration value="paNone"/> <xs:enumeration value="paSoon"/> <xs:enumeration value="paOK"/> </xs:restriction> </xs:simpleType> <xs:complexType name="TPartNoArray"> <xs:complexContent> <xs:restriction base="soapenc:Array"> <sequence xmlns="http://www.w3.org/2001/XMLSchema"/> <xs:attribute xmlns:n1="http://schemas.xmlsoap.org/wsdl/" ref="soapenc:arrayType" n1:arrayType="xs:string[]"/> </xs:restriction> </xs:complexContent> </xs:complexType> <xs:complexType name="TPartInfos"> <xs:complexContent> <xs:restriction base="soapenc:Array"> <sequence xmlns="http://www.w3.org/2001/XMLSchema"/> <xs:attribute xmlns:n1="http://schemas.xmlsoap.org/wsdl/" ref="soapenc:arrayType" n1:arrayType="ns1:TPartInfo[]"/> </xs:restriction> </xs:complexContent> </xs:complexType> </xs:schema> </types> <message name="GetPartInfo0Request"> <part name="PartNo" type="xs:string"/> </message> <message name="GetPartInfo0Response"> <part name="return" type="ns1:TPartInfo"/> </message> <message name="GetPartsInfo1Request"> <part name="PartsNo" type="ns1:TPartNoArray"/> </message> <message name="GetPartsInfo1Response"> <part name="return" type="ns1:TPartInfos"/> </message> <portType name="IQueryPartsInfo"> <operation name="GetPartInfo"> <input message="tns:GetPartInfo0Request"/> <output message="tns:GetPartInfo0Response"/> </operation> <operation name="GetPartsInfo"> <input message="tns:GetPartsInfo1Request"/> <output message="tns:GetPartsInfo1Response"/> </operation> </portType> <binding name="IQueryPartsInfobinding" type="tns:IQueryPartsInfo"> <binding xmlns="http://schemas.xmlsoap.org/wsdl/soap/" style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> <operation name="GetPartInfo"> <operation xmlns="http://schemas.xmlsoap.org/wsdl/soap/" soapAction="urn:QueryPartsInfoIntf-IQueryPartsInfo#GetPartInfo" style="rpc"/> <input> <body xmlns="http://schemas.xmlsoap.org/wsdl/soap/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:QueryPartsInfoIntf-IQueryPartsInfo"/> </input> <output> <body xmlns="http://schemas.xmlsoap.org/wsdl/soap/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:QueryPartsInfoIntf-IQueryPartsInfo"/> </output> </operation> <operation name="GetPartsInfo"> <operation xmlns="http://schemas.xmlsoap.org/wsdl/soap/" soapAction="urn:QueryPartsInfoIntf-IQueryPartsInfo#GetPartsInfo" style="rpc"/> <input> <body xmlns="http://schemas.xmlsoap.org/wsdl/soap/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:QueryPartsInfoIntf-IQueryPartsInfo"/> </input> <output> <body xmlns="http://schemas.xmlsoap.org/wsdl/soap/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:QueryPartsInfoIntf-IQueryPartsInfo"/> </output> </operation> </binding> <service name="IQueryPartsInfoservice"> <port name="IQueryPartsInfoPort" binding="tns:IQueryPartsInfobinding"> <address xmlns="http://schemas.xmlsoap.org/wsdl/soap/" location="https://localhost:8060/soap/IQueryPartsInfo"/> </port> </service> </definitions> |
AW: Delphi-SOAP-Server - Fehler bei Nutzung in IDEA (2018)
Lösche mal alle Teile, die wie folgt lauten:
Code:
<soap:body use="encoded"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> |
AW: Delphi-SOAP-Server - Fehler bei Nutzung in IDEA (2018)
Zitat:
Der Code kommt so aus der Delphi-Implementierung raus. |
AW: Delphi-SOAP-Server - Fehler bei Nutzung in IDEA (2018)
Eine WSDL ist auch nur eine Textdatei.
Nur Mut, einfach mal löschen und versuchen zu importieren. |
AW: Delphi-SOAP-Server - Fehler bei Nutzung in IDEA (2018)
Das Problem hat sich dahingehend gelöst das die WSDL-Datei falsch war.
Mit einer neuen WSDL klappte der Import. |
Alle Zeitangaben in WEZ +1. Es ist jetzt 09:46 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz