[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xmlrpc-dev
Subject:    RE: Axis client - adding CDATA XML string to request
From:       "Janardhanan, Suresh B" <Suresh.Janardhanan () duke-energy ! com>
Date:       2012-01-24 15:07:44
Message-ID: 0E7A1C737B47E643B4D95D6F03031633012F55DDDD7F () IMCLUSEXCP50 ! nam ! ent ! duke-energy ! com
[Download RAW message or body]

Andreas,

Thank you very much for your suggestion. Yes, if I pass just the XML without the \
CDATA Begin and End Tag the .Net web service comes back with a valid response. \
<PARAMETERS><RETURN><GENERALINFORMATION><INFORMATIONRETURNTYPEID>3294f665bc644359bfd15824d2efe29c</INFORMATIONRETURNTYPEID></GENERALINFORMATION></RETURN></PARAMETERS>


I am not sure why that's the case. The reason the .Net web service has CDATA Begin \
and End tag wrapped around the XML is to treat it as a string value, even if It is \
not a well-formed XML. I am working on testing this solution against all the WSDL \
Operations and check if works correctly.

Thanks again for your direction.

Suresh

Hi,

I generated my web services client using Apache Axis v2.1.6.1. The .Net target web \
service has the following in its WSDL -

<wsdl:part name="sXmlParameters" type="s:string" />

I am expected to set the following string for sXmlParameters.
xmlParameters=<![CDATA[<PARAMETERS><RETURN><GENERALINFORMATION><INFORMATIONRETURNTYPEI \
D>3294f665bc644359bfd15824d2efe29c</INFORMATIONRETURNTYPEID></GENERALINFORMATION></RETURN></PARAMETERS>


When it is sent through Apache Axis client, the XML characters <, > are getting \
converted - [main] DEBUG httpclient.wire.content  - >> "<?xml version='1.0' \
encoding='UTF-8'?><soapenv:Envelope \
xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"><soapenv:Body><ns1:RetrieveByParameter \
xmlns:ns1="http://wsdl.echelon.com/Panoramix/"><sKey>e1839da0c11c4058928b650f97c06853< \
/sKey><sIDTypeID>f76e5d708edd464593bb031f646990b6</sIDTypeID><sID>100063728</sID><sXml \
Parameters>&lt;![CDATA[&lt;PARAMETERS>&lt;RETURN>&lt;GENERALINFORMATION>&lt;INFORMATIO \
NRETURNTYPEID>3294f665bc644359bfd15824d2efe29c&lt;/INFORMATIONRETURNTYPEID>&lt;/GENERA \
LINFORMATION>&lt;/RETURN>&lt;/PARAMETERS>]]&gt;</sXmlParameters></ns1:RetrieveByParameter></soapenv:Body></soapenv:Envelope>"


Is there any way to send the XML string as is?

I also tried changing the WSDL type, which resulted in an Exception.

This is what I changed in the WSDL - changed sXmlParameters type=s:string to \
xmlStingType as shown below.  <wsdl:types>
            <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                  targetNamespace="http://wsdl.echelon.com/Panoramix/">
                  <xsd:complexType name="xmlStringType">
                        <xsd:sequence>
                              <xsd:any xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
                        </xsd:sequence>
                  </xsd:complexType>
            </xsd:schema>
      </wsdl:types>
<wsdl:part name="sXmlParameters" type="tns:xmlStringType" />

Code Snippet:
XmlStringType xmlStrType = new XmlStringType();
      OMElement element = AXIOMUtil.stringToOM(xmlParameters);
      xmlStrType.setExtraElement(element);

Stack Trace:
Caused by:
org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxUnexpectedCharException: \
Unexpected character 'C' (code 67) (CDATA not allowed in prolog/epilog) at [row,col \
{unknown-source}]: [1,3]  Stack Trace:
        org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:297)
        org.apache.axiom.om.impl.llom.OMDocumentImpl.getOMDocumentElement(OMDocumentImpl.java:111)
                
        org.apache.axiom.om.impl.builder.StAXOMBuilder.getDocumentElement(StAXOMBuilder.java:571)
                
        org.apache.axiom.om.impl.builder.StAXOMBuilder.getDocumentElement(StAXOMBuilder.java:567)
  org.apache.axiom.om.util.AXIOMUtil.stringToOM(AXIOMUtil.java:54)
        org.apache.axiom.om.util.AXIOMUtil.stringToOM(AXIOMUtil.java:39)

Any help is much appreciated.

Thanks,
Suresh


[Attachment #3 (text/html)]

<html xmlns:v="urn:schemas-microsoft-com:vml" \
xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns:x="urn:schemas-microsoft-com:office:excel" \
xmlns:p="urn:schemas-microsoft-com:office:powerpoint" \
xmlns:a="urn:schemas-microsoft-com:office:access" \
xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" \
xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" \
xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema" \
xmlns:b="urn:schemas-microsoft-com:office:publisher" \
xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" \
xmlns:c="urn:schemas-microsoft-com:office:component:spreadsheet" \
xmlns:odc="urn:schemas-microsoft-com:office:odc" \
xmlns:oa="urn:schemas-microsoft-com:office:activation" \
xmlns:html="http://www.w3.org/TR/REC-html40" \
xmlns:q="http://schemas.xmlsoap.org/soap/envelope/" \
xmlns:rtc="http://microsoft.com/officenet/conferencing" xmlns:D="DAV:" \
xmlns:Repl="http://schemas.microsoft.com/repl/" \
xmlns:mt="http://schemas.microsoft.com/sharepoint/soap/meetings/" \
xmlns:x2="http://schemas.microsoft.com/office/excel/2003/xml" \
xmlns:ppda="http://www.passport.com/NameSpace.xsd" \
xmlns:ois="http://schemas.microsoft.com/sharepoint/soap/ois/" \
xmlns:dir="http://schemas.microsoft.com/sharepoint/soap/directory/" \
xmlns:ds="http://www.w3.org/2000/09/xmldsig#" \
xmlns:dsp="http://schemas.microsoft.com/sharepoint/dsp" \
xmlns:udc="http://schemas.microsoft.com/data/udc" \
xmlns:xsd="http://www.w3.org/2001/XMLSchema" \
xmlns:sub="http://schemas.microsoft.com/sharepoint/soap/2002/1/alerts/" \
xmlns:ec="http://www.w3.org/2001/04/xmlenc#" \
xmlns:sp="http://schemas.microsoft.com/sharepoint/" \
xmlns:sps="http://schemas.microsoft.com/sharepoint/soap/" \
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" \
xmlns:udcs="http://schemas.microsoft.com/data/udc/soap" \
xmlns:udcxf="http://schemas.microsoft.com/data/udc/xmlfile" \
xmlns:udcp2p="http://schemas.microsoft.com/data/udc/parttopart" \
xmlns:wf="http://schemas.microsoft.com/sharepoint/soap/workflow/" \
xmlns:dsss="http://schemas.microsoft.com/office/2006/digsig-setup" \
xmlns:dssi="http://schemas.microsoft.com/office/2006/digsig" \
xmlns:mdssi="http://schemas.openxmlformats.org/package/2006/digital-signature" \
xmlns:mver="http://schemas.openxmlformats.org/markup-compatibility/2006" \
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" \
xmlns:mrels="http://schemas.openxmlformats.org/package/2006/relationships" \
xmlns:spwp="http://microsoft.com/sharepoint/webpartpages" \
xmlns:ex12t="http://schemas.microsoft.com/exchange/services/2006/types" \
xmlns:ex12m="http://schemas.microsoft.com/exchange/services/2006/messages" \
xmlns:pptsl="http://schemas.microsoft.com/sharepoint/soap/SlideLibrary/" \
xmlns:spsl="http://microsoft.com/webservices/SharePointPortalServer/PublishedLinksService" \
xmlns:Z="urn:schemas-microsoft-com:" xmlns:st="&#1;" \
xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type \
content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 \
(filtered medium)"><style><!-- /* Font Definitions */
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Garamond;
	panose-1:2 2 4 4 3 3 1 1 8 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
span.EmailStyle17
	{mso-style-type:personal;
	font-family:"Garamond","serif";
	color:windowtext;
	font-weight:normal;
	font-style:normal;}
span.EmailStyle18
	{mso-style-type:personal;
	font-family:"Garamond","serif";
	color:#1F497D;
	font-weight:normal;
	font-style:normal;}
span.EmailStyle19
	{mso-style-type:personal-reply;
	font-family:"Garamond","serif";
	color:#1F497D;
	font-weight:normal;
	font-style:normal;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-size:10.0pt;}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div \
class=WordSection1><p class=MsoNormal><span \
style='color:#1F497D'>Andreas,</span><o:p></o:p></p><p class=MsoNormal><span \
style='font-size:12.0pt;font-family:"Garamond","serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p \
class=MsoNormal><span \
style='font-size:12.0pt;font-family:"Garamond","serif";color:#1F497D'>Thank you very \
much for your suggestion. Yes, if I pass just the XML without the CDATA Begin and End \
Tag the .Net web service comes back with a valid response.<o:p></o:p></span></p><p \
class=MsoNormal>&lt;PARAMETERS&gt;&lt;RETURN&gt;&lt;GENERALINFORMATION&gt;&lt;INFORMAT \
IONRETURNTYPEID&gt;3294f665bc644359bfd15824d2efe29c&lt;/INFORMATIONRETURNTYPEID&gt;&lt;/GENERALINFORMATION&gt;&lt;/RETURN&gt;&lt;/PARAMETERS&gt;<span \
style='font-size:12.0pt;font-family:"Garamond","serif";color:#1F497D'><o:p></o:p></span></p><p \
class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p><p \
class=MsoNormal><span style='color:#1F497D'>I am not sure why that&#8217;s the case. \
The reason the .Net web service has CDATA Begin and End tag wrapped around the XML is \
to treat it as a string value, even if It is not a well-formed XML. I am working on \
testing this solution against all the WSDL Operations and check if works \
correctly.<o:p></o:p></span></p><p class=MsoNormal><span \
style='color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span \
style='color:#1F497D'>Thanks again for your direction.<o:p></o:p></span></p><p \
class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p><p \
class=MsoNormal><span style='color:#1F497D'>Suresh<o:p></o:p></span></p><p \
class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p><p \
class=MsoNormal><span \
style='font-size:12.0pt;font-family:"Garamond","serif"'>Hi,<o:p></o:p></span></p><p \
class=MsoNormal><span \
style='font-size:12.0pt;font-family:"Garamond","serif"'><o:p>&nbsp;</o:p></span></p><p \
class=MsoNormal><span style='font-size:12.0pt;font-family:"Garamond","serif"'>I \
generated my web services client using Apache Axis v2.1.6.1. The .Net target web \
service has the following in its WSDL &#8211;<o:p></o:p></span></p><p \
class=MsoNormal><span \
style='font-size:12.0pt;font-family:"Garamond","serif"'><o:p>&nbsp;</o:p></span></p><p \
class=MsoNormal>&lt;wsdl:part name=&quot;sXmlParameters&quot; \
type=&quot;s:string&quot; /&gt;<o:p></o:p></p><p \
class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>I am expected to set the \
following string for sXmlParameters.<o:p></o:p></p><p \
class=MsoNormal>xmlParameters=&lt;![CDATA[&lt;PARAMETERS&gt;&lt;RETURN&gt;&lt;GENERALI \
NFORMATION&gt;&lt;INFORMATIONRETURNTYPEID&gt;3294f665bc644359bfd15824d2efe29c&lt;/INFO \
RMATIONRETURNTYPEID&gt;&lt;/GENERALINFORMATION&gt;&lt;/RETURN&gt;&lt;/PARAMETERS&gt;<o:p></o:p></p><p \
class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>When it is sent through \
Apache Axis client, the XML characters &lt;, &gt; are getting converted \
&#8211;<o:p></o:p></p><p class=MsoNormal><span \
style='font-size:10.0pt;font-family:"Courier New";color:black'>[main] DEBUG \
httpclient.wire.content&nbsp; - &gt;&gt; &quot;&lt;?xml version='1.0' \
encoding='UTF-8'?&gt;&lt;soapenv:Envelope xmlns:soapenv=&quot;<a \
href="http://www.w3.org/2003/05/soap-envelope">http://www.w3.org/2003/05/soap-envelope</a>&quot;&gt;&lt;soapenv:Body&gt;&lt;ns1:RetrieveByParameter \
xmlns:ns1=&quot;<a href="http://wsdl.echelon.com/Panoramix/">http://wsdl.echelon.com/P \
anoramix/</a>&quot;&gt;&lt;sKey&gt;e1839da0c11c4058928b650f97c06853&lt;/sKey&gt;&lt;sI \
DTypeID&gt;f76e5d708edd464593bb031f646990b6&lt;/sIDTypeID&gt;&lt;sID&gt;100063728&lt;/ \
sID&gt;&lt;sXmlParameters&gt;&amp;lt;![CDATA[&amp;lt;PARAMETERS&gt;&amp;lt;RETURN&gt;& \
amp;lt;GENERALINFORMATION&gt;&amp;lt;INFORMATIONRETURNTYPEID&gt;3294f665bc644359bfd158 \
24d2efe29c&amp;lt;/INFORMATIONRETURNTYPEID&gt;&amp;lt;/GENERALINFORMATION&gt;&amp;lt;/ \
RETURN&gt;&amp;lt;/PARAMETERS&gt;]]&amp;gt;&lt;/sXmlParameters&gt;&lt;/ns1:RetrieveByP \
arameter&gt;&lt;/soapenv:Body&gt;&lt;/soapenv:Envelope&gt;&quot;<o:p></o:p></span></p><p \
class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier \
New";color:black'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal>Is there any way to \
send the XML string as is?<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p \
class=MsoNormal>I also tried changing the WSDL type, which resulted in an \
Exception.<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p \
class=MsoNormal>This is what I changed in the WSDL - <span \
style='font-size:12.0pt;font-family:"Garamond","serif";color:#1F497D'>changed \
sXmlParameters type=s:string to xmlStingType as shown below.<o:p></o:p></span></p><p \
class=MsoNormal style='text-autospace:none'><span \
style='font-size:10.0pt;font-family:"Courier \
New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span \
style='font-size:10.0pt;font-family:"Courier New";color:teal'>&lt;</span><span \
style='font-size:10.0pt;font-family:"Courier \
New";color:#3F7F7F'>wsdl:types</span><span \
style='font-size:10.0pt;font-family:"Courier New";color:teal'>&gt;</span><span \
style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p><p \
class=MsoNormal style='text-autospace:none'><span \
style='font-size:10.0pt;font-family:"Courier \
New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
</span><span style='font-size:10.0pt;font-family:"Courier \
New";color:teal'>&lt;</span><span style='font-size:10.0pt;font-family:"Courier \
New";color:#3F7F7F'>xsd:schema </span><span \
style='font-size:10.0pt;font-family:"Courier \
New";color:#7F007F'>xmlns:xsd</span><span \
style='font-size:10.0pt;font-family:"Courier New";color:black'>=</span><span \
style='font-size:10.0pt;font-family:"Courier New";color:#2A00FF'>&quot;<a \
href="http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchema</a>&quot;</span><span \
style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p><p \
class=MsoNormal style='text-autospace:none'><span \
style='font-size:10.0pt;font-family:"Courier \
New";color:#2A00FF'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
</span><span style='font-size:10.0pt;font-family:"Courier \
New";color:#7F007F'>targetNamespace</span><span \
style='font-size:10.0pt;font-family:"Courier New";color:black'>=</span><span \
style='font-size:10.0pt;font-family:"Courier New";color:#2A00FF'>&quot;<a \
href="http://wsdl.echelon.com/Panoramix/">http://wsdl.echelon.com/Panoramix/</a>&quot;</span><span \
style='font-size:10.0pt;font-family:"Courier New";color:teal'>&gt;</span><span \
style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p><p \
class=MsoNormal style='text-autospace:none'><span \
style='font-size:10.0pt;font-family:"Courier \
New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
</span><span style='font-size:10.0pt;font-family:"Courier \
New";color:teal'>&lt;</span><span style='font-size:10.0pt;font-family:"Courier \
New";color:#3F7F7F'>xsd:complexType </span><span \
style='font-size:10.0pt;font-family:"Courier New";color:#7F007F'>name</span><span \
style='font-size:10.0pt;font-family:"Courier New";color:black'>=</span><span \
style='font-size:10.0pt;font-family:"Courier \
New";color:#2A00FF'>&quot;xmlStringType&quot;</span><span \
style='font-size:10.0pt;font-family:"Courier New";color:teal'>&gt;</span><span \
style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p><p \
class=MsoNormal style='text-autospace:none'><span \
style='font-size:10.0pt;font-family:"Courier \
New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
</span><span style='font-size:10.0pt;font-family:"Courier \
New";color:teal'>&lt;</span><span style='font-size:10.0pt;font-family:"Courier \
New";color:#3F7F7F'>xsd:sequence</span><span \
style='font-size:10.0pt;font-family:"Courier New";color:teal'>&gt;</span><span \
style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p><p \
class=MsoNormal style='text-autospace:none'><span \
style='font-size:10.0pt;font-family:"Courier \
New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n \
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
</span><span style='font-size:10.0pt;font-family:"Courier \
New";color:teal'>&lt;</span><span style='font-size:10.0pt;font-family:"Courier \
New";color:#3F7F7F'>xsd:any </span><span style='font-size:10.0pt;font-family:"Courier \
New";color:#7F007F'>xmlns:xsd</span><span \
style='font-size:10.0pt;font-family:"Courier New";color:black'>=</span><span \
style='font-size:10.0pt;font-family:"Courier New";color:#2A00FF'>&quot;<a \
href="http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchema</a>&quot;</span><span \
style='font-size:10.0pt;font-family:"Courier New";color:teal'>/&gt;</span><span \
style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p><p \
class=MsoNormal style='text-autospace:none'><span \
style='font-size:10.0pt;font-family:"Courier \
New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
</span><span style='font-size:10.0pt;font-family:"Courier \
New";color:teal'>&lt;/</span><span style='font-size:10.0pt;font-family:"Courier \
New";color:#3F7F7F'>xsd:sequence</span><span \
style='font-size:10.0pt;font-family:"Courier New";color:teal'>&gt;</span><span \
style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p><p \
class=MsoNormal style='text-autospace:none'><span \
style='font-size:10.0pt;font-family:"Courier \
New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
</span><span style='font-size:10.0pt;font-family:"Courier \
New";color:teal'>&lt;/</span><span style='font-size:10.0pt;font-family:"Courier \
New";color:#3F7F7F'>xsd:complexType</span><span \
style='font-size:10.0pt;font-family:"Courier New";color:teal'>&gt;</span><span \
style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p><p \
class=MsoNormal style='text-autospace:none'><span \
style='font-size:10.0pt;font-family:"Courier \
New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
</span><span style='font-size:10.0pt;font-family:"Courier \
New";color:teal'>&lt;/</span><span style='font-size:10.0pt;font-family:"Courier \
New";color:#3F7F7F'>xsd:schema</span><span \
style='font-size:10.0pt;font-family:"Courier New";color:teal'>&gt;</span><span \
style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p><p \
class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier \
New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span \
style='font-size:10.0pt;font-family:"Courier New";color:teal'>&lt;/</span><span \
style='font-size:10.0pt;font-family:"Courier \
New";color:#3F7F7F'>wsdl:types</span><span \
style='font-size:10.0pt;font-family:"Courier \
New";color:teal'>&gt;<o:p></o:p></span></p><p class=MsoNormal \
style='text-indent:.5in'><span style='font-size:10.0pt;font-family:"Courier \
New";color:teal'>&lt;wsdl:part name=&quot;sXmlParameters&quot; \
type=&quot;tns:xmlStringType&quot; /&gt;<o:p></o:p></span></p><p \
class=MsoNormal><span \
style='font-size:12.0pt;font-family:"Garamond","serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p \
class=MsoNormal><span \
style='font-size:12.0pt;font-family:"Garamond","serif";color:#1F497D'>Code \
Snippet:<o:p></o:p></span></p><p class=MsoNormal \
style='text-indent:.5in;text-autospace:none'><span \
style='font-size:10.0pt;font-family:"Courier New";color:black'>XmlStringType \
xmlStrType = </span><b><span style='font-size:10.0pt;font-family:"Courier \
New";color:#7F0055'>new</span></b><span style='font-size:10.0pt;font-family:"Courier \
New";color:black'> XmlStringType();</span><span \
style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p><p \
class=MsoNormal style='text-autospace:none'><span \
style='font-size:10.0pt;font-family:"Courier \
New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OMElement element = \
AXIOMUtil.<i>stringToOM</i>(xmlParameters);</span><span \
style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p><p \
class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier \
New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
xmlStrType.setExtraElement(element);<o:p></o:p></span></p><p class=MsoNormal><span \
style='font-size:12.0pt;font-family:"Garamond","serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p \
class=MsoNormal><span \
style='font-size:12.0pt;font-family:"Garamond","serif";color:#1F497D'>Stack \
Trace:<o:p></o:p></span></p><p class=MsoNormal><span \
style='font-size:12.0pt;font-family:"Garamond","serif";color:#1F497D'>Caused \
by:<o:p></o:p></span></p><p class=MsoNormal><span \
style='font-size:12.0pt;font-family:"Garamond","serif";color:#1F497D'>org.apache.axiom.om.OMException: \
com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character 'C' (code 67) \
(CDATA not allowed in prolog/epilog)<o:p></o:p></span></p><p class=MsoNormal><span \
style='font-size:12.0pt;font-family:"Garamond","serif";color:#1F497D'>at [row,col \
{unknown-source}]: [1,3]<o:p></o:p></span></p><p class=MsoNormal><span \
style='font-size:12.0pt;font-family:"Garamond","serif";color:#1F497D'>&nbsp; Stack \
Trace:<o:p></o:p></span></p><p class=MsoNormal><span \
style='font-size:12.0pt;font-family:"Garamond","serif";color:#1F497D'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:297)<o:p></o:p></span></p><p \
class=MsoNormal><span \
style='font-size:12.0pt;font-family:"Garamond","serif";color:#1F497D'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
org.apache.axiom.om.impl.llom.OMDocumentImpl.getOMDocumentElement(OMDocumentImpl.java:111)<o:p></o:p></span></p><p \
class=MsoNormal><span \
style='font-size:12.0pt;font-family:"Garamond","serif";color:#1F497D'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
org.apache.axiom.om.impl.builder.StAXOMBuilder.getDocumentElement(StAXOMBuilder.java:571)<o:p></o:p></span></p><p \
class=MsoNormal><span \
style='font-size:12.0pt;font-family:"Garamond","serif";color:#1F497D'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
org.apache.axiom.om.impl.builder.StAXOMBuilder.getDocumentElement(StAXOMBuilder.java:567)<o:p></o:p></span></p><p \
class=MsoNormal><span \



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic