AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Programmierung allgemein Netzwerke Delphi-SOAP-Server - Fehler bei Nutzung in IDEA (2018)

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

Ein Thema von Bernhard Geyer · begonnen am 5. Dez 2018 · letzter Beitrag vom 25. Apr 2019
Antwort Antwort
Benutzerbild von Bernhard Geyer
Bernhard Geyer

Registriert seit: 13. Aug 2002
17.169 Beiträge
 
Delphi 10.4 Sydney
 
#1

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

  Alt 5. Dez 2018, 14:34
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

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?
Windows Vista - Eine neue Erfahrung in Fehlern.
  Mit Zitat antworten Zitat
TiGü

Registriert seit: 6. Apr 2011
Ort: Berlin
3.058 Beiträge
 
Delphi 10.4 Sydney
 
#2

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

  Alt 5. Dez 2018, 17:19
Zeigst du uns die ersten paar Dutzend Zeilen deiner WSDL?
  Mit Zitat antworten Zitat
Benutzerbild von Bernhard Geyer
Bernhard Geyer

Registriert seit: 13. Aug 2002
17.169 Beiträge
 
Delphi 10.4 Sydney
 
#3

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

  Alt 5. Dez 2018, 17:33
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>
Windows Vista - Eine neue Erfahrung in Fehlern.
  Mit Zitat antworten Zitat
TiGü

Registriert seit: 6. Apr 2011
Ort: Berlin
3.058 Beiträge
 
Delphi 10.4 Sydney
 
#4

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

  Alt 5. Dez 2018, 18:56
Lösche mal alle Teile, die wie folgt lauten:
Code:
<soap:body use="encoded"
           encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
  Mit Zitat antworten Zitat
Benutzerbild von Bernhard Geyer
Bernhard Geyer

Registriert seit: 13. Aug 2002
17.169 Beiträge
 
Delphi 10.4 Sydney
 
#5

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

  Alt 6. Dez 2018, 20:52
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.
Windows Vista - Eine neue Erfahrung in Fehlern.
  Mit Zitat antworten Zitat
TiGü

Registriert seit: 6. Apr 2011
Ort: Berlin
3.058 Beiträge
 
Delphi 10.4 Sydney
 
#6

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

  Alt 6. Dez 2018, 22:00
Eine WSDL ist auch nur eine Textdatei.
Nur Mut, einfach mal löschen und versuchen zu importieren.
  Mit Zitat antworten Zitat
Benutzerbild von Bernhard Geyer
Bernhard Geyer

Registriert seit: 13. Aug 2002
17.169 Beiträge
 
Delphi 10.4 Sydney
 
#7

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

  Alt 25. Apr 2019, 13:56
Das Problem hat sich dahingehend gelöst das die WSDL-Datei falsch war.
Mit einer neuen WSDL klappte der Import.
Windows Vista - Eine neue Erfahrung in Fehlern.
  Mit Zitat antworten Zitat
Themen-Optionen Thema durchsuchen
Thema durchsuchen:

Erweiterte Suche
Ansicht

Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 00:19 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