wsdl-Bindung, die nicht in der wsdl-Datei
Habe ich die folgende wsdl-Datei:
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="http://www.minfin.fgov.be/bbf/extern/myMinfin/" xmlns="http://www.minfin.fgov.be/bbf/extern/myMinfin" xmlns:pols="http://www.minfin.fgov.be/bbf/extern/myMinfin/policies"
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>
<xsd:schema targetNamespace="http://www.minfin.fgov.be/bbf/extern/myMinfin/">
<xsd:import namespace="http://www.minfin.fgov.be/bbf/extern/myMinfin/policies" schemaLocation="getPolicies.xsd" />
</xsd:schema>
</wsdl:types>
<wsdl:message name="policiesForPersonRequest">
<wsdl:part name="policiesForPerson" element="pols:policiesForPersonRequest" />
</wsdl:message>
<wsdl:message name="policiesOutput">
<wsdl:part name="policies" element="pols:policiesResponse" />
</wsdl:message>
<wsdl:portType name="MyMinfinService">
<wsdl:operation name="getPoliciesForPerson">
<wsdl:input message="policiesForPersonRequest" />
<wsdl:output message="policiesOutput" />
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="MyMinfinServiceHTTPBinding" type="MyMinfinService">
<wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
<wsdl:operation name="getPoliciesForPerson">
<wsdlsoap:operation soapAction="" />
<wsdl:input>
<wsdlsoap:body use="literal" />
</wsdl:input>
<wsdl:output>
<wsdlsoap:body use="literal" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="MyMinfinServicePorts">
<wsdl:port binding="MyMinfinServiceHTTPBinding" name="MyMinfinService">
<wsdlsoap:address location="http://localhost:7001/bbf/MyMinfinService" />
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
Xsd dahinter:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns="http://www.minfin.fgov.be/bbf/extern/myMinfin/policies" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.minfin.fgov.be/bbf/extern/myMinfin/policies"
elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:element name="policiesForPersonRequest">
<xs:annotation>
<xs:documentation>The request from where all available policies must be returned.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="FI_enterpriseNumber">
<xs:annotation>
<xs:documentation>The KBO / enterprise number of the financial institution.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:length value="10" />
<xs:pattern value="[0-9]{10}" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="RRNOrBIS">
<xs:annotation>
<xs:documentation>The national number or bis number.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:length value="11" />
<xs:pattern value="[0-9]{11}" />
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="policiesResponse">
<xs:annotation>
<xs:documentation>Available policies.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="policy" maxOccurs="999">
<xs:annotation>
<xs:documentation>A policy.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="policyNumber" >
<xs:annotation>
<xs:documentation>Insurance policy number.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:length value="255" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="policyName" type="xs:string">
<xs:annotation>
<xs:documentation>The name of the policy.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
Bin ich immer die folgende Fehlermeldung:
wsdl:binding "{http://www.minfin.fgov.be/bbf/extern/myMinfin}MyMinfinServiceHTTPBinding" not found in the wsdl: file:/C:/BBF2/FUP_04_Implementation/FUP_00_Source/Project_Folder/BBF_EXTERNAL_CONTRACTS/src/main/resources/myMinfin/myMinfin.wsdl
was falsch sein könnte?
Ich wählte Sie nicht, um die namespaces etc mehr kompakt, denn, wer weiß, den Fehler können drin sein..
Wer hat werfen diese Ausnahme? Bitte beschreiben Sie Ihre Umgebung. Ich sehe nicht ein Problem in Ihrer WSDL.
Diese Ausnahmen, die geworfen wird, wenn ich laufen gehe "wsimport myMinfin.wsdl - " Befehl in der cmd.
Versuchen Sie, öffnen Sie die wsdl-Datei in andere Tools wie SoapUI oder Ihre IDE. Es kann klären das Problem.
Die wsdl erstellt / geöffnet in eclipse und zeigt keinen Fehler. SoapUI bietet die perfekte Fehler "es war etwas falsch in Ihrer wsdl"..
Wer hat werfen diese Ausnahme? Bitte beschreiben Sie Ihre Umgebung. Ich sehe nicht ein Problem in Ihrer WSDL.
Diese Ausnahmen, die geworfen wird, wenn ich laufen gehe "wsimport myMinfin.wsdl - " Befehl in der cmd.
Versuchen Sie, öffnen Sie die wsdl-Datei in andere Tools wie SoapUI oder Ihre IDE. Es kann klären das Problem.
Die wsdl erstellt / geöffnet in eclipse und zeigt keinen Fehler. SoapUI bietet die perfekte Fehler "es war etwas falsch in Ihrer wsdl"..
InformationsquelleAutor GregD | 2014-05-06
Du musst angemeldet sein, um einen Kommentar abzugeben.
Liebe der Fehler.. Problem ist behoben.
ersetzt
mit
nahm mich 3 Stunden zu finden!
InformationsquelleAutor GregD
Wenn dieser Fehler aufgetreten ist, dann fügen Sie Webservice-annotation, um Ihre client-Seite-Schnittstelle, die bereits entwickelt, die auf service-Seite.
Ich Stand vor diesem Problem; ich habe konfiguriert Frühjahr mit CXF. Ich habe bereits entwickelt, den service und den Aufruf von client.
Hoffe, das wird helfen.
InformationsquelleAutor Atul