[ http://issues.apache.org/jira/browse/AXIS-2551?page=comments#action_12431059 ] Karthikeyan commented on AXIS-2551: -----------------------------------
Dear Bjorn, Thanks for you reply. The below is the wsdd file: ---------------------------- <?xml version=3D"1.0" encoding=3D"UTF-8"?><!-- Use this file to deploy = some handlers/chains and services --><!-- Two ways to do this: --><!-- java org.apache.axis.client.AdminClient deploy.wsdd --><!-- after the axis server is running --><!-- or --><!-- java org.apache.axis.utils.Admin client|server deploy.wsdd --><!-- from the same directory that the Axis engine runs --><deployment xmlns=3D"http://xml.apache.org/axis/wsdd/" xmlns:java=3D"http://xml.apache.org/axis/wsdd/providers/java"> <!-- Services from WithoutTagService WSDL service --> <service name=3D"WithoutTag" provider=3D"java:RPC" style=3D"document"> <parameter name=3D"wsdlTargetNamespace" value=3D"http://sobject"/> <parameter name=3D"wsdlServiceElement" = value=3D"WithoutTagService"/> <parameter name=3D"schemaQualified" value=3D"http://sobject"/> <parameter name=3D"wsdlServicePort" value=3D"WithoutTag"/> <parameter name=3D"className" value=3D"sobject.WithoutTag"/> <parameter name=3D"wsdlPortType" value=3D"WithoutTag"/> <parameter name=3D"typeMappingVersion" value=3D"1.2"/> <operation xmlns:operNS=3D"http://sobject" xmlns:retNS=3D"http://sobject" xmlns:rtns=3D"http://www.w3.org/2001/XMLSchema" name=3D"test" qname=3D"operNS:test" returnQName=3D"retNS:testReturn" returnType=3D"rtns:string" soapAction=3D""> <parameter xmlns:pns=3D"http://sobject" xmlns:tns=3D"http://www.w3.org/2001/XMLSchema" qname=3D"pns:sObject" type=3D"tns:String"/> </operation> <parameter name=3D"allowedMethods" value=3D"test"/> </service> </deployment> The below is the webservice code: --------------------------------- package sobject; public class WithoutTag { =09 public String test(String sObject) { return sObject; } } Kindly give me suggestion how to pass a xml tag as a value to the above service. Regards, Karthikeyan R > org.xml.sax.SAXException: SimpleDeserializer encountered a child element, > which is NOT expected, in something it was trying to deserialize. > ------------------------------------------------------------------------------------------------------------------------------------------- > > Key: AXIS-2551 > URL: http://issues.apache.org/jira/browse/AXIS-2551 > Project: Apache Axis > Issue Type: Bug > Components: Serialization/Deserialization > Affects Versions: 1.3 > Environment: Windows > Reporter: Karthikeyan > > Hi All, > I am running Tomcat Sever version 5.5 and Axis 1.3, and I am trying to deploy > a WSDD > file. However, when I execute the AdminClient command it gets successfully > deployed. > My Soap client is a html which sends the Soap request to my service. > My Webservice has got a method which returns a string as response. > It works fine if I am passing a string. But fails if my service accepts > string content within xml tags. > For Eg, > If my soap request is similar to the one below it works fine > <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" > xmlns:xsd="http://www.w3.org/2001/XMLSchema" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><test > xmlns="urn:WithoutTag"><sObjects>testvalue</sObjects></test></soapenv:Body></soapenv:Envelope> > But if my request is like below > <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" > xmlns:xsd="http://www.w3.org/2001/XMLSchema" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><test > xmlns="urn:WithoutTag"><sObjects<sampletag>testvalue</sampletag></sObjects></test></soapenv:Body></soapenv:Envelope> > I get an error message stating that > org.xml.sax.SAXException: SimpleDeserializer encountered a child element, > which is NOT expected, in something it was trying to deserialize. > The problem might be when trying to parse the xml tag inside <sObjects> > Can someone help me? -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
