• 15 апреля стартует «Курс «SQL-injection Master» ©» от команды The Codeby

    За 3 месяца вы пройдете путь от начальных навыков работы с SQL-запросами к базам данных до продвинутых техник. Научитесь находить уязвимости связанные с базами данных, и внедрять произвольный SQL-код в уязвимые приложения.

    На последнюю неделю приходится экзамен, где нужно будет показать свои навыки, взломав ряд уязвимых учебных сайтов, и добыть флаги. Успешно сдавшие экзамен получат сертификат.

    Запись на курс до 25 апреля. Получить промодоступ ...

Delphi-client And Web-services .net

  • Автор темы Mephala
  • Дата начала
Статус
Закрыто для дальнейших ответов.
M

Mephala

Привет!
Я столкнулась со следующей проблемой.
Мне необходимо доработать старые дельфовские программы (7 версия), чтобы они могли обращаться и получать данные от веб-сервисов .NET SharepointServer 2007.
Кто-нибудь сталкивался с чем-то подобным?
У меня возник вопрос отсылки входных параметров в качестве родных для Шарепоинта объектов (например, SPQuery) в веб-сервис.
Помогите, пожалуйства, разобраться.
Спасибо.
 
M

Mephala

Импортер создает wsdl-описание. Но когда видит неизвестные типы данных, сообщает, что не знает, как их интерпретировать. Например
// ************************************************************************ //
// The following types, referred to in the WSDL document are not being represented
// in this file. They are either aliases[@] of other types represented or were referred
// to but never[!] declared in the document. The types from the latter category
// typically map to predefined/known XML or Borland types; however, they could also
// indicate incorrect WSDL documents that failed to declare or import a schema type.
// ************************************************************************ //
// !:listProperties - "http://www.w3.org/2001/XMLSchema"
// !:newFields - "http://www.w3.org/2001/XMLSchema"
// !:deleteFields - "http://www.w3.org/2001/XMLSchema"
...
Они представляют из себя объекты .NET XMLNode, а вот как правильно их определить в качестве входных параметров не знаю.
Буду рада любой помощи.
Спасибо.
 
M

Mephala

Вот wsdl-описание. Я оставлила только один веб-сервис, так как у остальных там все тоже самое. Проблема идет с передачей объекта XMLNode.

Код:
- <wsdl:definitions 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="http://schemas.microsoft.com/sharepoint/soap/" xmlns:s1="http://microsoft.com/wsdl/types/" 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="http://schemas.microsoft.com/sharepoint/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
- <wsdl:types>
- <s:schema elementFormDefault="qualified" targetNamespace="http://schemas.microsoft.com/sharepoint/soap/">
<s:import namespace="http://www.w3.org/2001/XMLSchema" />
<s:import namespace="http://microsoft.com/wsdl/types/" />
- <s:element name="GetListItems">
- <s:complexType>
- <s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="listName" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="viewName" type="s:string" />
- <s:element minOccurs="0" maxOccurs="1" name="query">
- <s:complexType mixed="true">
- <s:sequence>
<s:any />
</s:sequence>
</s:complexType>
</s:element>
- <s:element minOccurs="0" maxOccurs="1" name="viewFields">
- <s:complexType mixed="true">
- <s:sequence>
<s:any />
</s:sequence>
</s:complexType>
</s:element>
<s:element minOccurs="0" maxOccurs="1" name="rowLimit" type="s:string" />
- <s:element minOccurs="0" maxOccurs="1" name="queryOptions">
- <s:complexType mixed="true">
- <s:sequence>
<s:any />
</s:sequence>
</s:complexType>
</s:element>
<s:element minOccurs="0" maxOccurs="1" name="webID" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
- <s:element name="GetListItemsResponse">
- <s:complexType>
- <s:sequence>
- <s:element minOccurs="0" maxOccurs="1" name="GetListItemsResult">
- <s:complexType mixed="true">
- <s:sequence>
<s:any />
</s:sequence>
</s:complexType>
</s:element>
</s:sequence>
</s:complexType>
</s:element>
</s:schema>
- <s:schema elementFormDefault="qualified" targetNamespace="http://microsoft.com/wsdl/types/">
- <s:simpleType name="guid">
- <s:restriction base="s:string">
<s:pattern value="[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}" />
</s:restriction>
</s:simpleType>
</s:schema>
</wsdl:types>
- <wsdl:message name="GetListItemsSoapIn">
<wsdl:part name="parameters" element="tns:GetListItems" />
</wsdl:message>
- <wsdl:message name="GetListItemsSoapOut">
<wsdl:part name="parameters" element="tns:GetListItemsResponse" />
</wsdl:message>
- <wsdl:portType name="ListsSoap">
- <wsdl:operation name="GetListItems">
<wsdl:input message="tns:GetListItemsSoapIn" />
<wsdl:output message="tns:GetListItemsSoapOut" />
</wsdl:operation>
</wsdl:portType>
- <wsdl:binding name="ListsSoap" type="tns:ListsSoap">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
- <wsdl:operation name="GetListItems">
<soap:operation soapAction="http://schemas.microsoft.com/sharepoint/soap/GetListItems" style="document" />
- <wsdl:input>
<soap:body use="literal" />
</wsdl:input>
- <wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
- <wsdl:binding name="ListsSoap12" type="tns:ListsSoap">
<soap12:binding transport="http://schemas.xmlsoap.org/soap/http" />
- <wsdl:operation name="GetListItems">
<soap12:operation soapAction="http://schemas.microsoft.com/sharepoint/soap/GetListItems" style="document" />
- <wsdl:input>
<soap12:body use="literal" />
</wsdl:input>
- <wsdl:output>
<soap12:body use="literal" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
- <wsdl:service name="Lists">
- <wsdl:port name="ListsSoap" binding="tns:ListsSoap">
<soap:address location="http://shp/examples/devlists/_vti_bin/lists.asmx" />
</wsdl:port>
- <wsdl:port name="ListsSoap12" binding="tns:ListsSoap12">
<soap12:address location="http://shp/examples/devlists/_vti_bin/lists.asmx" />
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
 
Статус
Закрыто для дальнейших ответов.
Мы в соцсетях:

Обучение наступательной кибербезопасности в игровой форме. Начать игру!