Quantcast
Channel: PTC Community : Discussion List - Windchill
Viewing all articles
Browse latest Browse all 5797

Invoking InfoEngine tasks directly with a URL

$
0
0

Does anyone know how to invoke an InfoEngine task directly in the browser with a URL?  In Windchill V9.1, we used this method to create administrative tasks to correct data in our Windchill environment or to see if something was created when the attributes were not displayed in the UI.  In Windchill 10.2, I keep getting an IEForbiddenException and I'm trying to see what needs to be changed.  Is it the way we are using InfoEngine tasks or is there some configuration that is needed to allow this?  Here is an example of how we were invoking the task in V9.1:

 

https://www.myCompany.com/Windchill/servlet/IE/tasks/com/ptc/core/dca-Query.xml?supporting-adapter=com.myCompany.www.Windchill&object_type=wt.change2.WTChangeRequest2&where=()

 

In Windchill 10.2, the same query looks like this because of the change to the tasks:

 

https://www.myCompany.com/Windchill/servlet/IE/tasks/com/ptc/windchill/enterprise/search/search-Query.xml?supporting-adapter=com.myCompany.www.Windchill&object_type=wt.change2.WTChangeRequest2&where=()

 

I checked in the Apache conf files and they are very different between V9.1 and V10.2.

 

Is there some configuration changes I need to make?  Or, do I need to forgo using the tasks directly and write some JSPs to invoke them?

 

The error I get is this:

2014-07-22 13:08:41,846 ERROR [ajp-bio-8010-exec-1] wt.adapter.exception wcadmin - WTAdapterImpl

com.infoengine.exception.fatal.IEForbiddenException

    at com.infoengine.SAK.Task.checkAccessIfcs(Task.java:2332)

    at com.infoengine.SAK.Task.invoke(Task.java:1803)

    at com.infoengine.SAK.Task.invokeAndCheckExternalAccess(Task.java:1703)

    at wt.method.WTAdapterImpl.processTask(WTAdapterImpl.java:711)

    at wt.method.WTAdapterImpl.processRequest(WTAdapterImpl.java:481)

    at com.infoengine.procunit.adapter.Adapter.send(Adapter.java:198)

    at com.infoengine.IeServlet$RequestDispatcher.run(IeServlet.java:464)

    at com.infoengine.IeServlet.doGet(IeServlet.java:247)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)

 

...


Viewing all articles
Browse latest Browse all 5797

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>