in reply to Re^3: Displaying SOAP Request and Response
in thread Displaying SOAP Request and Response

Thank you for the clarification. I corrected my code and the result is more like what I need. The session Id is still missing from my envelope. Apparently it belongs in the header, like so:

<soap:Header> <tns:AstHeader id="id1"> <SessionId xsi:type="xsd:string">SessionId</SessionId> </tns:AstHeader> </soap:Header>

I know that my current code does not specify anything in the header. Doing some research I see that instead of SOAP::Data, I would use SOAP::Header right? BUt how exactly do I do this? Thanks.

Replies are listed 'Best First'.
Re^5: Displaying SOAP Request and Response
by poj (Abbot) on Mar 09, 2017 at 16:56 UTC

    Try

    my $header = SOAP::Header->name("tns:AstHeader" => { SessionId => "SessionID" } ); $header->attr({ id => "id1" } ); my $response = $CUCM->selectCmDevice($header,..);
    poj