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

complex types

Expand Messages
  • adcgjh
    -- This is a small portion of my SOAP::Data construct. SOAP::Data- name(varList = SOAP::Data- name(Variable = SOAP::Data- value(SOAP::Data- name(strVN =
    Message 1 of 4 , Feb 13, 2004
    • 0 Attachment
      -- This is a small portion of my SOAP::Data construct.

      SOAP::Data->name(varList =>
      \SOAP::Data->name(Variable =>
      \SOAP::Data->value(SOAP::Data->name(strVN => 'a1'),
      SOAP::Data->name(objVV =>
      \SOAP::Data->value(SOAP::Data->name(name => 'how'))))),

      \SOAP::Data->name(Variable =>
      \SOAP::Data->value(SOAP::Data->name(strVN => 'a2'),
      SOAP::Data->name(objVV =>
      \SOAP::Data->value(SOAP::Data->name(name => 'how')))))
      )

      -- I am trying to do the following:

      <varList>
      <Variable><strVN>a1</strVN><objVV><name>how</name></objVV></Variable>
      <Variable><strVN>ap2</strVN><objVV><name>how<name></objVV></Variable>
      </varList>

      -- But I am getting this:

      <varList>
      <Variable><strVN>a1</strVN><objVV><name>how</name></objVV></Variable>
      </varList>
      <varList>
      <Variable><strVN>a2</strVN><objVV><name>how<name></objVV></Variable>
      </varList>

      -- Any ideas on what I am doing wrong? Thank You
    • Byrne Reese
      I think you want to do this: SOAP::Data- name(varList = SOAP::Data- value( SOAP::Data- name(Variable = SOAP::Data- value( SOAP::Data- name(strVN = a1 ),
      Message 2 of 4 , Feb 13, 2004
      • 0 Attachment
        I think you want to do this:

        SOAP::Data->name(varList => \SOAP::Data->value(
        SOAP::Data->name(Variable => \SOAP::Data->value(
        SOAP::Data->name(strVN => 'a1'),
        SOAP::Data->name(objVV => \SOAP::Data->value(
        SOAP::Data->name(name => 'how')
        ))
        )),
        SOAP::Data->name(Variable => \SOAP::Data->value(
        SOAP::Data->name(strVN => 'a2'),
        SOAP::Data->name(objVV => \SOAP::Data->value(
        SOAP::Data->name(name => 'how')
        ))
        )),
        ))

        >
        >
        >
        >
        > -- This is a small portion of my SOAP::Data construct.
        >
        > SOAP::Data-
        >
        >
        >
        >
        >


        ^byrne :/
      • maheshgadwal
        Hi, I think given below code will help you. I had tested this. Only one thing i assumed that varList is the Name of method which you want to sent this request.
        Message 3 of 4 , Feb 13, 2004
        • 0 Attachment
          Hi,

          I think given below code will help you. I had tested this. Only one
          thing i assumed that varList is the Name of method which you want to
          sent this request.

          Sample Code:
          $method = SOAP::Data->name('varList')->attr({xmlns => ''});
          @params = ( SOAP::Data->name("Variable"=>
          \SOAP::Data->value(SOAP::Data->name
          ("strVN"=>"a1"),
          SOAP::Data->name("objVV"=>
          \SOAP::Data->value(SOAP::Data-
          >name("name" => "how")))),


          \SOAP::Data->value(SOAP::Data->name
          ("strVN"=>"ap2"),
          SOAP::Data->name("objVV"=>
          \SOAP::Data->value(SOAP::Data-
          >name("name" => "how"))))
          )
          );



          This is the Output of the Above Code.
          <varList xmlns="">
          <Variable>
          <strVN xsi:type="xsd:string">a1</strVN>
          <objVV>
          <name xsi:type="xsd:string">how</name>
          </objVV>
          </Variable>
          <Variable>
          <strVN xsi:type="xsd:string">ap2</strVN>
          <objVV>
          <name xsi:type="xsd:string">how</name>
          </objVV>
          </Variable>
          </varList>



          Regards,
          Mahesh Gadwal


          --- In soaplite@yahoogroups.com, "adcgjh" <adcgjh@y...> wrote:
          > -- This is a small portion of my SOAP::Data construct.
          >
          > SOAP::Data->name(varList =>
          > \SOAP::Data->name(Variable =>
          > \SOAP::Data->value(SOAP::Data->name(strVN => 'a1'),
          > SOAP::Data->name(objVV =>
          > \SOAP::Data->value(SOAP::Data->name(name => 'how'))))),
          >
          > \SOAP::Data->name(Variable =>
          > \SOAP::Data->value(SOAP::Data->name(strVN => 'a2'),
          > SOAP::Data->name(objVV =>
          > \SOAP::Data->value(SOAP::Data->name(name => 'how')))))
          > )
          >
          > -- I am trying to do the following:
          >
          > <varList>
          >
          <Variable><strVN>a1</strVN><objVV><name>how</name></objVV></Variable>
          >
          <Variable><strVN>ap2</strVN><objVV><name>how<name></objVV></Variable>
          > </varList>
          >
          > -- But I am getting this:
          >
          > <varList>
          >
          <Variable><strVN>a1</strVN><objVV><name>how</name></objVV></Variable>
          > </varList>
          > <varList>
          > <Variable><strVN>a2</strVN><objVV><name>how<name></objVV></Variable>
          > </varList>
          >
          > -- Any ideas on what I am doing wrong? Thank You
        • maheshgadwal
          Hi, I had already written a piece of code for constructing these kinds of complex request. you can see the message HOW TO - Access Nested SOAP Body Element
          Message 4 of 4 , Feb 13, 2004
          • 0 Attachment
            Hi,

            I had already written a piece of code for constructing these kinds of
            complex request. you can see the message "HOW TO - Access Nested SOAP
            Body Element"
            URL : http://groups.yahoo.com/group/soaplite/message/3350

            I hope that will also give you some idea.

            Regards,
            Mahesh Gadwal

            --- In soaplite@yahoogroups.com, "adcgjh" <adcgjh@y...> wrote:
            > -- This is a small portion of my SOAP::Data construct.
            >
            > SOAP::Data->name(varList =>
            > \SOAP::Data->name(Variable =>
            > \SOAP::Data->value(SOAP::Data->name(strVN => 'a1'),
            > SOAP::Data->name(objVV =>
            > \SOAP::Data->value(SOAP::Data->name(name => 'how'))))),
            >
            > \SOAP::Data->name(Variable =>
            > \SOAP::Data->value(SOAP::Data->name(strVN => 'a2'),
            > SOAP::Data->name(objVV =>
            > \SOAP::Data->value(SOAP::Data->name(name => 'how')))))
            > )
            >
            > -- I am trying to do the following:
            >
            > <varList>
            >
            <Variable><strVN>a1</strVN><objVV><name>how</name></objVV></Variable>
            >
            <Variable><strVN>ap2</strVN><objVV><name>how<name></objVV></Variable>
            > </varList>
            >
            > -- But I am getting this:
            >
            > <varList>
            >
            <Variable><strVN>a1</strVN><objVV><name>how</name></objVV></Variable>
            > </varList>
            > <varList>
            > <Variable><strVN>a2</strVN><objVV><name>how<name></objVV></Variable>
            > </varList>
            >
            > -- Any ideas on what I am doing wrong? Thank You
          Your message has been successfully submitted and would be delivered to recipients shortly.