@Dark_Dante

WSDL файл, что я делаю не так?

Здравствуйте. Помогите пожалуйста с веб-сервисом
Пытаюсь написать собственный веб-сервис.
WSDL файл такой
<?xml version="1.0" encoding="utf-8"?>
<!--Created with Liquid XML Studio Developer Edition 9.0.11.3078 (http://www.liquid-technologies.com)-->
<definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://example.com/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" name="opt.inmark" targetNamespace="http://opt.inmark.biz" xmlns="http://schemas.xmlsoap.org/wsdl/">
    <types>
        <xs:schema xmlns:tns="http://schemas.xmlsoap.org/wsdl/" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://example.com/">
            <element name="InputType">
                <complexType>
                    <sequence>
                        <element name="input" type="string" />
                    </sequence>
                </complexType>
            </element>
            <element name="OutputType">
                <complexType>
                    <sequence>
                        <element name="output" type="string" />
                    </sequence>
                </complexType>
            </element>
        </xs:schema>
    </types>
    <message name="findingPartNumber">
        <part name="InputMessagePart" type="xs:string" />
    </message>
    <message name="resultFindPart">
        <part name="OutputMessagePart" type="xs:string" />
    </message>
    <message name="findingPartStep1">
        <part name="InputMessagePart" type="xs:string" />
    </message>
    <message name="resultFindPartStep1">
        <part name="OutputMessagePart" type="xs:string" />
    </message>
    <message name="findingPartStep2">
        <part name="InputMessagePart" type="xs:string" />
    </message>
    <message name="resultFindPartStep2">
        <part name="OutputMessagePart" type="xs:string" />
    </message>
    <message name="requestAddBacket">
        <part name="InputAddBacket" type="xs:string" />
    </message>
    <message name="responseAddBacket">
        <part name="OutputAddBacket" type="xs:string" />
    </message>
    <message name="requestEditBacket">
        <part name="InputEditBacket" type="xs:string" />
    </message>
    <message name="responseEditBacket">
        <part name="OutputEditBacket" type="xs:string" />
    </message>
    <message name="requestDeleteBacket">
        <part name="InputDeleteBacket" type="xs:string" />
    </message>
    <message name="responseDeleteBacket">
        <part name="OutputDeleteBacket" type="xs:string" />
    </message>
	<message name="requestMakeOrder">
        <part name="InputMakeOrder" type="xs:string" />
    </message>
    <message name="responseMakeOrder">
        <part name="OutputMakeOrder" type="xs:string" />
    </message>
    <portType name="partsPort">
        <operation name="SearchOffer">
            <input  xmlns:q1="http://opt.inmark.biz"  message="q1:findingPartNumber" />
            <output  xmlns:q2="http://opt.inmark.biz"  message="q2:resultFindPart" />
        </operation>
        <operation name="SearchOfferStep1">
            <input message="tns:findingPartStep1" />
            <output message="tns:resultFindPartStep1" />
        </operation>
        <operation name="SearchOfferStep2">
           <input message="tns:findingPartStep2" />
            <output message="tns:resultFindPartStep2" />
        </operation>
        <operation name="AddBacket">
            <input message="tns:requestAddBacket" />
            <output message="tns:responseAddBacket" />
        </operation>
        <operation name="EditBacket">
            <input message="tns:requestEditBacket" />
            <output message="tns:responseEditBacket" />
        </operation>
        <operation name="DeleteBacket">
            <input message="tns:requestDeleteBacket" />
            <output message="tns:responseDeleteBacket" />
        </operation>
        <operation name="MakeOrder">
            <output message="tns:responseMakeOrder" />
        </operation>
    </portType>
    <binding xmlns:q3="http://opt.inmark.biz" name="partsBinding" type="q3:partsPort">
        <soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
         <operation name="SearchOffer">
            <soap:operation soapAction="" />
            <input>
                <soap:body use="literal" />
            </input>
            <output>
                <soap:body use="literal" />
            </output>
        </operation>
        <operation name="SearchOfferStep1">
            <soap:operation soapAction="" />
            <input>
                <soap:body use="literal" />
            </input>
            <output>
                <soap:body use="literal" />
            </output>
        </operation>
        <operation name="SearchOfferStep2">
            <soap:operation soapAction="" />
            <input>
                <soap:body use="literal" />
            </input>
            <output>
                <soap:body use="literal" />
            </output>
        </operation>
        <operation name="AddBacket">
            <soap:operation soapAction="" />
            <input>
                <soap:body use="literal" />
            </input>
            <output>
                <soap:body use="literal" />
            </output>
        </operation>
        <operation name="EditBacket">
            <soap:operation soapAction="" />
            <input>
                <soap:body use="literal" />
            </input>
            <output>
                <soap:body use="literal" />
            </output>
        </operation>
        <operation name="DeleteBacket">
            <soap:operation soapAction="" />
            <input>
                <soap:body use="literal" />
            </input>
            <output>
                <soap:body use="literal" />
            </output>
        </operation>
        <operation name="MakeOrder">
            <soap:operation soapAction="" />
            <input>
                <soap:body use="literal" />
            </input>
            <output>
                <soap:body use="literal" />
            </output>
        </operation>
    </binding>
    <service name="getAllSupliers">
        <port xmlns:q4="http://opt.inmark.biz" name="getParts" binding="q4:partsBinding">
            <soap:address location="http://opt.inmark.biz/webservice" />
        </port>
    </service>
</definitions>

PHP SOAP клиент отрабатывает нормально все. А вот при попытке дернуть вебсервис чем нибудь другим, например расширением для Firefox "SOA client" выскакивает ошибка Procedure 'SearchOffer' not present
Что у меня не так с WSDL?
  • Вопрос задан
  • 655 просмотров
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы