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

6346Help with Soap / XML

Expand Messages
  • Roger Beauregard
    Jul 24 1:10 PM
    • 0 Attachment

      Hello Folks,

       

      I am new to the user group and very new using soap lite I am trying to set element attributes,

      and a sub-set of attributes to an element.

       

      I have had some success but have been wrestling with setting an attribute called

      a SubParty and the sub-set of attributes" below is the part of the script \

      that is being set via perl to call soap and XML attributes.

       

      I am currently performing the following

        

       SOAP::Data->value(SOAP::Data->name('SubParty'=>
       \SOAP::Data->value(
        SOAP::Data->name("DisplayName"=>"afs5000$formatedBASEAID"),      

        SOAP::D= Data->name("PartyId"=3D>"978555$formatedBASEAID"),
        SOAP::Data->name("Category"=3D>"RESIDENTIALSUBSCRIBER_R2"),
        SOAP::Data->name("PrimaryPUID"=3D>"+1978555$formatedBASEAID"),
        SOAP::Data->name("PrimaryPUIDCPEProfileNumber"=3D>"22"),
        SOAP::Data->name("PrimaryPUIDFlashable"=3D>"true"),
        SOAP::Data->name("AssocOtasRealm"=3D>"stas-stdn.fsimsgroup.test.com"),
        SOAP::Data->name("CallLimit"=3D>"2"),
        SOAP::Data->name("ServiceSuspension"=3D>"false"),
        SOAP::Data->name("MaxFwdHops"=3D>"10"),
        SOAP::Data->name("CsdFlavor"=3D>"TAS_CSD_NONE"),
         SOAP::Data->name("SipErrorTableId"=3D>"0"),

         )

         );

       

      once the element recieves the request I see the following exception

       

       "The Attribute already has an existing parent" $quot;DisplayName"

       

      I have been thru a large amount of script changes to try and change the outcome

      with no luck :-(

       

      I watch the xml that is provided to the elenemt, it looks ok,

      but I must have something incorrect in my scripting.

       

      Here is the element provided XML

       

      <Request Command="ent-ngfs-subscriber-v2" SessionId="admin_rtb2:146911856" SwitchName="afs5000">

         <SubParty>

          <DisplayName xsi:type="xsd:string">afs50001101</DisplayName>

          <PartyId xsi:type="xsd:long">9785551101</PartyId>

          <Category xsi:type="xsd:string">RESIDENTIALSUBSCRIBER_R2</Category>

          <PrimaryPUID xsi:type="xsd:long">+19785551101</PrimaryPUID>

          <PrimaryPUIDCPEProfileNumber xsi:type="xsd:int">22</PrimaryPUIDCPEProfileNumber>

          <PrimaryPUIDFlashable xsi:type="xsd:boolean">true</PrimaryPUIDFlashable>

          <AssocOtasRealm xsi:type="xsd:string">stas-stdn.fsimsgroup0-000.afs50.tssims1.slrnet.test.com</AssocOtasRealm>

          <CallLimit xsi:type="xsd:int">2</CallLimit>

          <ServiceSuspension xsi:type="xsd:boolean">false</ServiceSuspension>

          <MaxFwdHops xsi:type="xsd:int">10</MaxFwdHops>

          <CsdFlavor xsi:type="xsd:string">TAS_CSD_NONE</CsdFlavor>

          <SipErrorTableId xsi:type="xsd:int">0</SipErrorTableId>

          <TreatmentTableId xsi:type="xsd:int">0</TreatmentTableId>

          <IsGroupCPE xsi:type="xsd:boolean">false</IsGroupCPE>

          <Receive181Mode xsi:type="xsd:string">TAS_181_NONE</Receive181Mode>

          <CcNdcLength xsi:type="xsd:int">0</CcNdcLength>

          <MaxActiveCalls xsi:type="xsd:int">0</MaxActiveCalls>

         </SubParty>

        </PlexViewRequest>

       </soap:Body>

      </soap:Envelope>

       
       
      In addition this element has additional attributes to be set and those attributes
      have a sub-set of attributes
       
       SOAP::Data->name(AnonymousCallRej=>
                   \SOAP::Data->value(
                     SOAP::Data->name("Activated"=>"true"),
                     SOAP::Data->name("PublicUID"=>"+1978555$formatedBASEAID"),
                     SOAP::Data->name("Assigned"=>"true"),
                     SOAP::Data->name("PerPuid"=>"false")
                    );
       
      What I need to to do is transition from SubParty to the other Attribute AnonymousCallRej
       
      Once the setting of the SubParty is worked out and the Transition is Worked out I 
      have 15 additional Attributes to Set with there sub-set of attributes
       
      Please Help!!!

      Roger Beauregard
      Tewksbury Ma

    • Show all 2 messages in this topic