Hi,
ich benutze nachfolgendes WSDL File. Mittels Axis1 bekomme ich einen Webservice generiert.
Axis2 sowie XFire hingegen verwehren mir jeglichen Zugriff aus verschiedenen Gründen. Zum einen bekomme ich den Fehler:
und zum anderen Validiert mir Eclipse das WSDL mit folgendem Fehler:
Dieser Fehler tritt genau hier auf:
Ich hoffe ihr könnt mir helfen da ich seit Tagen nach einer Lösung suche und nun nichts mit der Fehlermeldung anfangen kann.
Vielen Dank und viele Grüße,
Chris
ich benutze nachfolgendes WSDL File. Mittels Axis1 bekomme ich einen Webservice generiert.
Axis2 sowie XFire hingegen verwehren mir jeglichen Zugriff aus verschiedenen Gründen. Zum einen bekomme ich den Fehler:
Code:
java.lang.reflect.invocationTargetException
WS-I: (BP2406) The use attribute of a soapbind:body, soapbind:fault, soapbind:header and soapbind:headerfault does not have value of "literal".
Code:
<wsdl:binding name="BusinessConnectorSoap" type="tns:BusinessConnectorSoap"> <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="rpc" /> <wsdl:operation name="execute"> <soap:operation soapAction="" style="rpc" /> <wsdl:input> <soap:body use="encoded" namespace="urn:bc" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" /> </wsdl:input> <wsdl:output> <soap:body use="encoded" namespace="urn:bc" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" /> </wsdl:output> </wsdl:operation> </wsdl:binding>
Vielen Dank und viele Grüße,
Chris
Code:
<?xml version="1.0" encoding="utf-8"?> <wsdl:definitions xmlns:s0="http://xml.apache.org/xml-soap" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="urn:bc" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" targetNamespace="urn:bc" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"> <wsdl:types> <s:schema elementFormDefault="qualified" targetNamespace="http://xml.apache.org/xml-soap"> <s:import namespace="http://schemas.xmlsoap.org/soap/encoding/" /> <s:import namespace="http://schemas.xmlsoap.org/wsdl/" /> <s:complexType name="Map"> <s:sequence> <s:element minOccurs="0" maxOccurs="1" form="unqualified" name="item" type="s0:ArrayOfItemType" /> </s:sequence> </s:complexType> <s:complexType name="ArrayOfItemType"> <s:complexContent mixed="false"> <s:restriction base="soapenc:Array"> <s:attribute wsdl:arrayType="s0:itemType[]" ref="soapenc:arrayType" /> </s:restriction> </s:complexContent> </s:complexType> <s:complexType name="itemType"> <s:sequence> <s:element minOccurs="0" maxOccurs="1" form="unqualified" name="key" type="s:anyType" /> <s:element minOccurs="0" maxOccurs="1" form="unqualified" name="value" type="s:anyType" /> </s:sequence> </s:complexType> </s:schema> </wsdl:types> <wsdl:message name="executeSoapIn"> <wsdl:part name="farmName" type="s:string" /> <wsdl:part name="requestXML" type="s:string" /> <wsdl:part name="farmProps" type="s0:Map" /> </wsdl:message> <wsdl:message name="executeSoapOut"> <wsdl:part name="executeReturn" type="s:string" /> </wsdl:message> <wsdl:portType name="BusinessConnectorSoap"> <wsdl:operation name="execute"> <wsdl:input message="tns:executeSoapIn" /> <wsdl:output message="tns:executeSoapOut" /> </wsdl:operation> </wsdl:portType> <wsdl:binding name="BusinessConnectorSoap" type="tns:BusinessConnectorSoap"> <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="rpc" /> <wsdl:operation name="execute"> <soap:operation soapAction="" style="rpc" /> <wsdl:input> <soap:body use="encoded" namespace="urn:bc" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" /> </wsdl:input> <wsdl:output> <soap:body use="encoded" namespace="urn:bc" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" /> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:binding name="BusinessConnectorSoap12" type="tns:BusinessConnectorSoap"> <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="rpc" /> <wsdl:operation name="execute"> <soap12:operation soapAction="" style="rpc" /> <wsdl:input> <soap12:body use="encoded" namespace="urn:bc" encodingStyle="http://www.w3.org/2003/05/soap-encoding" /> </wsdl:input> <wsdl:output> <soap12:body use="encoded" namespace="urn:bc" encodingStyle="http://www.w3.org/2003/05/soap-encoding" /> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:service name="BusinessConnector"> <wsdl:port name="BusinessConnectorSoap" binding="tns:BusinessConnectorSoap"> <soap:address location="http://eclvms02/BCListener/BusinessConnectorService.asmx" /> </wsdl:port> <wsdl:port name="BusinessConnectorSoap12" binding="tns:BusinessConnectorSoap12"> <soap12:address location="http://eclvms02/BCListener/BusinessConnectorService.asmx" /> </wsdl:port> </wsdl:service> </wsdl:definitions>