From: Jannetta S. <jan...@he...> - 2010-05-24 11:50:57
|
On 24 May 2010 08:39, Stian Soiland-Reyes <soi...@cs...> wrote: > On Sat, May 22, 2010 at 21:33, Jannetta Steyn <jan...@he...> wrote: >> I'm trying to build a web service that I can use with Taverna. The web >> service that I have created works fine. I have tested it with soapUI >> and that also confirms it to be working. However when I try and use it >> with Taverna I get errors. > > Hi! You will need to add a so-called "XML input splitter" to your > service to specify the complex typed input. > > The error message "No content allowed in prolog" is lingo for "I > expected some XML". Where do I find an XML splitter? I tried using the xml created by soapUI as input, which is this: <?xml version="1.0" encoding="UTF-8"?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:seq="http://seqservice/"> <soapenv:Header/> <soapenv:Body> <seq:calcSeqGC> <!--Optional:--> <arg0> CTCTTCTGGCAGGTACAGCAAAACTCGTGACTGAACAGCCACGAAAGGAA GGTAGTTCGTAGTCCGTTTACAAGTCTCAGTTACAGCGAATCGTCGCTCT CCACTTCCTATAGCCTGGGTCCCAACAAGGATCTGACCTTGCAGACATGA GGTGCCGCACTACCTATGTGTGCTAGACACGCCTACACTGCGGATCCCCA CTGGTATTTTTTTAACGCTGTTGCAGCTTCTTCCGATAGCCTTACGCCAA TTTGAACGCAGGACACATAAGCAGAGTCTATTCGGGTTCACTCGAGTTAA GATTCTCTGGTTGGCCCCTAAGCCCCTCTAAGCCACTATGCTCCCAAACT TTAGATTACTTCAGTAGTAAAGCCCACGCAATTTTGAGTTAACCGTGCAT GGGGGTAGGCTTACCCTGTCGGCTTCTCAGAGCAGAAGTGCCGAACAACA ACGACTTCCAAACGAGTACTTCCGATGGCCAGCCGTAGAGGTTACCTTAG</arg0> </seq:calcSeqGC> </soapenv:Body> </soapenv:Envelope> and then I get this error: Unmarshalling Error: unexpected element (uri:"http://schemas.xmlsoap.org/soap/envelope/", local:"Header"). Expected elements are <{}arg0> org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222) org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129) org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087) org.apache.xerces.parsers.AbstractSAXParser.endElement(unknown file) org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(unknown file) org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(unknown file) org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(unknown file) org.apache.xerces.parsers.XML11Configuration.parse(unknown file) org.apache.xerces.parsers.XML11Configuration.parse(unknown file) org.apache.xerces.parsers.XMLParser.parse(unknown file) org.apache.xerces.parsers.AbstractSAXParser.parse(unknown file) org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(unknown file) javax.xml.parsers.SAXParser.parse(unknown file) org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227) org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696) org.apache.axis.Message.getSOAPEnvelope(Message.java:435) org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62) org.apache.axis.client.AxisClient.invoke(AxisClient.java:206) org.apache.axis.client.Call.invokeEngine(Call.java:2784) org.apache.axis.client.Call.invoke(Call.java:2767) org.apache.axis.client.Call.invoke(Call.java:1910) net.sf.taverna.wsdl.soap.WSDLSOAPInvoker.invokeCall(WSDLSOAPInvoker.java:198) net.sf.taverna.wsdl.soap.WSDLSOAPInvoker.invoke(WSDLSOAPInvoker.java:139) net.sf.taverna.t2.activities.wsdl.T2WSDLSOAPInvoker.invoke(T2WSDLSOAPInvoker.java:334) net.sf.taverna.t2.activities.wsdl.WSDLActivity$1.run(WSDLActivity.java:267) java.lang.Thread.run(unknown file) Thanks for your help Regards Jannetta -- =================================== Web site: http://www.jannetta.com Email: jan...@he... =================================== |