[Zope-dev] Transferring the word document/Excel sheet or Pdf file through SOAP

2004-09-21 Thread Aruna Kathiriya
Hello:
I want to transfer the word document/excel or PDF file across the net
through SOAP call.
I already establish the connection with two Zope servers with SOAP call. Now
I want to transfer any type of file to the server as a parameter of a
method. I could transfer the XPDL and text file but not word document, excel
or PDF file.
Pl let me know if there is any suggession or way to achive this.


Aruna Kathiriya
Sr.Consultant,
CIGNEX Technologies, Inc
T:408.501.0455 x 306
F:408.273.6785
C:408.896.1330
E:[EMAIL PROTECTED]
U:www.cignex.com
Implement IT Right



___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] how to start workflow instance on another zope serverwith SOAP?

2004-08-25 Thread Aruna Kathiriya

Hi,
I am very new to open source.

I am trying to start an instance of a workflow on a Zope server from another
Zope server. I did successfully with XML-RPC call but I need to do it with
SOAP. I am note sure weather I can do it or not.

I am running two Zope servers on my local m/c on 2 different ports.
One is 8080 and 2nd one is 8090.

On 8080:

Page_template  : SoapTest2

html
body
  Activate instance at other server:
span tal:define=  l_user python:request.get('AUTHENTICATED_USER');

form action=SubmitNewSoapTest2 method=post
enctype=multipart/form-data
  input type=file name=p_filebr
  input type=hidden name=user tal:attributes= value
python:l_user;
  input type=hidden name=password value=Aruna
  input type=submit value=Submit
/form
/span
/body
/html

SubmitNewSoapTest2 is external method.
the python script for that is testTrigger as follow.

from SOAPpy import SOAPProxy
import xml.sax
def startTestInstance2(self,p_file,user,password):
   myFile =p_file.read()
#   parser = xml.sax.make_parser()
#   parser.parse(myFile)
   url = 'http://localhost:8090/'
   namespace = 'urn:xmethods-testInstance'
   server = SOAPProxy(url, namespace)
   return server.SoapTestInstance(p_file,user,password)

On 8090:
I have a python script SoapTestInstance having 3 parameters
(p_file,user,password) and following code.


 wf = context.TestFlow
 i_id = wf.addInstance('TestProcess', '', '', '', 0)
 instance = wf.getInstance(i_id)
 instance.manage_addFile(id=theFile, file=p_file, title=)
 wf.startInstance(i_id)
 wf.activateWorkitem(i_id, '0', user )
 wf.completeWorkitem(i_id, '0')
 return created new instance with code %s % i_id

It gives me following error.
Error Type: SAXParseException
Error Value: http://www.w3.org/TR/REC-html40/loose.dtd:31:2: error in
processing external entity reference

Any help will be appriciated. I already stucked here..


Thanks
Aruna Kathiriya
Sr.Consultant
CIGNEX Technologies, Inc
T:408.501.0455 x 306
F:408.273.6785
C:408.896.1330
E:[EMAIL PROTECTED]
U:www.cignex.com
Implement IT Right



___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] how to start workflow instance on another zope server with SOAP?

2004-08-24 Thread Aruna Kathiriya
Hi,
I am very new to open source.

I am trying to start an instance of a workflow on a Zope server from another
Zope server. I did successfully with XML-RPC call but I need to do it with
SOAP. I am note sure weather I can do it or not.

I am running two Zope servers on my local m/c on 2 different ports.
One is 8080 and 2nd one is 8090.

On 8080:

Page_template  : SoapTest2

html
body
  Activate instance at other server:
span tal:define=  l_user python:request.get('AUTHENTICATED_USER');

form action=SubmitNewSoapTest2 method=post
enctype=multipart/form-data
  input type=file name=p_filebr
  input type=hidden name=user tal:attributes= value
python:l_user;
  input type=hidden name=password value=Aruna
  input type=submit value=Submit
/form
/span
/body
/html

SubmitNewSoapTest2 is external method.
the python script for that is testTrigger as follow.

from SOAPpy import SOAPProxy
import xml.sax
def startTestInstance2(self,p_file,user,password):
   myFile =p_file.read()
#   parser = xml.sax.make_parser()
#   parser.parse(myFile)
   url = 'http://localhost:8090/'
   namespace = 'urn:xmethods-testInstance'
   server = SOAPProxy(url, namespace)
   return server.SoapTestInstance(p_file,user,password)

On 8090:
I have a python script SoapTestInstance having 3 parameters
(p_file,user,password) and following code.


 wf = context.TestFlow
 i_id = wf.addInstance('TestProcess', '', '', '', 0)
 instance = wf.getInstance(i_id)
 instance.manage_addFile(id=theFile, file=p_file, title=)
 wf.startInstance(i_id)
 wf.activateWorkitem(i_id, '0', user )
 wf.completeWorkitem(i_id, '0')
 return created new instance with code %s % i_id

It gives me following error.
Error Type: SAXParseException
Error Value: http://www.w3.org/TR/REC-html40/loose.dtd:31:2: error in
processing external entity reference

Any help will be appriciated. I already stucked here..

Aruna Kathiriya
Sr.Consultant
CIGNEX Technologies, Inc
U:www.cignex.com
Implement IT Right



___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )