D
D
d432014-01-03 18:27:33
SOAP
d43, 2014-01-03 18:27:33

Why can't I simulate a SOAP request from Windows to a Microsoft server?

When a user connects a new device, Windows requests information about that device from a Microsoft server (namely, metaservices.microsoft.com). One of these requests and the answer to it .
My task is to repeat this request with my own means and with my own data. But so far, for all my attempts (for example, in Chrome REST Client ), the server responds with HTTP 400 Bad Request despite the fact that I set all the same headers and payload.
I fished out the request with the answer using the Fiddler program and it can be repeated without any problems (see the saved Fiddler session ).
In other words:When I resend a Windows request from Fiddler, the server returns the data I need, but when I send a similar request from any other program/script, the server responds with HTTP 400 Bad Request .
Fiddler-SOAP.jpg
That is I miss something at formation of request. It's probably something simple because I have no experience with SOAP API. I would be grateful for any advice on the matter.
If you have five minutes and Fiddler, you can replay the request from the saved session (you need to highlight the request and click the "Replay" button).

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
verwolfdotss, 2014-01-03
@d43

I tried to send the intellij idea 13 client through the rest.
At first I caught the same 400s. I immediately suspected that the problem was in the utf-16le encoding. My idea was that in fact the data is sent in a different encoding despite the Content-Type. Then I saved your request to a file in utf-16le and told the idea to take the request from there. And I immediately received a valid response. Hope this helps you somehow.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question