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

Help with SOAP / XML

Expand Messages
  • rogerbzxcr
    Hi Folks, I am pretty new using soap lite and setting element attribute, I have had some success but have been wrestling with setting / adding addind a
    Message 1 of 1 , Jul 24, 2009
    View Source
    • 0 Attachment
      Hi Folks, I am pretty new using soap lite and setting element attribute, I have had some success but have been wrestling with setting / adding addind 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.


      SOAP::Data->value(SOAP::Data->name('SubParty'=>
      \SOAP::Data->value(
      SOAP::Data->name("DisplayName"=>"afs5000$formatedBASEAID"), SOAP::Data->name("PartyId"=>"978555$formatedBASEAID"),
      SOAP::Data->name("Category"=>"RESIDENTIALSUBSCRIBER_R2"),
      SOAP::Data->name("PrimaryPUID"=>"+1978555$formatedBASEAID"),
      SOAP::Data->name("PrimaryPUIDCPEProfileNumber"=>"22"),
      SOAP::Data->name("PrimaryPUIDFlashable"=>"true"),
      SOAP::Data->name("AssocOtasRealm"=>"stas-stdn.fsimsgroup.test.com"),
      SOAP::Data->name("CallLimit"=>"2"),
      SOAP::Data->name("ServiceSuspension"=>"false"),
      SOAP::Data->name("MaxFwdHops"=>"10"),
      SOAP::Data->name("CsdFlavor"=>"TAS_CSD_NONE"),
      SOAP::Data->name("SipErrorTableId"=>"0"),
      SOAP::Data->name("TreatmentTableId"=>"0"),
      SOAP::Data->name("IsGroupCPE"=>"false"),
      SOAP::Data->name("Receive181Mode"=>"TAS_181_NONE"),
      SOAP::Data->name("CcNdcLength"=>"0"),
      SOAP::Data->name("MaxActiveCalls"=>"0"))
      )
      );

      What happens is I get a responce = The attribute already has an existing parent "DisplayName"

      When I compare the supplied XML with a succesful XML it looks good to me, but the element is rejecting the supplied XML, I can set these attributes manually

      the XML Provided looks as foillows

      <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.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>


      any help would be appreciatied

      Thanx very much -Roger
    Your message has been successfully submitted and would be delivered to recipients shortly.