get wsdl value from xml file



I have the following xml file:



<properties>
<type>1</type> <!-- 1 or 2>

<prop1> test </prop1>
<prop2> test2 </prop2>
</properties>


and the wsdl file:



<definitions>
<xmlProp>test</xmlProp>
</definitions>


I want wsdl tag "xmlProp" get value from xml tag's value prop1. In addition i want to have an if statement in wsdl and if xml tag "type" is 1 the wsdl tag xmlProp get the prop1 value otherwise get prop2 value.


Is there any way to do this?


No comments:

Post a Comment