What I expect to get is something like this:
Code: Select all
<?xml version="1.0" encoding="UTF-16"?>
<Foo xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<User ID="200" TOKEN="2343DD9C" />
</Foo>Code: Select all
<?xml version="1.0" encoding="utf-8" ?>
<string xmlns="http://foo.example.com/Authentication/">
<?xml version="1.0" encoding="UTF-16"?>
<Foo xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<User ID="200" TOKEN="2343DD9C" />
</Foo>
</string>Questions:
1. It looks like their server is wrapping the xml doc with another xml wrapper, right? String tag? If so, would that likely to be caused by a server misconfiguration, or a programmer? I think that would explain the encoded brackets too.
2. When testing, I used Firefox to submit a request, then 'view source' to check the response. Is that valid? Will I see the actual response without artifacts, encoding, etc?
thx!