I suggest continuing the discussion on the taverna-hackers list -
please remove taverna-users from the To-field when replying.


On Tue, Oct 26, 2010 at 12:35, Carsten Byrman <[email protected]> wrote:
> That would be the Accept header. If I understand the specs correctly, a
> value of application/xop+xml or
> multipart/related;type="application/xop+xml" should trigger the server,
> but that is something I would like to test.

It seems that it's not exposed through to the Taverna workflow
definition how to specify extra HTTP headers for Axis to use when
doing the SOAP call.

One would need to modify
net.sf.taverna.t2.activities.wsdl.T2WSDLSOAPInvoker to pick up the
required headers from the WSDL configuration, and add it there, with
some kind of GUI. (Perhaps similar to the REST activity)

It is possible to tell Axis how to use the headers, according to
http://www.mail-archive.com/[email protected]/msg04371.html - so
something like

                @SuppressWarnings("unchecked")
                Map<String,String> userHeaderTable = (Map<String,String>) 
msgContext
                                .getProperty(HTTPConstants.REQUEST_HEADERS);
                if (userHeaderTable == null) {
                        userHeaderTable = new Hashtable<String, String>();
                        msgContext.setProperty(HTTPConstants.REQUEST_HEADERS,
                                        userHeaderTable);
                }
                userHeaderTable.put("Accept", "application/xop+xml");


The problem is which Accept-header to use, as one would also need the
good-old application/soap+xml for normal SOAP services.


I doubt that Axis 1.5 (which we're using in Taverna) can deal with XOP
attachments. The 'attachment' support we have are simply plain old
multi-part attachment, they would not be automatically inserted or
extracted from the SOAP message.


-- 
Stian Soiland-Reyes, myGrid team
School of Computer Science
The University of Manchester

------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
taverna-hackers mailing list
[email protected]
Web site: http://www.taverna.org.uk
Mailing lists: http://www.taverna.org.uk/about/contact-us/
Developers Guide: http://www.taverna.org.uk/developers/

Reply via email to