<?xml version='1.0' encoding="utf-8"?>
      <rss version='2.0'>
      <channel>
      <title>Форум на Исходниках.RU</title>
      <link>https://forum.sources.ru</link>
      <description>Форум на Исходниках.RU</description>
      <generator>Форум на Исходниках.RU</generator>
  	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=294395&amp;view=findpost&amp;p=2892923</guid>
        <pubDate>Thu, 12 May 2011 10:49:05 +0000</pubDate>
        <title>обмен данними с чужым сервисом</title>
        <link>https://forum.sources.ru/index.php?showtopic=294395&amp;view=findpost&amp;p=2892923</link>
        <description><![CDATA[SectoRz: Проблема решилась: вместо Service Reference используйте Web Reference <br>
<a class='tag-url' href='http://forum.sources.ru/index.php?showtopic=330908' target='_blank'>web services, soap</a>]]></description>
        <author>SectoRz</author>
        <category>.NET: Распределенные приложения</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=294395&amp;view=findpost&amp;p=2882954</guid>
        <pubDate>Tue, 26 Apr 2011 12:22:23 +0000</pubDate>
        <title>обмен данними с чужым сервисом</title>
        <link>https://forum.sources.ru/index.php?showtopic=294395&amp;view=findpost&amp;p=2882954</link>
        <description><![CDATA[SectoRz: у меня подобная задача, я сгенерировал прокси-класс test (отображается в Service Reference)...<br>
можете привести пример как с ним работать, чтобы получить данные...<br>
<br>
в ответ на такой запрос:<br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">&#60;soapenv:Envelope xmlns:soapenv=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot; xmlns:cm=&quot;http://company.ru/cm&quot;&#62;</div><div class="code_line">&nbsp;&nbsp;&#60;soapenv:Header/&#62;</div><div class="code_line">&nbsp;&nbsp;&#60;soapenv:Body&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &#60;cm:SimpleSearchQuery&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&#60;cm:searchExpression&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; /Bank[@docNumber=&quot;555&quot;]</div><div class="code_line">&nbsp;&nbsp;&#60;/cm:searchExpression&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &#60;/cm:SimpleSearchQuery&#62;</div><div class="code_line">&nbsp;&nbsp;&#60;/soapenv:Body&#62;</div><div class="code_line">&#60;/soapenv:Envelope&#62;</div></ol></div></div></div></div><script>preloadCodeButtons('1');</script><br>
<br>
я получаю след. ответ:<br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">&#60;soapenv:Envelope xmlns:soapenv=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot; xmlns:xsd=&quot;http://www.w3.org/2001/XMLSchema&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xmlns:wsa=&quot;http://schemas.xmlsoap.org/ws/2004/08/addressing&quot;&#62;</div><div class="code_line">&nbsp;&nbsp;&#60;soapenv:Header&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &#60;wsa:MessageID soapenv:mustUnderstand=&quot;0&quot;&#62;uuid:123456789-0c222-1234-a123-bddbbddbbbbb&#60;/wsa:MessageID&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &#60;wsa:To soapenv:mustUnderstand=&quot;0&quot;&#62;http://www.sonicsw.com/esb/replyto-destination-required&#60;/wsa:To&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &#60;wsa:Action soapenv:mustUnderstand=&quot;0&quot;&#62;http://company.ru/webservice/BPMPortType/SimpleSearchResponse&#60;/wsa:Action&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &#60;wsa:From soapenv:mustUnderstand=&quot;0&quot; xmlns=&quot;http://schemas.xmlsoap.org/ws/2004/08/addressing&quot;&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&#60;wsa:Address&#62;http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous&#60;/wsa:Address&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &#60;/wsa:From&#62;</div><div class="code_line">&nbsp;&nbsp;&#60;/soapenv:Header&#62;</div><div class="code_line">&nbsp;&nbsp;&#60;soapenv:Body&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &#60;cm:SimpleSearchResult xmlns:cm=&quot;http://company.ru/cm&quot;&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; </div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &#60;ArrayOfItems&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#60;ns1:Item URI=&quot;http://117.17.117.7/CMBSpecificWebService/CMBGetPIDUrl?pid=55 1 ICM8 icmnlsdb9 Bank59 26 A100... A11... 14 1234&amp;server=icmnlsdb&amp;dsType=ICM&quot; xmlns=&quot;http://www.ibm.com/xmlns/db2/cm/beans/1.0/schema&quot; xmlns:ns1=&quot;http://www.ibm.com/xmlns/db2/cm/beans/1.0/schema&quot;&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;ns1:ItemXML&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#60;ns1:Financial DM_Class=&quot;Банковские документы&quot; DM_State=&quot;Введен&quot; FileName=&quot;Квитанция 5.pdf&quot; Filial=&quot;Головной офис&quot; Title=&quot;Квитанция к запросу&quot; cm:PID=&quot;55 3 ICM8 icmnlsdb9 Bank59 26 A100... A11... 14 1234&quot; docCategory=&quot;Касса&quot; docDate=&quot;2010-08-02&quot; docLocation=&quot;Центральный офис&quot; docNumber=&quot;555&quot; docNumber=&quot;555&quot; docSum=&quot;100.00&quot; docType=&quot;Квитанция 5&quot; orderSum=&quot;100.00&quot; xmlns:cm=&quot;http://www.ibm.com/xmlns/db2/cm/api/1.0/schema&quot;&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;cm:properties type=&quot;document&quot;&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#60;cm:lastChangeUserid value=&quot;PUPKIN&quot;/&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#60;cm:lastChangeTime value=&quot;2011-03-16T13:39:09.451&quot;/&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#60;cm:createUserid value=&quot;PUPKIN&quot;/&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#60;cm:createTime value=&quot;2011-03-16T13:39:09.451&quot;/&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#60;cm:semanticType value=&quot;1&quot;/&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#60;cm:ACL name=&quot;PublicReadACL&quot;/&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#60;cm:lastOperation name=&quot;RETRIEVE&quot; value=&quot;SUCCESS&quot;/&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;/cm:properties&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;ns1:ICMBASE cm:PID=&quot;55 3 ICM8 icmnlsdb7 ICMBASE58 26 A100... A11C16B63909E388691 13 300&quot; cm:partNumber=&quot;1&quot;&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#60;cm:properties type=&quot;item&quot; xsi:type=&quot;cm:partPropertyType&quot;&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;cm:lastChangeUserid value=&quot;PUPKIN&quot;/&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;cm:lastChangeTime value=&quot;2011-03-16T13:39:09.451&quot;/&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;cm:createUserid value=&quot;PUPKIN&quot;/&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;cm:createTime value=&quot;2011-03-16T13:39:09.451&quot;/&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;cm:semanticType value=&quot;128&quot;/&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;cm:ACL name=&quot;PublicReadACL&quot;/&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;cm:lastOperation name=&quot;RETRIEVE&quot; value=&quot;SUCCESS&quot;/&#62;</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#60;/cm:properties&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#60;cm:resourceObject MIMEType=&quot;application/pdf&quot; RMName=&quot;rmdb&quot; SMSCollName=&quot;CBR.CLLCT001&quot; externalObjectName=&quot;&quot; originalFileName=&quot;Квитанция 5.pdf&quot; resourceFlag=&quot;2&quot; resourceName=&quot;&quot; size=&quot;28900&quot;&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;cm:URL value=&quot;http://testhq.ru:9080/icmrm/ICMResourceManager/Квитанция 5.pdf?order=retrieve&amp;item-id=A1001001A1155555555555501111&amp;version=1&amp;collection=CBR.CLLCT001&amp;libname=icmnlsdb&amp;update-date=2011-03-16+13%3A39%3A09.451764&amp;token=A4E6.HP86XE6_f0_gZuQv6yU;&amp;content-length=0&quot;/&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#60;/cm:resourceObject&#62;</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </div><div class="code_line">&nbsp;</div><div class="code_line">&#60;/cm:resourceObject&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;/ns1:ICMBASE&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#60;/ns1:Bank&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;/ns1:ItemXML&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#60;/ns1:Item&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&#60;/ArrayOfItems&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; </div><div class="code_line">&nbsp;&nbsp; &nbsp;&#60;/cm:SimpleSearchResult&#62;</div><div class="code_line">&nbsp;&nbsp;&#60;/soapenv:Body&#62;</div><div class="code_line">&#60;/soapenv:Envelope&#62;</div></ol></div></div></div></div><br>
<br>
Как вытащить данные (внутренности &lt;ArrayOfItems&gt;...&lt;/ArrayOfItems&gt;)?<br>
<br>
Прикрепил скрин со структурой сгенерированного в VS прокси-класса.<br>
<br>
Я пробую делать так:<br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;String testService = &quot;http://externalserver.ru:2584/wsdl/integration/services/CMInt_1-0&quot;;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;String prodService = null;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; </div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// создаем объект-клиент рокси сервера</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;test.BPMPortTypeClient client = new test.BPMPortTypeClient();</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;client.Open();</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; </div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; </div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; </div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// запрос</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;test.SimpleSearchQuery q = new test.SimpleSearchQuery();</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;q.searchExpression = &quot;/Bank[@docNumber = 555]&quot;;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; </div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// для хранения результата</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;test.SimpleSearchResult res = null;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; </div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// Выполняем метод SimpleSearch</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;res = client.SimpleSearch(q);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; </div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; </div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if (res != null) {</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; </div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//parseResult(res);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;System.Xml.XmlElement[] fields = res.Any;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; </div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;foreach (XmlElement field in fields)</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Console.WriteLine(field.Value);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; </div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; </div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;else Console.WriteLine(&quot;res is null&quot;);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; </div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;client.Close();</div></ol></div></div></div></div><br>
но ничего не выходит - не могу получить данные(((<br>
System.Xml.XmlElement[] fields    походу пуст<br>
<br>
<span class="b-attach" data-size="26679" data-hits="579" data-attach-id="9263" data-attach-post-id="2882954">
			<span class="b-attach__title"></span><a class='b-attach-link' href='https://forum.sources.ru/index.php?act=Attach&amp;type=post&amp;id=2882954&amp;attach_id=9263' title='Скачать файл' target='_blank'>vv.PNG</a> (, : 579)
		</span>]]></description>
        <author>SectoRz</author>
        <category>.NET: Распределенные приложения</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=294395&amp;view=findpost&amp;p=2499902</guid>
        <pubDate>Tue, 09 Feb 2010 06:57:30 +0000</pubDate>
        <title>обмен данними с чужым сервисом</title>
        <link>https://forum.sources.ru/index.php?showtopic=294395&amp;view=findpost&amp;p=2499902</link>
        <description><![CDATA[Kobra: <strong class='tag-b'>GarF1eld</strong> спосибо.<br>
оказывется все очен просто :)]]></description>
        <author>Kobra</author>
        <category>.NET: Распределенные приложения</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=294395&amp;view=findpost&amp;p=2499371</guid>
        <pubDate>Mon, 08 Feb 2010 15:04:23 +0000</pubDate>
        <title>обмен данними с чужым сервисом</title>
        <link>https://forum.sources.ru/index.php?showtopic=294395&amp;view=findpost&amp;p=2499371</link>
        <description><![CDATA[GarF1eld: самый простой способ - пусть студия или svcutil сгенерирует прокси. с wsdl сервисов должна генерить на ура <br>
<br>
<span class="tag-color tag-color-named" data-value="gray" style="color: gray"><span class='tag-size' data-value='7' style='font-size:7pt;'>Добавлено <time class="tag-mergetime" datetime="2010-02-08T15:05:01+00:00">08.02.10, 15:05</time></span></span><br>
скорми им адрес wsdl сервиса]]></description>
        <author>GarF1eld</author>
        <category>.NET: Распределенные приложения</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=294395&amp;view=findpost&amp;p=2498864</guid>
        <pubDate>Mon, 08 Feb 2010 08:30:29 +0000</pubDate>
        <title>обмен данними с чужым сервисом</title>
        <link>https://forum.sources.ru/index.php?showtopic=294395&amp;view=findpost&amp;p=2498864</link>
        <description><![CDATA[Kobra: здравствуйте господа<br>
<br>
стоит задача:<br>
связаться с сервисом, передать данные и получить ответ. <br>
дан адрес тестового сервиса. если в ИЕ набираю данный адрес, получаю следующее<br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">&nbsp;&nbsp;&#60;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; ?&#62; </div><div class="code_line">&nbsp;&#60;!-- &nbsp;Published by JAX-WS RI at http://jax-ws.dev.java.net. RI&#39;s version is JAX-WS RI 2.1.3.1-hudson-417-SNAPSHOT. </div><div class="code_line">&nbsp;&nbsp;--&#62; </div><div class="code_line">&nbsp;&#60;definitions xmlns=&quot;http://schemas.xmlsoap.org/wsdl/&quot; xmlns:wsdl=&quot;http://schemas.xmlsoap.org/wsdl/&quot; xmlns:xsd=&quot;http://www.w3.org/2001/XMLSchema&quot; xmlns:tns=&quot;http://-----&quot; xmlns:ns=&quot;http://---&quot; xmlns:soap=&quot;http://schemas.xmlsoap.org/wsdl/soap/&quot; name=&quot;debtor&quot; targetNamespace=&quot;http://----&quot;&#62;</div><div class="code_line">&nbsp;&#60;types&#62;</div><div class="code_line">&nbsp;&#60;xsd:schema targetNamespace=&quot;http://----&quot;&#62;</div><div class="code_line">&nbsp;&nbsp;&#60;xsd:import namespace=&quot;http://----&quot; schemaLocation=&quot;http://----&quot; /&#62; </div><div class="code_line">&nbsp;&nbsp;&#60;/xsd:schema&#62;</div><div class="code_line">&nbsp;&nbsp;&#60;/types&#62;</div><div class="code_line">&nbsp;&#60;message name=&quot;GetDebtorInfoRequest&quot;&#62;</div><div class="code_line">&nbsp;&nbsp;&#60;part name=&quot;part1&quot; type=&quot;ns:GetDebtorInfoRequest&quot; /&#62; </div><div class="code_line">&nbsp;&nbsp;&#60;/message&#62;</div><div class="code_line">&nbsp;&#60;message name=&quot;GetDebtorInfoResponse&quot;&#62;</div><div class="code_line">&nbsp;&nbsp;&#60;part name=&quot;part2&quot; type=&quot;ns:GetDebtorInfoResponse&quot; /&#62; </div><div class="code_line">&nbsp;&nbsp;&#60;/message&#62;</div><div class="code_line">&nbsp;&#60;message name=&quot;InformDebtorRequest&quot;&#62;</div><div class="code_line">&nbsp;&#60;part name=&quot;part3&quot; type=&quot;ns:InformDebtorActionRequest&quot; /&#62; </div><div class="code_line">&nbsp;&nbsp;&#60;/message&#62;</div><div class="code_line">&nbsp;&#60;message name=&quot;InformDebtorResponse&quot;&#62;</div><div class="code_line">&nbsp;&nbsp;&#60;part name=&quot;part4&quot; type=&quot;ns:InformDebtorActionResponse&quot; /&#62; </div><div class="code_line">&nbsp;&nbsp;&#60;/message&#62;</div><div class="code_line">&nbsp;&#60;message name=&quot;AuthorizationHeader&quot;&#62;</div><div class="code_line">&nbsp;&nbsp;&#60;part name=&quot;AuthHeader&quot; element=&quot;ns:AuthHeader&quot; /&#62; </div><div class="code_line">&nbsp;&nbsp;&#60;/message&#62;</div><div class="code_line">&nbsp;&#60;portType name=&quot;debtorPortType&quot;&#62;</div><div class="code_line">&nbsp;&#60;operation name=&quot;GetDebtorInfo&quot;&#62;</div><div class="code_line">&nbsp;&nbsp;&#60;input name=&quot;input1&quot; message=&quot;tns:GetDebtorInfoRequest&quot; /&#62; </div><div class="code_line">&nbsp;&nbsp;&#60;output name=&quot;output1&quot; message=&quot;tns:GetDebtorInfoResponse&quot; /&#62; </div><div class="code_line">&nbsp;&nbsp;&#60;/operation&#62;</div><div class="code_line">&nbsp;&#60;operation name=&quot;InformDebtorAction&quot;&#62;</div><div class="code_line">&nbsp;&nbsp;&#60;input name=&quot;input2&quot; message=&quot;tns:InformDebtorRequest&quot; /&#62; </div><div class="code_line">&nbsp;&nbsp;&#60;output name=&quot;output2&quot; message=&quot;tns:InformDebtorResponse&quot; /&#62; </div><div class="code_line">&nbsp;&nbsp;&#60;/operation&#62;</div><div class="code_line">&nbsp;&nbsp;&#60;/portType&#62;</div><div class="code_line">&nbsp;&#60;binding name=&quot;debtorBinding&quot; type=&quot;tns:debtorPortType&quot;&#62;</div><div class="code_line">&nbsp;&nbsp;&#60;soap:binding style=&quot;rpc&quot; transport=&quot;http://schemas.xmlsoap.org/soap/http&quot; /&#62; </div><div class="code_line">&nbsp;&#60;operation name=&quot;GetDebtorInfo&quot;&#62;</div><div class="code_line">&nbsp;&nbsp;&#60;soap:operation /&#62; </div><div class="code_line">&nbsp;&#60;input name=&quot;input1&quot;&#62;</div><div class="code_line">&nbsp;&nbsp;&#60;soap:body use=&quot;literal&quot; namespace=&quot;http://----&quot; /&#62; </div><div class="code_line">&nbsp;&nbsp;&#60;soap:header message=&quot;tns:AuthorizationHeader&quot; part=&quot;AuthHeader&quot; use=&quot;literal&quot; /&#62; </div><div class="code_line">&nbsp;&nbsp;&#60;/input&#62;</div><div class="code_line">&nbsp;&#60;output name=&quot;output1&quot;&#62;</div><div class="code_line">&nbsp;&nbsp;&#60;soap:body use=&quot;literal&quot; namespace=&quot;http://----&quot; /&#62; </div><div class="code_line">&nbsp;&nbsp;&#60;/output&#62;</div><div class="code_line">&nbsp;&nbsp;&#60;/operation&#62;</div><div class="code_line">&nbsp;&#60;operation name=&quot;InformDebtorAction&quot;&#62;</div><div class="code_line">&nbsp;&nbsp;&#60;soap:operation /&#62; </div><div class="code_line">&nbsp;&#60;input name=&quot;input2&quot;&#62;</div><div class="code_line">&nbsp;&nbsp;&#60;soap:body use=&quot;literal&quot; namespace=&quot;http://----&quot; /&#62; </div><div class="code_line">&nbsp;&nbsp;&#60;soap:header message=&quot;tns:AuthorizationHeader&quot; part=&quot;AuthHeader&quot; use=&quot;literal&quot; /&#62; </div><div class="code_line">&nbsp;&nbsp;&#60;/input&#62;</div><div class="code_line">&nbsp;&#60;output name=&quot;output2&quot;&#62;</div><div class="code_line">&nbsp;&nbsp;&#60;soap:body use=&quot;literal&quot; namespace=&quot;http://----&quot; /&#62; </div><div class="code_line">&nbsp;&nbsp;&#60;/output&#62;</div><div class="code_line">&nbsp;&nbsp;&#60;/operation&#62;</div><div class="code_line">&nbsp;&nbsp;&#60;/binding&#62;</div><div class="code_line">&nbsp;&#60;service name=&quot;debtorService&quot;&#62;</div><div class="code_line">&nbsp;&#60;port name=&quot;debtorPort&quot; binding=&quot;tns:debtorBinding&quot;&#62;</div><div class="code_line">&nbsp;&nbsp;&#60;soap:address location=&quot;http://----&quot; /&#62; </div><div class="code_line">&nbsp;&nbsp;&#60;/port&#62;</div><div class="code_line">&nbsp;&nbsp;&#60;/service&#62;</div><div class="code_line">&nbsp;&nbsp;&#60;/definitions&#62;</div></ol></div></div></div></div><br>
и даны примеры. я должен отправить<br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">GetDebtorInfo: </div><div class="code_line">&#60;soapenv:Envelope xmlns:soapenv=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot; </div><div class="code_line">xmlns:deb=&quot;http://----&quot; </div><div class="code_line">xmlns:deb1=&quot;http://----&quot;&#62;</div><div class="code_line">&nbsp;&nbsp; &#60;soapenv:Header&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;&#60;deb:AuthHeader&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &#60;deb:Username&#62;CONST&#60;/deb:Username&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &#60;deb:Password&#62;CONST&#60;/deb:Password&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;&#60;/deb:AuthHeader&#62;</div><div class="code_line">&nbsp;&nbsp; &#60;/soapenv:Header&#62;</div><div class="code_line">&nbsp;&nbsp; &#60;soapenv:Body&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;&#60;deb1:GetDebtorInfo&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &#60;part1&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;deb:IdNumber&#62;21001005733&#60;/deb:IdNumber&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &#60;/part1&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;&#60;/deb1:GetDebtorInfo&#62;</div><div class="code_line">&nbsp;&nbsp; &#60;/soapenv:Body&#62;</div><div class="code_line">&#60;/soapenv:Envelope&#62;</div></ol></div></div></div></div> <br>
и получу ответ<br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">&#60;S:Envelope xmlns:S=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot;&#62;</div><div class="code_line">&nbsp;&nbsp; &#60;S:Body&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;&#60;ns2:GetDebtorInfoResponse xmlns:ns2=&quot;http://----&quot; xmlns:ns3=&quot;http://----&quot;&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &#60;part2&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;ns3:IdNumber&#62;00000000000&#60;/ns3:IdNumber&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;ns3:ResponseStatusId&#62;1&#60;/ns3:ResponseStatusId&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;ns3:ResponseStatusText&#62;Was found&#60;/ns3:ResponseStatusText&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;ns3:DebtorRecords&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#60;ns3:Record&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;ns3:RegNumber&#62;00000000000&#60;/ns3:RegNumber&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;ns3:RegDate&#62;2009-12-09T14:04:32.000+04:00&#60;/ns3:RegDate&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;ns3:DebtorName&#62;хххххх ххххххх&#60;/ns3:DebtorName&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;ns3:DebtorIdNumber&#62;00000000000&#60;/ns3:DebtorIdNumber&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;ns3:DocumentList&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#60;ns3:Document&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;ns3:Initiator&#62;ххххххх&#60;/ns3:Initiator&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;ns3:DocNo&#62;1111&#60;/ns3:DocNo&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;ns3:DocDate&#62;2009-12-09T00:00:00.000+04:00&#60;/ns3:DocDate&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;ns3:DocName&#62;ххххх&#60;/ns3:DocName&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#60;/ns3:Document&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;/ns3:DocumentList&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;ns3:Author&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#60;ns3:PersonName&#62;хххххххх&#60;/ns3:PersonName&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#60;ns3:Phone&#62;хххххх&#60;/ns3:Phone&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#60;ns3:Address&#62;хххххх&#60;/ns3:Address&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;/ns3:Author&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#60;/ns3:Record&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;/ns3:DebtorRecords&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &#60;/part2&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;&#60;/ns2:GetDebtorInfoResponse&#62;</div><div class="code_line">&nbsp;&nbsp; &#60;/S:Body&#62;</div><div class="code_line">&#60;/S:Envelope&#62;</div></ol></div></div></div></div><br>
тепер вопрос<br>
как все это организовать на шарпе? куда капать?]]></description>
        <author>Kobra</author>
        <category>.NET: Распределенные приложения</category>
      </item>
	
      </channel>
      </rss>
	