How to send documents to the Broker

Hi All,

   I know how to send document from developer to Broker. Can anybody tell me how i send document to Broker from external application like html pages.  

   If yes then what should be the url. 

Thanks

Hi Mac,
Easy way to do this is to invoke your flow service via http. Have your flow service take the input parameters you supply and map them to a broker document and then publish it to the broker. Works great, use it all the time. More elegant way is to expose your flow service as a doc/literal web service and have it do the same thing.

Broker does not have a direct http interface. Hope this helps.

markg
http://darth.homelinux.net

Hi Mark,

   sorry for the late response, I was running few production issues. 

Anyhow, you mean to say there is no way to send document to the Broker from external entities?

    Thanks,

Not via http. You can always use the Java or C API and write a client which would work. But going through the Integration Server via Http is a much better way and a whole lot easier. The message would still get into the broker. Any particular reason an external entity would need to go direct to the broker?

markg
http://darth.homelinux.net

Hi Mark,

   I want to do the integration with a JSP application, which is already in place in tomcat server. So I thought JSP pages will send data to Broker and from Broker WebMethods service will invoke to place request into database instead of implementing the new JSP applications from webMethods. 

 Is this a right approach? Advice 

Thanks,

Mohd Muneeruddin.

Hi MAC

I guess documents sent either externally or internally to TN would automatically be published to the Broker as long as the records have been synchronized to the Broker. I usually do the synchro in the developer myself.

Mac,
You will still need to have your jsp invoke a flow service on the IS server. Very easy to do, just pass in your parameters via http. Your flow service will handle getting it into the broker. You can’t invoke the broker directly from your jsp. You could write a servlet I suppose, using the java api for the broker. But that really doesn’t make any sense, lots of coding to do what a couple of lines can do in your JSP page.

Amon, TN doesn’t store data or publish data to the broker. TN stores or persists its data to a database. It has no relation to the broker. You could post to TN using http and then have TN via a processing rule invoke a flow service to put data into the broker. But it’s an unnecessary step in this case. TN can maintain queues for documents and so forth but they are not part of the broker.

markg
http://darth.homelinux.net

Hi All,

  Thanks for the help. I plan to Create JSP in webMethods.I think thats the only soluction iam finding. 

 Anyhow thanks all. 

Thanks,

MAC,

why do you want to create the JSP in webMethods?As Mark pointed out, you can invoke a service in WM from the JSP hosted in Tomcat server which would eventually publish data to the Broker.
just my 2 cents…

ramesh.