|
Ошибка при добавлении WSСсылки "Неверный формат" | ☑ | ||
---|---|---|---|---|
0
pandrew1
07.01.16
✎
22:18
|
Здравствуйте!
Коллеги, есть WSDL: <definitions xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="urn:TestPlus" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="urn:TestPlus"> <types> <xsd:schema targetNamespace="urn:TestPlus"> <xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/"/> <xsd:import namespace="http://schemas.xmlsoap.org/wsdl/"/> <xsd:complexType name="ArrayOfInt"> <xsd:complexContent> <xsd:restriction base="SOAP-ENC:Array"> <xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="xsd:int[]"/> </xsd:restriction> </xsd:complexContent> </xsd:complexType> <xsd:complexType name="ArrayOfString"> <xsd:complexContent> <xsd:restriction base="SOAP-ENC:Array"> <xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="xsd:string[]"/> </xsd:restriction> </xsd:complexContent> </xsd:complexType> </xsd:schema> </types> <message name="helloRequest"> <part name="name" type="xsd:string"/> </message> <message name="helloResponse"> <part name="return" type="xsd:string"/> </message> <message name="hello_returnArrayOfStringRequest"> <part name="name" type="xsd:string"/> </message> <message name="hello_returnArrayOfStringResponse"> <part name="return" type="tns:ArrayOfString"/> </message> <message name="hello_returnArrayOfIntRequest"> <part name="name" type="xsd:string"/> </message> <message name="hello_returnArrayOfIntResponse"> <part name="return" type="tns:ArrayOfInt"/> </message> <message name="hello1Request"/> <message name="hello1Response"> <part name="return" type="tns:string"/> </message> <portType name="TestPlusPortType"> <operation name="hello"> <documentation>Says hello to the caller</documentation> <input message="tns:helloRequest"/> <output message="tns:helloResponse"/> </operation> <operation name="hello_returnArrayOfString"> <documentation>Return simple array of string</documentation> <input message="tns:hello_returnArrayOfStringRequest"/> <output message="tns:hello_returnArrayOfStringResponse"/> </operation> <operation name="hello_returnArrayOfInt"> <documentation>Return simple array of integer</documentation> <input message="tns:hello_returnArrayOfIntRequest"/> <output message="tns:hello_returnArrayOfIntResponse"/> </operation> <operation name="hello1"> <input message="tns:hello1Request"/> <output message="tns:hello1Response"/> </operation> </portType> <binding name="TestPlusBinding" type="tns:TestPlusPortType"> <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> <operation name="hello"> <soap:operation soapAction="urn:TestPlus/hello" style="rpc"/> <input> <soap:body use="literal" namespace="urn:TestPlus"/> </input> <output> <soap:body use="literal" namespace="urn:TestPlus"/> </output> </operation> <operation name="hello_returnArrayOfString"> <soap:operation soapAction="urn:TestPlus/hello_arrayOfString" style="rpc"/> <input> <soap:body use="literal" namespace="urn:TestPlus"/> </input> <output> <soap:body use="literal" namespace="urn:TestPlus"/> </output> </operation> <operation name="hello_returnArrayOfInt"> <soap:operation soapAction="urn:TestPlus/hello_arrayOfInt" style="rpc"/> <input> <soap:body use="literal" namespace="urn:TestPlus"/> </input> <output> <soap:body use="literal" namespace="urn:TestPlus"/> </output> </operation> <operation name="hello1"> <soap:operation soapAction="literal" style="Return hello. No arguments"/> <input> <soap:body use="encoded" namespace="rpc" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="rpc" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> </binding> <service name="TestPlus"> <port name="TestPlusPort" binding="tns:TestPlusBinding"> <soap:address location="http://192.168.1.1/ws/ws.php"/> </port> </service> </definitions> В конфигурации (8.3) добавляю новую WSСсылку http://192.168.1.1/ws/ws.php и получаю ошибку "Неверный формат". Ошибка исчезает если убрать метод hello1. Метод hello1 не имеет аргументов. Если методу hello1 добавить аргумент, то больше не ругается. Как определить метод без аргументов в WSDL, чтобы 1С не ругался на определение входящего сообщения метода? WSDL формирую с помощью NuSOAP. |
|||
1
pandrew1
07.01.16
✎
22:20
|
Коллеги, как отредактировать предыдущее сообщение чтоб код был под спойлером и оформлен как код?
|
Форум | Правила | Описание | Объявления | Секции | Поиск | Книга знаний | Вики-миста |