I get an undefined sub routine error at the line in bold. But I can consume the same service using SOAP UI
Expand|Select|Wrap|Line Numbers
- #!/usr/bin/perl
- #!/usr/bin/perl -w
- #use SOAP::Lite +trace =>'debug';
- use SOAP::Lite;
- #my $client = SOAP::Lite->service("http://taspmociias304.cernerasp.com:9084/EventPush/EventPushSoapHttpPort");
- my $client = SOAP::Lite->proxy("http://taspmociias304.cernerasp.com:9084/EventPush/EventPushSoapHttpPort");
- $source = SOAP::Data->type( string => '' );
- $hostname = SOAP::Data->type( string => 'taspmociias104.cernerasp.com' );
- $parameter = SOAP::Data->type( string => '1TEST' );
- $par_value = SOAP::Data->type( string => '1TEST' );
- $par_instance = SOAP::Data->type( string => 'JDFJassa2' );
- $par_status = SOAP::Data->type( string => 'Alarm' );
- $last_10 = SOAP::Data->type( string => '' );
- $last_10_tp = SOAP::Data->type( string => '');
- $os = SOAP::Data->type( string => '');
- $thresh_min = SOAP::Data->type( string => '');
- $thresh_max = SOAP::Data->type( string => '');
- $cid1 = SOAP::Data->type( string => 'tasp_mo');
- $cid2 = SOAP::Data->type( string => '');
- $bmc_event_id = SOAP::Data->type( string => '');
- $host_ip = SOAP::Data->type( string => '');
- $bmc_icon_name = SOAP::Data->type( string => '');
- $bmc_app_class = SOAP::Data->type( string => '');
- $bmc_parent_instance = SOAP::Data->type( string => '');
- $fs_dt_tm = SOAP::Data->type( string => '');
- $last_10_window = SOAP::Data->type( string => '');
- $client.pushEvent($source, $hostname, $parameter, $par_value, $par_instance, $par_status, $last_10,$last_10_tp, $os, $thresh_min, $thresh_max, $cid1, $cid2, $bmc_event_id, $host_ip, $bmc_icon_name, $bmc_app_class,$bmc_parent_instance, $fs_dt_tm, $last_10_window );
- Soap UI
- <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:even="http://com.cerner.cwx.eventpush/EventPush">
- <soapenv:Header/>
- <soapenv:Body>
- <even:pushEventElement>
- <even:source>"""</even:source>
- <even:hostname>taspmociias104'.cernerasp.com</even:hostname>
- <even:parameter>1TES'''T</even:parameter>
- <even:par_value></even:par_value>
- <even:par_instance>JDFJassa1</even:par_instance>
- <even:par_status>OK</even:par_status>
- <even:last_10></even:last_10>
- <even:last_10_tp></even:last_10_tp>
- <even:os></even:os>
- <even:thresh_min></even:thresh_min>
- <even:thresh_max></even:thresh_max>
- <even:CID1>TASP_MO</even:CID1>
- <even:CID2></even:CID2>
- <even:bmc_event_id>?</even:bmc_event_id>
- <even:host_ip></even:host_ip>
- <even:bmc_icon_name></even:bmc_icon_name>
- <even:bmc_app_class></even:bmc_app_class>
- <even:bmc_parent_instance></even:bmc_parent_instance>
- <even:fs_dt_tm></even:fs_dt_tm>
- <even:last_10_window></even:last_10_window>
- <even:annotation></even:annotation>
- </even:pushEventElement>
- </soapenv:Body>
- </soapenv:Envelope>