Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Netzwerke (https://www.delphipraxis.net/14-netzwerke/)
-   -   Delphi-SOAP-Server - Fehler bei Nutzung in IDEA (2018) (https://www.delphipraxis.net/198853-delphi-soap-server-fehler-bei-nutzung-idea-2018-a.html)

Bernhard Geyer 5. Dez 2018 13:34

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:

WSDLTOJAVA ERROR: RPC/ENCODED WSDLS ARE NOT SUPPORTED WITH CXF
RPC/encoded is a vestige from before SOAP objects were defined with XML Schema. It’s not widely supported anymore. You will need to generate the stubs using Apache Axis 1.0, which is from the same era.
Was mach ich jetzt:gruebel:

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?

TiGü 5. Dez 2018 16:19

AW: Delphi-SOAP-Server - Fehler bei Nutzung in IDEA (2018)
 
Zeigst du uns die ersten paar Dutzend Zeilen deiner WSDL?

Bernhard Geyer 5. Dez 2018 16:33

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>

TiGü 5. Dez 2018 17:56

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/">

Bernhard Geyer 6. Dez 2018 19:52

AW: Delphi-SOAP-Server - Fehler bei Nutzung in IDEA (2018)
 
Zitat:

Zitat von TiGü (Beitrag 1420185)
Lösche mal alle Teile, die wie folgt lauten:
Code:
<soap:body use="encoded"
           encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">

Für einen Test des Java-Importers?
Der Code kommt so aus der Delphi-Implementierung raus.

TiGü 6. Dez 2018 21:00

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.

Bernhard Geyer 25. Apr 2019 12:56

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 04:09 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz