473,385 Members | 1,427 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

405 Error when consuming Java web service using Perl Script

Hi,
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
  1. #!/usr/bin/perl 
  2.  
  3. #!/usr/bin/perl -w
  4. #use SOAP::Lite +trace =>'debug';
  5. use SOAP::Lite;
  6. #my $client = SOAP::Lite->service("http://taspmociias304.cernerasp.com:9084/EventPush/EventPushSoapHttpPort");
  7. my $client = SOAP::Lite->proxy("http://taspmociias304.cernerasp.com:9084/EventPush/EventPushSoapHttpPort");
  8.  
  9. $source = SOAP::Data->type( string => '' );
  10. $hostname = SOAP::Data->type( string => 'taspmociias104.cernerasp.com' );
  11. $parameter = SOAP::Data->type( string => '1TEST' );
  12. $par_value = SOAP::Data->type( string => '1TEST' );
  13. $par_instance = SOAP::Data->type( string => 'JDFJassa2' );
  14. $par_status = SOAP::Data->type( string => 'Alarm' );
  15. $last_10 = SOAP::Data->type( string => '' );
  16. $last_10_tp = SOAP::Data->type( string => '');
  17. $os = SOAP::Data->type( string => '');
  18. $thresh_min = SOAP::Data->type( string => '');
  19. $thresh_max = SOAP::Data->type( string => ''); 
  20. $cid1 = SOAP::Data->type( string => 'tasp_mo');  
  21. $cid2 = SOAP::Data->type( string => ''); 
  22. $bmc_event_id = SOAP::Data->type( string => ''); 
  23. $host_ip  = SOAP::Data->type( string => ''); 
  24. $bmc_icon_name = SOAP::Data->type( string => ''); 
  25. $bmc_app_class = SOAP::Data->type( string => ''); 
  26. $bmc_parent_instance = SOAP::Data->type( string => ''); 
  27. $fs_dt_tm = SOAP::Data->type( string => ''); 
  28. $last_10_window = SOAP::Data->type( string => ''); 
  29.  
  30. $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  );
  31.  
  32.  
  33. Soap UI 
  34.  
  35. <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:even="http://com.cerner.cwx.eventpush/EventPush">
  36.    <soapenv:Header/>
  37.    <soapenv:Body>
  38.       <even:pushEventElement>
  39.          <even:source>"""</even:source>
  40.          <even:hostname>taspmociias104'.cernerasp.com</even:hostname>
  41.          <even:parameter>1TES'''T</even:parameter>
  42.          <even:par_value></even:par_value>
  43.          <even:par_instance>JDFJassa1</even:par_instance>
  44.          <even:par_status>OK</even:par_status>
  45.          <even:last_10></even:last_10>
  46.          <even:last_10_tp></even:last_10_tp>
  47.          <even:os></even:os>
  48.          <even:thresh_min></even:thresh_min>
  49.          <even:thresh_max></even:thresh_max>
  50.          <even:CID1>TASP_MO</even:CID1>
  51.          <even:CID2></even:CID2>
  52.          <even:bmc_event_id>?</even:bmc_event_id>
  53.          <even:host_ip></even:host_ip>
  54.          <even:bmc_icon_name></even:bmc_icon_name>
  55.          <even:bmc_app_class></even:bmc_app_class>
  56.          <even:bmc_parent_instance></even:bmc_parent_instance>
  57.          <even:fs_dt_tm></even:fs_dt_tm>
  58.          <even:last_10_window></even:last_10_window>
  59.          <even:annotation></even:annotation>
  60.       </even:pushEventElement>
  61.    </soapenv:Body>
  62. </soapenv:Envelope>
Thank you.
Nov 13 '13 #1
0 999

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Falco98 | last post by:
This is for a class assignment; all we have to do is make a XML-to-SQL converter with a GUI, which can run either on Win2k or Sun 8 systems (interchangably). My partner is writing the GUI in Java...
2
by: raghavendra | last post by:
Hi, How to run automatically windows service by using setup deployment insatllation script using visual studio 2003.? What i did is :-- 1. created a windows service & tested the same. 2....
4
by: kk5151 | last post by:
Hi, Would like to learn and know how to sort the ip address using perl script? For example: 172.27.32.200 172.19.32.100 10.1.1.60 192.20.30.133
6
by: =?Utf-8?B?RGFuaWVs?= | last post by:
Hi, Recently I'm confused by this exception. ----- The message could not be processed. This is most likely because the action 'http://tempuri.org/IBCC2MatrixService/UserMatchingSearch' is...
4
by: jram01 | last post by:
Hi Folks, I am facing problem to to execute .sql command in sql prompt using perl script. I am able to connect sql promt using " my $odbcinput = "odbcinput.txt"; my...
5
by: leierwu | last post by:
1. I have a folder containing several files; 2. Now these files should be added a header with the file name in the first line; How can I complish this using perl script?
3
by: gajendra98 | last post by:
Hi I am working on windows .....IS it possible to block the remote computer python plug-ins using perl script...could some one tell me how to perform these operations.....Thanks
3
by: flow3rgirlz | last post by:
Hi all, I'm really new to Perl. I'm not sure where to post my topic as it between Perl and Visio. Anyway, I want to run a Visio macro automatically using Perl Script. $vis->Run($macro_to_run);...
1
by: sree ram | last post by:
code for getting maximum rows in excel sheet using perl script
5
by: hidayu1986 | last post by:
how to disable textbox when click on radiobutton using VB script on Visual Studio.Net 2005. currently i used this coding but it is not functioning. Private sub...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.