输入行在下面
Item(s): [item1.test],[item2.qa],[item3.production]
Run Code Online (Sandbox Code Playgroud)
你能帮我写一个Java正则表达式来提取吗?
item1.test,item2.qa,item3.production
Run Code Online (Sandbox Code Playgroud)
从上面的输入线?
什么是out-of-band POST?我在阅读有关OAuth的文档时看到了这一点.
google和bing都没有多大帮助.
更新:我在此页面中看到了它.搜索out-of-band
https://na1.salesforce.com/help/doc/en/remoteaccess_oauth_refresh_token_flow.htm
我从CXF调用lists.asmx webservice .以下soap调用不会返回列表子文件夹中的文件.它返回folder1,folder2和file1.pdf
Shared Documents
folder1
file2.docx
file3.pdf
folder2
sub-folder1
file5.pdf
file4.pdf
file1.pdf
Run Code Online (Sandbox Code Playgroud)
SOAP调用
POST /_vti_bin/lists.asmx HTTP/1.1 Accept-Encoding: gzip,deflate
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:soap1="http://schemas.microsoft.com/sharepoint/soap/">
<soap:Header/>
<soap:Body>
<soap1:GetListItems>
<soap1:listName>Shared Documents</soap1:listName>
<queryOptions>
<QueryOptions>
<IncludeMandatoryColumns>TRUE</IncludeMandatoryColumns>
<ViewAttributes Scope="RecursiveAll"/>
<DateInUtc>TRUE</DateInUtc>
</QueryOptions>
</queryOptions>
</soap1:GetListItems>
</soap:Body>
</soap:Envelope>
Run Code Online (Sandbox Code Playgroud)
有关如何从结果中包含的folder1,folder3和sub-folder1中获取文件的任何线索?如果列表Web服务无法做到,是否有替代服务/方法?
附加信息:
还有另一个Web服务,SiteData (_vti_bin/sitedata.asmx).它有一个类似的方法(getListItems)并返回所有文件只有列表名称而没有其他参数.问题是我无法弄清楚如何/在何处指定Paging参数,因为列表中没有任何queryOptions输入元素网络服务.
<soap1:strListName>?</soap1:strListName>
<soap1:strQuery>?</soap1:strQuery>
<soap1:strViewFields>?</soap1:strViewFields>
<soap1:uRowLimit>?</soap1:uRowLimit>
Run Code Online (Sandbox Code Playgroud) 这是一个基本的 cxf 使用问题。我们如何/在哪里可以捕获实际的 HTTP 异常/错误。我有点遵循 Interceptor/MessageObserver 概念,但无法使用它们捕获 HTTP 错误。
我在 log4j 日志文件中看到了这个错误。
Caused by: org.apache.cxf.transport.http.HTTPException: HTTP response
'401: Unauthorized' when communicating with http://10.107.172.79/test/_vti_bin/lists.asmx
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:1502)
at org.apache.cxf.transpot.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1448)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1356)
at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)
at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:614)
at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
... 9 more
Run Code Online (Sandbox Code Playgroud)
只有带有“无法发送消息”的 javax.xml.ws.WebServiceException。调用服务时抛出消息
try{
GetListCollectionResult result = port.getListCollection();
}catch (javax.xml.ws.WebServiceException excep){
}
Run Code Online (Sandbox Code Playgroud)
这就是我们调用服务的方式。
要提供 NTLM 凭据:
Authenticator.setDefault( extended class of Authenticator);
Run Code Online (Sandbox Code Playgroud)
创建服务。
JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean();
factory.setServiceClass(ListsSoap.class);
factory.setAddress(list_url);
ListsSoap port = (ListsSoap) factory.create();
Run Code Online (Sandbox Code Playgroud)
更新导管。
..
Client client = ClientProxy.getClient(port);
HTTPConduit http = …Run Code Online (Sandbox Code Playgroud) 我们在solrconfig.xml中启用了autoCommit.
<autoCommit>
<maxDocs>5000</maxDocs>
<maxTime>5000</maxTime>
</autoCommit>
Run Code Online (Sandbox Code Playgroud)
现在想知道我们是Solr服务器在没有达到任何阈值之前关闭并且有未提交的文档时会发生什么.这些未提交的文档会在服务器重启时被提交吗?
顺便说一下,我们启用了autoCommit来修复
exceeded limit of maxWarmingSearchers=2
Run Code Online (Sandbox Code Playgroud) cxf ×1
http ×1
java ×1
oauth ×1
regex ×1
sharepoint ×1
solr ×1
sunspot ×1
sunspot-solr ×1
web-services ×1