0

I have created a simple REST web service.. Responses are like

<?xml version="1.0" encoding="utf-8"?>
<ArrayOfTableCategories xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
                        xmlns:xsd="http://www.w3.org/2001/XMLSchema">

using this attribute

[XmlSerializerFormat]

However I see no xmlns there... like tempuri...

but when try to make a request I get 400 error if I don't define xmlns="http://tempuri.org" at root element..

Any explanation for this behavior?

3
  • 1
    Is that the full response from the service call? It probably isn't, so look inside of the soap elements inside of the full XML response and see what you come up with. Commented Aug 25, 2011 at 19:12
  • 1
    Can you post your definition of ArrayOfTableCategories? Commented Aug 25, 2011 at 19:18
  • ArrayOfTableCategories is automaticaly generated. It is List<TableCategories> .TableCategories is poco doesnt event have [Serialization]. Also it is a Rest service , so no soap! Commented Aug 25, 2011 at 19:43

1 Answer 1

0

This is the same problem as in your last 2 questions.

We have often seen that a WCF service is not able to have a List as a return parameter.

Follow the answer that I gave in this question: Cannot deserialize with XMLSerializer result from WCF webservice

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.