<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Perl: how to passed the XML string into SOAP::Data method in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-how-to-passed-the-xml-string-into-soap-data-method/m-p/4273460#M688364</link>
    <description>Hi,&lt;BR /&gt;I am using SOAP::Lite module for perl client which connect the web services.&lt;BR /&gt;I am using SOAP::Data method as :&lt;BR /&gt;"SOAP::Data-&amp;gt;name('string')-&amp;gt;value($XML)"for a method&lt;BR /&gt;Here $xml is a XML string, when i passed this parameter i got 400 bad error.if i used XML::Simple and XML::Dumper module which convert the xml string into perl data ,and use this perl data into the value of SOAP::Data,but i am not able to execute my method&lt;BR /&gt;&lt;BR /&gt;So, can any idea about how to passed the "xml" string in above quotted method.</description>
    <pubDate>Mon, 22 Sep 2008 12:09:26 GMT</pubDate>
    <dc:creator>Rajeshwar Sharma</dc:creator>
    <dc:date>2008-09-22T12:09:26Z</dc:date>
    <item>
      <title>Perl: how to passed the XML string into SOAP::Data method</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-how-to-passed-the-xml-string-into-soap-data-method/m-p/4273457#M688361</link>
      <description>How to Passed the "xml string" parameter into the SOAP::Data method in perl?, Plz help me as soon as. thanks in advance.</description>
      <pubDate>Mon, 22 Sep 2008 10:04:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-how-to-passed-the-xml-string-into-soap-data-method/m-p/4273457#M688361</guid>
      <dc:creator>Rajeshwar Sharma</dc:creator>
      <dc:date>2008-09-22T10:04:46Z</dc:date>
    </item>
    <item>
      <title>Re: Perl: how to passed the XML string into SOAP::Data method</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-how-to-passed-the-xml-string-into-soap-data-method/m-p/4273458#M688362</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;You might begin by reading the module's documentation.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 22 Sep 2008 10:47:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-how-to-passed-the-xml-string-into-soap-data-method/m-p/4273458#M688362</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-09-22T10:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: Perl: how to passed the XML string into SOAP::Data method</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-how-to-passed-the-xml-string-into-soap-data-method/m-p/4273459#M688363</link>
      <description>Your question is a bit too unspecific. &lt;BR /&gt;It really depends if and in what way you need to serialize your XML entity.&lt;BR /&gt;The general usage of class SOAP::Data can be viewed as usual by perldoc SOAP::Data&lt;BR /&gt;or here&lt;BR /&gt;&lt;A href="http://search.cpan.org/~mkutter/SOAP-Lite-0.710.08/lib/OldDocs/SOAP/Lite.pm#SOAP::Data" target="_blank"&gt;http://search.cpan.org/~mkutter/SOAP-Lite-0.710.08/lib/OldDocs/SOAP/Lite.pm#SOAP::Data&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The easiest I would think was to use a WSDL file for the SOAP service you need to communicate with.&lt;BR /&gt;From own bad experience when I tried to communicate with an Apache Axis SOAP server I do remember that WSDL support in the old SOAP::Lite was barely existing or working at all.&lt;BR /&gt;Basically the SOAP::Lite modules was more or less only useful if you implemented server and client with this module while interoperability with newer SOAP services was  really nerve wrecking.&lt;BR /&gt;I heard at this year's German Perl Workshop that Soap::Lite now has a new maintainer, viz. Martin Kutter who took over from Pavel Kulchenko.&lt;BR /&gt;Martin promised that he wants to overhaul the whole SOAP::Lite and provide it with working WSDL capability which should make the whole stuff a hell of a lot easier for the average module user.&lt;BR /&gt;On CPAN I found this module by him.&lt;BR /&gt;Maybe it is already usable?&lt;BR /&gt;You could give it a try and report.&lt;BR /&gt;&lt;A href="http://search.cpan.org/dist/SOAP-WSDL/" target="_blank"&gt;http://search.cpan.org/dist/SOAP-WSDL/&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 22 Sep 2008 11:53:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-how-to-passed-the-xml-string-into-soap-data-method/m-p/4273459#M688363</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2008-09-22T11:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: Perl: how to passed the XML string into SOAP::Data method</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-how-to-passed-the-xml-string-into-soap-data-method/m-p/4273460#M688364</link>
      <description>Hi,&lt;BR /&gt;I am using SOAP::Lite module for perl client which connect the web services.&lt;BR /&gt;I am using SOAP::Data method as :&lt;BR /&gt;"SOAP::Data-&amp;gt;name('string')-&amp;gt;value($XML)"for a method&lt;BR /&gt;Here $xml is a XML string, when i passed this parameter i got 400 bad error.if i used XML::Simple and XML::Dumper module which convert the xml string into perl data ,and use this perl data into the value of SOAP::Data,but i am not able to execute my method&lt;BR /&gt;&lt;BR /&gt;So, can any idea about how to passed the "xml" string in above quotted method.</description>
      <pubDate>Mon, 22 Sep 2008 12:09:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-how-to-passed-the-xml-string-into-soap-data-method/m-p/4273460#M688364</guid>
      <dc:creator>Rajeshwar Sharma</dc:creator>
      <dc:date>2008-09-22T12:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: Perl: how to passed the XML string into SOAP::Data method</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-how-to-passed-the-xml-string-into-soap-data-method/m-p/4273461#M688365</link>
      <description>&amp;gt; I am using SOAP::Data method as :&lt;BR /&gt;&amp;gt;"SOAP::Data-&amp;gt;name('string')-&amp;gt;value($XML)"for a method&lt;BR /&gt;&amp;gt; Here $xml is a XML string&lt;BR /&gt;&lt;BR /&gt;No, I don't think you are supposed to pass verbatim XML like that. The SOAP serializer is converting into valid XML for you.&lt;BR /&gt;SOAP::Data has accessor and mutator methods (or getters and setters if you prefer) which you would pass values like with any other Perl function. You haven't read perdoc SOAP::Data, have you?&lt;BR /&gt;&lt;BR /&gt;As a sample I attached a snippet from said Apache Axis SOAP client I once wrote which shows how it worked for me rigging up an appropriate SOAP header.&lt;BR /&gt;This really looks ugly but I was forced to build up the complete entity like that with iterative tcpdumps from a working .Net SOAP client.&lt;BR /&gt;Normally you wouldn't want to do this but use a WSDL file, as did the colleague who wrote a .Net client which unlike mine for him worked out of the box.&lt;BR /&gt;But this was owe to SOAP::Lite's deficiencies because it came out too early and was implemented according to early SOAP standards nobody else seems to use anymore.&lt;BR /&gt;</description>
      <pubDate>Mon, 22 Sep 2008 12:59:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-how-to-passed-the-xml-string-into-soap-data-method/m-p/4273461#M688365</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2008-09-22T12:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: Perl: how to passed the XML string into SOAP::Data method</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-how-to-passed-the-xml-string-into-soap-data-method/m-p/4273462#M688366</link>
      <description>&lt;!--!*#--&gt;I apologize, I just revisited the POD of SOAP::Data and had to discover that you indeed can pass verbatim XML.&lt;BR /&gt;I have never made use of this, that's why I didn't knew.&lt;BR /&gt;But as it reads in the POD, you have to make sure that the XML you pass is valid since the serializer won't do any checking of it.&lt;BR /&gt;&lt;BR /&gt;&lt;QUOTE from="" perldoc="" lite=""&gt;&lt;BR /&gt;      COMPOSING MESSAGES USING RAW XML&lt;BR /&gt;&lt;BR /&gt;      In some circumstances you may need to encode a message using raw&lt;BR /&gt;      unserialized XML text. To instantiate a SOAP::Data object using raw&lt;BR /&gt;      XML, do the following:&lt;BR /&gt;&lt;BR /&gt;          $xml_content = "&lt;FOO&gt;&lt;BAR&gt;123&lt;/BAR&gt;&lt;/FOO&gt;";&lt;BR /&gt;          $elem = SOAP::Data-&amp;gt;type('xml' =&amp;gt; $xml_content);&lt;BR /&gt;&lt;BR /&gt;      SOAP::Lite's serializer simple takes whatever text is passed to it,&lt;BR /&gt;      and inserts into the encoded SOAP::Data element verbatim. The text&lt;BR /&gt;      input is NOT validated to ensure it is valid XML, nor is the resulting&lt;BR /&gt;      SOAP::Data element validated to ensure that it will produce valid XML.&lt;BR /&gt;      Therefore, it is incumbent upon the developer to ensure that any XML&lt;BR /&gt;      data used in this fashion is valid and will result in a valid XML&lt;BR /&gt;      document.&lt;BR /&gt;&lt;/QUOTE&gt;</description>
      <pubDate>Mon, 22 Sep 2008 13:09:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-how-to-passed-the-xml-string-into-soap-data-method/m-p/4273462#M688366</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2008-09-22T13:09:23Z</dc:date>
    </item>
    <item>
      <title>Re: Perl: how to passed the XML string into SOAP::Data method</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-how-to-passed-the-xml-string-into-soap-data-method/m-p/4273463#M688367</link>
      <description>I was used as u mention in reply , but situation is same. i have copied here the method where i used the xml as input parameter in the method.when i used the xml in value i got the error . Plz help me.&lt;BR /&gt;$result = $soap-&amp;gt;call(SOAP::Data-&amp;gt;name($strMethod)-&amp;gt;attr({xmlns =&amp;gt;$uri . "/"})=&amp;gt;(&lt;BR /&gt;        SOAP::Data-&amp;gt;name('strClientId')-&amp;gt;value($strClientId),&lt;BR /&gt;        SOAP::Data-&amp;gt;name('strSubjectPath')-&amp;gt;value($strSubjectPath),&lt;BR /&gt;        SOAP::Data-&amp;gt;name('strQATestName')-&amp;gt;value($strQATestName),&lt;BR /&gt;        SOAP::Data-&amp;gt;name('strFolderName')-&amp;gt;value($strFolderName),&lt;BR /&gt;        SOAP::Data-&amp;gt;name('strXML')-&amp;gt;value($xml_content),&lt;BR /&gt;        SOAP::Data-&amp;gt;name('blForce')-&amp;gt;value($blForce),&lt;BR /&gt;        SOAP::Data-&amp;gt;name('blCreateFolder')-&amp;gt;value($blCreateFolder)&lt;BR /&gt;)&lt;BR /&gt;); &lt;BR /&gt;thanks in advance..&lt;BR /&gt;raj</description>
      <pubDate>Tue, 23 Sep 2008 06:53:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-how-to-passed-the-xml-string-into-soap-data-method/m-p/4273463#M688367</guid>
      <dc:creator>Rajeshwar Sharma</dc:creator>
      <dc:date>2008-09-23T06:53:28Z</dc:date>
    </item>
  </channel>
</rss>

