If you don't want to escape the tags then you need to change the type to xsd:any. If it is xsd:string then the content must be a string - and that means escaping any XML tags.
Paul On Tue, Jul 14, 2009 at 11:11 AM, Seem<[email protected]> wrote: > > Well, my service parameter are like this: > > xsd:element name="queryOntology"> > <xsd:complexType> > <xsd:sequence> > <xsd:element name="sparqlQuery" type="xsd:string"/> > </xsd:sequence> > </xsd:complexType> > </xsd:element> > > > <wsdl:operation name="queryContext"> > <soap:operation > soapAction="http://www-mmt.inf.tu-dresden.de/CroCo/queryContext" > style="document"/> > <wsdl:input> > <soap:body use="literal"/> > </wsdl:input> > <wsdl:output> > <soap:body use="literal"/> > </wsdl:output> > </wsdl:operation> > > a SPARQL Query looks like this: > SELECT ?title WHERE {<http://example.org/book/book1> > <http://purl.org/dc/elements/1.1/title> ?title .} > > and the message handling at the server is like this: > > public OMElement queryOntology(OMElement queryOntologyRequestElement) > throws XMLStreamException, ParseException > { > queryOntologyRequestElement.build(); > queryOntologyRequestElement.detach(); > > OMElement root = queryOntologyRequestElement; > String sparqlQuery = root.getFirstChildWithName(new > QName("sparqlQuery")).getText(); > > > > But I have to escape all the Tags of the included param. > > J. Hondius wrote: >> >> I send xml string as a param no problem. >> Is the parameter type "String"? >> > > -- > View this message in context: > http://www.nabble.com/XML-string-as-Payload--tp24400713p24476800.html > Sent from the Axis - User mailing list archive at Nabble.com. > > -- Paul Fremantle Co-Founder and CTO, WSO2 Apache Synapse PMC Chair OASIS WS-RX TC Co-chair blog: http://pzf.fremantle.org [email protected] "Oxygenating the Web Service Platform", www.wso2.com
