Javascript 从Alfresco共享页面调用外部rest服务
我已经在java应用程序中创建了一个rest服务。我需要在Alfresco共享页面中单击按钮调用此rest服务。我该如何接近它。我可以用url直接调用服务吗?您可以向SURF添加自定义端点并使用SURF代理Servlet: Flickr端点示例 share-config-custom.xml:Javascript 从Alfresco共享页面调用外部rest服务,javascript,alfresco,alfresco-share,web-scripting,Javascript,Alfresco,Alfresco Share,Web Scripting,我已经在java应用程序中创建了一个rest服务。我需要在Alfresco共享页面中单击按钮调用此rest服务。我该如何接近它。我可以用url直接调用服务吗?您可以向SURF添加自定义端点并使用SURF代理Servlet: Flickr端点示例 share-config-custom.xml: <alfresco-config> <config evaluator="string-compare" condition="Remote"> <remo
<alfresco-config>
<config evaluator="string-compare" condition="Remote">
<remote>
<endpoint>
<id>flickr</id>
<name>flickr - unauthenticated access for oembed resolution</name>
<description>Access flickr to resolve URLs to embed presentations.</description>
<connector-id>http</connector-id>
<endpoint-url>http://www.flickr.com/services</endpoint-url>
<identity>none</identity>
</endpoint>
</remote>
</config>
</alfresco-config>
您应该通过SURF扩展机制添加您的var PROXY\u FLICKR\u API JS声明-您的目标markupid是(更多详细信息):
您可以向SURF添加自定义端点并使用SURF代理Servlet: Flickr端点示例 share-config-custom.xml:
<alfresco-config>
<config evaluator="string-compare" condition="Remote">
<remote>
<endpoint>
<id>flickr</id>
<name>flickr - unauthenticated access for oembed resolution</name>
<description>Access flickr to resolve URLs to embed presentations.</description>
<connector-id>http</connector-id>
<endpoint-url>http://www.flickr.com/services</endpoint-url>
<identity>none</identity>
</endpoint>
</remote>
</config>
</alfresco-config>
您应该通过SURF扩展机制添加您的var PROXY\u FLICKR\u API JS声明-您的目标markupid是(更多详细信息):
您可以向SURF添加自定义端点并使用SURF代理Servlet: Flickr端点示例 share-config-custom.xml:
<alfresco-config>
<config evaluator="string-compare" condition="Remote">
<remote>
<endpoint>
<id>flickr</id>
<name>flickr - unauthenticated access for oembed resolution</name>
<description>Access flickr to resolve URLs to embed presentations.</description>
<connector-id>http</connector-id>
<endpoint-url>http://www.flickr.com/services</endpoint-url>
<identity>none</identity>
</endpoint>
</remote>
</config>
</alfresco-config>
您应该通过SURF扩展机制添加您的var PROXY\u FLICKR\u API JS声明-您的目标markupid是(更多详细信息):
您可以向SURF添加自定义端点并使用SURF代理Servlet: Flickr端点示例 share-config-custom.xml:
<alfresco-config>
<config evaluator="string-compare" condition="Remote">
<remote>
<endpoint>
<id>flickr</id>
<name>flickr - unauthenticated access for oembed resolution</name>
<description>Access flickr to resolve URLs to embed presentations.</description>
<connector-id>http</connector-id>
<endpoint-url>http://www.flickr.com/services</endpoint-url>
<identity>none</identity>
</endpoint>
</remote>
</config>
</alfresco-config>
您应该通过SURF扩展机制添加您的var PROXY\u FLICKR\u API JS声明-您的目标markupid是(更多详细信息):