Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X
I am new to the whole WIndchill environment and would like to create web services to integrate with some internal home-grown applications. I am able to create a web service by creating a .xml. file and placing it in the tasks/com/company folder. It does the authentication and pulls the requested data returning the xml formatted results:
<%@taglib uri="http://www.ptc.com/infoengine/taglib/core" prefix="ie"%>
<ie:param name="AUTHORIZATION" data="<a" href="mailto:${@SERVER[]authorization[]}">${@SERVER[]authorization[]}"/>
<ie:param name="ATTRIBUTE" data="wt.federation.ie.VMName"/">
<ie:param name="GROUP_OUT" data="properties"/">
</ie:webject>
<ie:param name="instance" data="${properties[0]wt.federation.ie.VMName[0]}"/">
<ie:param name="type" data="wt.part.WTPart"/">
<ie:param name="where" data="number=FH50130"/">
<ie:param name="attribute" data="name,obid" delim=","/">
<ie:param name="group_out" data="lcTemplate"/">
</ie:webject>
I would like to use this code as a basis for a jsp (in the codebase/com/company) folder to allow me to pull the data and process it in the JSP to return re-formatted data to the external application. When I execute the following JSP file I get an AuthorizationException.
http://www.ptc.com/infoengine/taglib/core" prefix="ie" %>
<h3> Query for Model's Pallet Diagram <h3>
<ie:webject name="Get-Properties" type="MGT">
<ie:param name="AUTHORIZATION" data="$(@SERVER[]authorization[])"/">
<ie:param name="ATTRIBUTE" data="wt.federation.ie.VMName"/">
<ie:param name="GROUP_OUT" data="properties"/">
</ie:webject>
<ie:param name="instance" data="$(properties[0]wt.federation.ie.VMName[0])"/">
<ie:param name="type" data="wt.part.WTPart"/">
<ie:param name="where" data="number=FH50130"/">
<ie:param name="attribute" data="name,obid" delim=","/">
<ie:param name="group_out" data="lcTemplate"/">
</ie:webject>