Hallo,
ich mache während meiner Umschulung zur Fachinformatikerin gerade ein Praktikum in diesem ich zu Übungszwecken für den Papierkorb ein Webservice programmieren soll, was ich auch gemacht habe. Jetzt soll ich in SoapUI den Webservice testen, doch leider bekomme ich immer folgende Fehlermeldung:
WSDLException (at/Definition):faultCode=INVALID_WSDL:Expected element '{http://schema.xmlsoap.org/wsdl/}definitions'
Im Internet hab ich zwar gelesen, dass andere auch das Problem haben, aber eine Lösung zum Problem hab ich leider nicht gefunden.
Vielleicht kann jemand von euch mir weiterhelfen.
Vielen Dank im Voraus.
Gruß Manuela
Hier noch meine WSDL:
[XML]<?xml version="1.0" encoding="utf-8"?>
<definition name = 'ClockService'
targetNamespace = 'http://127.0.0.1:82/clockService.wsdl'
xmlns = 'http://schemas.xmlsoap.org/wsdl/'
xmlns:soap = 'http://schema.xmlsoap.org/wsdl/soap/'
xmlns:tns = '//clockService.wsdl'
xmlns:xsd = 'http://www.w3.org/2001/xmlSchema'
>
<message name = 'getClockRequest'>
<part />
</message>
<message name = 'getClockResponse'>
<part name ='zeit' type = 'xsd:string' />
</message>
<portType name='getClockPort'>
<operation name='getClock'>
<input message = 'tns:getClockRequest'/>
<output message = 'tns:getClockResponse'/>
</operation>
</portType>
<binding name= 'getClockBinding' type = 'tns:getClockPort'>
<soap:binding style ="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
<option name ='getClock'>
<soapperation soapAction=''/>
<output>
<soap:body use ='literal'/>
</output>
<input>
<soap:body use ='literal'/>
</input>
</option>
</binding>
<service name= 'ClockService'>
<port name = 'getClockPort' binding = 'getClockBinding' >
<soap:adress location ='http://127.0.0.1:82/clockService.wsdl'/>
</port>
</service>
</definition>[/XML]
und das error log von SoapUI
ich mache während meiner Umschulung zur Fachinformatikerin gerade ein Praktikum in diesem ich zu Übungszwecken für den Papierkorb ein Webservice programmieren soll, was ich auch gemacht habe. Jetzt soll ich in SoapUI den Webservice testen, doch leider bekomme ich immer folgende Fehlermeldung:
WSDLException (at/Definition):faultCode=INVALID_WSDL:Expected element '{http://schema.xmlsoap.org/wsdl/}definitions'
Im Internet hab ich zwar gelesen, dass andere auch das Problem haben, aber eine Lösung zum Problem hab ich leider nicht gefunden.
Vielleicht kann jemand von euch mir weiterhelfen.
Vielen Dank im Voraus.
Gruß Manuela
Hier noch meine WSDL:
[XML]<?xml version="1.0" encoding="utf-8"?>
<definition name = 'ClockService'
targetNamespace = 'http://127.0.0.1:82/clockService.wsdl'
xmlns = 'http://schemas.xmlsoap.org/wsdl/'
xmlns:soap = 'http://schema.xmlsoap.org/wsdl/soap/'
xmlns:tns = '//clockService.wsdl'
xmlns:xsd = 'http://www.w3.org/2001/xmlSchema'
>
<message name = 'getClockRequest'>
<part />
</message>
<message name = 'getClockResponse'>
<part name ='zeit' type = 'xsd:string' />
</message>
<portType name='getClockPort'>
<operation name='getClock'>
<input message = 'tns:getClockRequest'/>
<output message = 'tns:getClockResponse'/>
</operation>
</portType>
<binding name= 'getClockBinding' type = 'tns:getClockPort'>
<soap:binding style ="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
<option name ='getClock'>
<soapperation soapAction=''/>
<output>
<soap:body use ='literal'/>
</output>
<input>
<soap:body use ='literal'/>
</input>
</option>
</binding>
<service name= 'ClockService'>
<port name = 'getClockPort' binding = 'getClockBinding' >
<soap:adress location ='http://127.0.0.1:82/clockService.wsdl'/>
</port>
</service>
</definition>[/XML]
und das error log von SoapUI
Code:
Wed Jul 23 10:01:17 CEST 2014:ERROR:com.eviware.soapui.impl.support.definition.support.InvalidDefinitionException
com.eviware.soapui.impl.support.definition.support.InvalidDefinitionException
at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlInterfaceDefinition.load(WsdlInterfaceDefinition.java:60)
at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlContext.loadDefinition(WsdlContext.java:70)
at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlContext.loadDefinition(WsdlContext.java:34)
at com.eviware.soapui.impl.support.definition.support.AbstractDefinitionContext.cacheDefinition(AbstractDefinitionContext.java:282)
at com.eviware.soapui.impl.support.definition.support.AbstractDefinitionContext.access$400(AbstractDefinitionContext.java:48)
at com.eviware.soapui.impl.support.definition.support.AbstractDefinitionContext$Loader.construct(AbstractDefinitionContext.java:249)
at com.eviware.soapui.support.swing.SwingWorkerDelegator.construct(SwingWorkerDelegator.java:50)
at com.eviware.soapui.support.swing.SwingWorker$2.run(SwingWorker.java:153)
at java.lang.Thread.run(Unknown Source)
Zuletzt bearbeitet: