- Upload Hello.xsd into the "gov:/custom/HelloSchema.xsd".
- Upload HelloSchema.xsd into the "gov:/custom/xsd/Hello.xsd"
- 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