|
|
|
Проблема при вызове сервиса через SOAP
|
|||
|---|---|---|---|
|
#18+
Патаюсь вызвать сервис со страницы <script> xmlhttp.Open("POST", "http://localhost/WFS/Service.asmx/GetXML", false); xmlhttp.setRequestHeader("Content-Type", "text/xml"); body = '<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" mlns:xsd="http://www.w3.org/2001/XMLSchema" mlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <GetXMLResponse xmlns="sss222"> <GetXMLResult>xml</GetXMLResult> </GetXMLResponse> </soap:Body></soap:Envelope>'; xmlhttp.send(body); </script> Получаю ексепшен: System.InvalidOperationException: Request format is invalid: text/xml. at System.Web.Services.Protocols.HttpServerProtocol.ReadParameters() at System.Web.Services.Protocols.WebServiceHandler.CoreProcessRequest() Как правилно вызывать через soap? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 07.12.2006, 18:04:33 |
|
||
|
|

start [/forum/search_topic.php?author=kibez&author_mode=last_posts&do_search=1]: |
0ms |
get settings: |
6ms |
get forum list: |
14ms |
get settings: |
6ms |
get forum list: |
10ms |
check forum access: |
2ms |
check topic access: |
2ms |
track hit: |
190ms |
get topic data: |
7ms |
get first new msg: |
4ms |
get forum data: |
2ms |
get page messages: |
29ms |
get tp. blocked users: |
1ms |
| others: | 434ms |
| total: | 707ms |

| 0 / 0 |
