Loading ...
Sorry, an error occurred while loading the content.

Re: [soaplite] duplicates

Expand Messages
  • JakeCigar
    that old thread talks about how to do it using the valueof() syntax that reads the XML a bit too literally! It seems that Apache Soap sends almost every
    Message 1 of 5 , Mar 6 6:50 PM
    • 0 Attachment
      that old thread talks about how to do it using the "valueof()" syntax that reads the XML a bit too literally!
      It seems that Apache Soap sends almost every field with the name "item" and most of the rest as "value".
       
      I was thinking of some sort of deserializer?? though I have found no examples for array like deserializer functions! 
       
       
      Or running through the SOM in perl myself (straight perl)???  Find anything that came in as
                  xsi:type="ns2:Vector"
      and change it to something like
                  SOAP-ENC:arrayType="xsd:string[4]" xsi:type="namesp2:Vector"
       
      Does anyone have ideas on other ways to find my Dupe Fields/Vectors?
       
       
       
      ----- Original Message -----
      Sent: Wednesday, March 06, 2002 12:00 AM
      Subject: Re: [soaplite] duplicates

      On 2002-03-05 JakeCigar wrote:
      >How do I access
      >    <value xsi:type="ns2:Vector">
      >        <item xsi:type="xsd:string">vector-zero</item>
      >        <item xsi:type="xsd:string">vector-one</item>
      >        <item xsi:type="xsd:string">vector-two</item>
      >        <item xsi:type="xsd:string"></item>
      >    </value>
      >
      >    as sent by Apache's java soap software for a Vector or strings
      >
      >    When I was expecting:
      >
      >    <value SOAP-ENC:arrayType="xsd:string[4]" xsi:type="namesp2:Vector">
      >        <item xsi:type="xsd:string">Jake</item>
      >        <item xsi:type="xsd:string">says,</item>
      >        <item xsi:type="xsd:string">good</item>
      >        <item xsi:type="xsd:string">password</item>
      >    </value>
      >
      >    As sent by a SOAP:Lite client, for a blessed array of strings.
      >
      >For that matter, how do I access any duplicate tags as a part of the perl structure returned from ->result?
      >
      ><foo>
      >    <bar>drink</bar>
      >    <bar>talk</bar>
      >    <bar>leave</bar>
      ></foo>
      >
      >I don't want to just "leave".

      Jake

      This is 'very frequently asked question'. The first thing to do is
      a search of the group's archive on Yahoo. There's a thread from
      last year which explains this:
      http://groups.yahoo.com/group/soaplite/message/549

      Regards,
      Duncan Cameron







      To unsubscribe from this group, send an email to:
      soaplite-unsubscribe@yahoogroups.com



      Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
    • Paul Kulchenko
      Hi, Duncan! ... Thanks, Duncan. You re right, too frequently asked ;). So, what s the best thing to do? Deserialize it as an array? How about this:
      Message 2 of 5 , Mar 6 7:55 PM
      • 0 Attachment
        Hi, Duncan!

        > This is 'very frequently asked question'. The first thing to do is
        > a search of the group's archive on Yahoo. There's a thread from
        Thanks, Duncan. You're right, 'too frequently asked' ;). So, what's
        the best thing to do? Deserialize it as an array? How about this:

        <foo>
        <bar>drink</bar>
        <bar>talk</bar>
        <bar>leave</bar>
        <foobar>something</foobar>
        </foo>

        Make it configurable? Other ideas? Comments?

        Best wishes, Paul.

        --- Duncan Cameron <dcameron@...> wrote:
        > On 2002-03-05 JakeCigar wrote:
        > >How do I access
        > > <value xsi:type="ns2:Vector">
        > > <item xsi:type="xsd:string">vector-zero</item>
        > > <item xsi:type="xsd:string">vector-one</item>
        > > <item xsi:type="xsd:string">vector-two</item>
        > > <item xsi:type="xsd:string"></item>
        > > </value>
        > >
        > > as sent by Apache's java soap software for a Vector or strings
        > >
        > > When I was expecting:
        > >
        > > <value SOAP-ENC:arrayType="xsd:string[4]"
        > xsi:type="namesp2:Vector">
        > > <item xsi:type="xsd:string">Jake</item>
        > > <item xsi:type="xsd:string">says,</item>
        > > <item xsi:type="xsd:string">good</item>
        > > <item xsi:type="xsd:string">password</item>
        > > </value>
        > >
        > > As sent by a SOAP:Lite client, for a blessed array of strings.
        > >
        > >For that matter, how do I access any duplicate tags as a part of
        > the perl structure returned from ->result?
        > >
        > ><foo>
        > > <bar>drink</bar>
        > > <bar>talk</bar>
        > > <bar>leave</bar>
        > ></foo>
        > >
        > >I don't want to just "leave".
        >
        > Jake
        >
        > This is 'very frequently asked question'. The first thing to do is
        > a search of the group's archive on Yahoo. There's a thread from
        > last year which explains this:
        > http://groups.yahoo.com/group/soaplite/message/549
        >
        > Regards,
        > Duncan Cameron
        >
        >
        >
        >
        >
        >
        > ------------------------ Yahoo! Groups Sponsor
        >
        > To unsubscribe from this group, send an email to:
        > soaplite-unsubscribe@yahoogroups.com
        >
        >
        >
        > Your use of Yahoo! Groups is subject to
        > http://docs.yahoo.com/info/terms/
        >
        >


        __________________________________________________
        Do You Yahoo!?
        Try FREE Yahoo! Mail - the world's greatest free email!
        http://mail.yahoo.com/
      • JakeCigar
        I see 2 cases #1 drink talk leave something and #2
        Message 3 of 5 , Mar 6 8:10 PM
        • 0 Attachment
          I see 2 cases
          #1
          <foo>
          <bar>drink</bar>
          <bar>talk</bar>
          <bar>leave</bar>
          <foobar>something</foobar>
          </foo>
          and
          #2
          <value xsi:type="ns2:Vector">
          <item xsi:type="xsd:string">vector-zero</item>
          <item xsi:type="xsd:string">vector-one</item>
          <item xsi:type="xsd:string">vector-two</item>
          <item xsi:type="xsd:string"></item>
          </value>

          #1 should probably be
          $d->{foo}{bar}[0] = 'drink'
          $d->{foo}{bar}[1] = 'talk'
          $d->{foo}{bar}[2] = 'leave'
          $d->{foo}{foobar} = 'something'
          #2 should probably be
          $d->[0] = 'vector-zero'
          $d->[1] = 'vector-one'
          $d->[2] = 'vector-two'
          $d->[3] = ''


          #1 is weird and is for people playing around, except without the foobar,
          where it is pretty normal.
          #2 is Apache Soap's way of sending Vectors.

          I don't want to thow up a yellow flag for every #1 (with or without foobar).
          I don't want to have to use Dumper to figure out I've got a #2, then deal
          with it.


          Jake "the PUNisher"

          ----- Original Message -----
          From: "Paul Kulchenko" <paulclinger@...>
          To: "Duncan Cameron" <dcameron@...>; "JakeCigar"
          <jakecigar@...>; <soaplite@yahoogroups.com>
          Sent: Wednesday, March 06, 2002 7:55 PM
          Subject: Re: [soaplite] duplicates


          > Hi, Duncan!
          >
          > > This is 'very frequently asked question'. The first thing to do is
          > > a search of the group's archive on Yahoo. There's a thread from
          > Thanks, Duncan. You're right, 'too frequently asked' ;). So, what's
          > the best thing to do? Deserialize it as an array? How about this:
          >
          > <foo>
          > <bar>drink</bar>
          > <bar>talk</bar>
          > <bar>leave</bar>
          > <foobar>something</foobar>
          > </foo>
          >
          > Make it configurable? Other ideas? Comments?
          >
          > Best wishes, Paul.
          >
          > --- Duncan Cameron <dcameron@...> wrote:
          > > On 2002-03-05 JakeCigar wrote:
          > > >How do I access
          > > > <value xsi:type="ns2:Vector">
          > > > <item xsi:type="xsd:string">vector-zero</item>
          > > > <item xsi:type="xsd:string">vector-one</item>
          > > > <item xsi:type="xsd:string">vector-two</item>
          > > > <item xsi:type="xsd:string"></item>
          > > > </value>
          > > >
          > > > as sent by Apache's java soap software for a Vector or strings
          > > >
          > > > When I was expecting:
          > > >
          > > > <value SOAP-ENC:arrayType="xsd:string[4]"
          > > xsi:type="namesp2:Vector">
          > > > <item xsi:type="xsd:string">Jake</item>
          > > > <item xsi:type="xsd:string">says,</item>
          > > > <item xsi:type="xsd:string">good</item>
          > > > <item xsi:type="xsd:string">password</item>
          > > > </value>
          > > >
          > > > As sent by a SOAP:Lite client, for a blessed array of strings.
          > > >
          > > >For that matter, how do I access any duplicate tags as a part of
          > > the perl structure returned from ->result?
          > > >
          > > ><foo>
          > > > <bar>drink</bar>
          > > > <bar>talk</bar>
          > > > <bar>leave</bar>
          > > ></foo>
          > > >
          > > >I don't want to just "leave".
          > >
          > > Jake
          > >
          > > This is 'very frequently asked question'. The first thing to do is
          > > a search of the group's archive on Yahoo. There's a thread from
          > > last year which explains this:
          > > http://groups.yahoo.com/group/soaplite/message/549
          > >
          > > Regards,
          > > Duncan Cameron
          > >
          > >
          > >
          > >
          > >
          > >
          > > ------------------------ Yahoo! Groups Sponsor
          > >
          > > To unsubscribe from this group, send an email to:
          > > soaplite-unsubscribe@yahoogroups.com
          > >
          > >
          > >
          > > Your use of Yahoo! Groups is subject to
          > > http://docs.yahoo.com/info/terms/
          > >
          > >
          >
          >
          > __________________________________________________
          > Do You Yahoo!?
          > Try FREE Yahoo! Mail - the world's greatest free email!
          > http://mail.yahoo.com/


          _________________________________________________________
          Do You Yahoo!?
          Get your free @... address at http://mail.yahoo.com
        Your message has been successfully submitted and would be delivered to recipients shortly.