send message to a web service according to its schema

Posted by hguser on Stack Overflow See other posts from Stack Overflow or by hguser
Published on 2010-04-10T05:47:24Z Indexed on 2010/04/10 5:53 UTC
Read the original article Hit count: 346

Filed under:

Hi: When I request a web servcie,it give me a response which show me the required parameters and its schema,for example:

the response of the web service for the descriptin of the parameter

Then I start to organize the next requset according to the parameter,for the parameter "bandWith" I set it as the following:

<InputParameter parameterID="bandWidth">
    <value>
    <commonData>
      <swe:Category>
            <swe:quality>
                        <swe:Text>
                            <swe:value>low</swe:value>
                        </swe:Text>
            </swe:quality>
      </swe:Category>
    </commonData>
    </value>
</InputParameter>

However I got a exception :

error information

Also I tried the following format,things does not chage:

<InputParameter parameterID="bandWidth">
    <value>
    <commonData>
      <swe:Category>
                            <swe:value>low</swe:value>
      </swe:Category>
    </commonData>
    </value>
</InputParameter>

So, I wonder how do define the parameter to match the format it defined?

The schema can be found there:

The schema

© Stack Overflow or respective owner

Related posts about schema