Skip to content

Latest commit

 

History

History

8-validate-multiple-schema

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
  1. Upload Hello.xsd into the "gov:/custom/HelloSchema.xsd".
  2. Upload HelloSchema.xsd into the "gov:/custom/xsd/Hello.xsd"
  3. Add validate_multiple_proxy.xml into the proxy service.
  • Evoke the service with following payload for valid case.
<p:greet xmlns:p="http://www.wso2.org/types" xmlns:q="http://www.wso2.org/hello">
        <q:name>hello</q:name>
</p:greet>
curl -X POST \
  http://localhost:8280/services/validate_multiple_proxy \
  -H 'cache-control: no-cache' \
  -H 'content-type: text/xml' \
  -d '<p:greet xmlns:p="http://www.wso2.org/types" xmlns:q="http://www.wso2.org/hello">
        <q:name>hello</q:name>
</p:greet>' -k
  • Evoke with following payload for invalid case.
<p:greet xmlns:p="http://www.wso2.org/types" xmlns:q="http://www.wso2.org/hello">
        <q:name></q:name>
</p:greet>
curl -X POST \
  http://localhost:8280/services/validate_multiple_proxy \
  -H 'cache-control: no-cache' \
  -H 'content-type: text/xml' \
  -d '<p:greet xmlns:p="http://www.wso2.org/types" xmlns:q="http://www.wso2.org/hello">
        <q:name></q:name>
</p:greet>' -k

In case of SSL error while using curl, use -k option with curl command