<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: How to call a SOAP web service from within a solr updateRequestProcessorChain? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-call-a-SOAP-web-service-from-within-a-solr/m-p/120494#M30742</link>
    <description>&lt;P&gt;@David Lam did this work for you?&lt;/P&gt;</description>
    <pubDate>Wed, 08 Jun 2016 19:41:15 GMT</pubDate>
    <dc:creator>james_jones</dc:creator>
    <dc:date>2016-06-08T19:41:15Z</dc:date>
    <item>
      <title>How to call a SOAP web service from within a solr updateRequestProcessorChain?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-call-a-SOAP-web-service-from-within-a-solr/m-p/120492#M30740</link>
      <description>&lt;P&gt;I have a SOAP web service setup to annotate text using UIMA-nlp, how would I be able to use updateRequestProcessorChain to call this web service?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Sat, 04 Jun 2016 07:02:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-call-a-SOAP-web-service-from-within-a-solr/m-p/120492#M30740</guid>
      <dc:creator>dlam</dc:creator>
      <dc:date>2016-06-04T07:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to call a SOAP web service from within a solr updateRequestProcessorChain?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-call-a-SOAP-web-service-from-within-a-solr/m-p/120493#M30741</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3554/dlam.html" nodeid="3554"&gt;@David Lam&lt;/A&gt; &lt;/P&gt;&lt;P&gt;I believe that would be pretty straight forward. &lt;/P&gt;&lt;P&gt;1) Write your SOAP client&lt;/P&gt;&lt;P&gt;2) Integrate it a custom class which extends UpdaterequestFactory in the processAdd(AddUpdateCommand) method.&lt;/P&gt;&lt;P&gt;3) Create your updateRequestProcessorChain in the  solrconfig.xml&lt;/P&gt;&lt;P&gt;4) Add the chain to a requestHandler&lt;/P&gt;&lt;P&gt;Look at the example here for the ConditionalCopyProcessorFactory but just make your SOAP call instead.: &lt;A href="https://wiki.apache.org/solr/UpdateRequestProcessor" target="_blank"&gt;https://wiki.apache.org/solr/UpdateRequestProcessor&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In the processAdd, since you have access to the SolrInputDocument, you can get any field's value and you can also add a new field or child document, which is just another SolrInputDocument.&lt;/P&gt;&lt;P&gt;Be aware that by doing this you could add a bottleneck to your update pipeline if the web service is slow or down and you could also add additional stress on the Solr server, which perhaps is also serving queries. It just depends on your load and other factors. Alternatively, you could annotate the SolrDocuments in your ingest pipeline, before they are sent to Solr to push the load elsewhere. If you have no control over the ingest pipeline, you may have to do it in the update request chain anyway.&lt;/P&gt;</description>
      <pubDate>Sat, 04 Jun 2016 08:20:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-call-a-SOAP-web-service-from-within-a-solr/m-p/120493#M30741</guid>
      <dc:creator>james_jones</dc:creator>
      <dc:date>2016-06-04T08:20:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to call a SOAP web service from within a solr updateRequestProcessorChain?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-call-a-SOAP-web-service-from-within-a-solr/m-p/120494#M30742</link>
      <description>&lt;P&gt;@David Lam did this work for you?&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2016 19:41:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-call-a-SOAP-web-service-from-within-a-solr/m-p/120494#M30742</guid>
      <dc:creator>james_jones</dc:creator>
      <dc:date>2016-06-08T19:41:15Z</dc:date>
    </item>
  </channel>
</rss>

