473,390 Members | 936 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,390 software developers and data experts.

How to pass array argument using perl SOAP::lite client to java webservice?

Hi All,

I want to pass an array argument to the java webservice from perl client using SOAP::LITE package. Please let me know if anyone knows about this.

The web method declaration in java is like this
publishSimpleMetric(Arraylist<String> appinfo,Arraylist<String> metricinfo,String seperator);

Now i tried to call the web service from perl client as follows
Expand|Select|Wrap|Line Numbers
  1. @appinfo=("F76B9A80-72E0-11DC-8817-001320CAE428","12512D6A-72E6-11DC-A17E-001320CAE428","12776304-72E6-11DC-A17E-001320CAE428");
  2. @metricinfo=("response_time|0","servcer_count|1000");
  3. $seperator="|";
  5. my $result =  SOAP::Lite
  6.     -> uri('http://www.soaplite.com/Demo')
  7.     -> proxy('')
  8.     -> publishSimpleMetric(@appinfo,@metricinfo,$seperator);
  10. unless ($result->fault) {
  11.         print "RESULT: ".$result->result();
  12.   } else {
  13.     print "ERROR:";
  14.     print $result->faultcode();
  15.     print $result->faultdetail();
  16.     print "\n";
  17.   }
but following error occured
Expand|Select|Wrap|Line Numbers
  1. SOAP::Transport::HTTP::Client::send_receive: POST
  2. Accept: text/xml
  3. Accept: multipart/*
  4. Content-Length: 908
  5. Content-Type: text/xml; charset=utf-8
  6. SOAPAction: "http://www.soaplite.com/Demo#testPublishMetric"
  8. <?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/1999/XMLSchema" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><namesp1:testPublishMetric xmlns:namesp1="http://www.soaplite.com/Demo"><c-gensym3 xsi:type="xsd:string">F76B9A80-72E0-11DC-8817-001320CAE428</c-gensym3><c-gensym5 xsi:type="xsd:string">12512D6A-72E6-11DC-A17E-001320CAE428</c-gensym5><c-gensym7 xsi:type="xsd:string">12776304-72E6-11DC-A17E-001320CAE428</c-gensym7><c-gensym9 xsi:type="xsd:string">response_time|0</c-gensym9><c-gensym11 xsi:type="xsd:string">servcer_count|1000</c-gensym11><c-gensym13 xsi:type="xsd:string">|</c-gensym13></namesp1:testPublishMetric></SOAP-ENV:Body></SOAP-ENV:Envelope>
  9. SOAP::Transport::HTTP::Client::send_receive: HTTP/1.1 500 Internal Server Error
  10. Connection: close
  11. Date: Wed, 07 Nov 2007 09:06:09 GMT
  12. Server: Apache-Coyote/1.1
  13. Content-Type: text/xml;charset=UTF-8
  14. Client-Date: Sat, 10 Nov 2007 20:48:45 GMT
  15. Client-Response-Num: 1
  17. <?xml version='1.0' encoding='UTF-8'?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><faultstring>Index: 3, Size: 3</faultstring></soap:Fault></soap:Body></soap:Envelope>
  18. ERROR:soap:Server
Thanks in advance

- Parimal
Nov 7 '07 #1
1 8259
971 Expert 512MB
I do not have any experience when it comes to SOAP. If someone else here is not able to help you, then I would suggest that post a question on SOAP::Lite for Perl mailing list.

Nov 8 '07 #2

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

Similar topics

by: Lamar | last post by:
I have been told that we cannot have both the SOAP::Lite and the DBI modules available on our IRIX box due to some conflict. Has anyone else encountered this problem and/or discovered a work...
by: Lucvdv | last post by:
I have a SOAP client, built upon proxy code generated by wsdl.exe from a wsdl file that was provided by the creator of a webservice. Now I want to log the raw XML that is being sent and received,...
by: Julio Delgado | last post by:
Hi, I am new to web services but I need to creating a VB.NET Client from a SOAP::LITE server the only information that I have is the http://servername/namespace and port number. How can I add a...
by: Vinit | last post by:
Hi I am passing an arraylist to a c#/.net webmethod from a perl client using soap:lite. The trace shows the elements in the xml request. The arraylist input in the webmethod however does not...
by: gezerpunta | last post by:
Hi I have to find a soap client to be able to connet to java apache soap server.And I must send a file and envelope xml.I found nusoap but I can t achieve to communicate it. Does anybody knows...
by: goyalak | last post by:
Hi All, I am new to PHP and am facing some problems. I am trying to access the http://ops.espacenet.com/. Its a SOAP based service. I am trying to access it via PHP (PEAR) from Apache web...
by: padmanabhps | last post by:
I am looking for deploying a perl client for a java web service. Any inputs will be appreciated. Thanks
by: cbeels | last post by:
The client code is #install SOAP-Lite and MIME-tools packages use SOAP::Lite 'trace', 'debug'; #override version SOAP::Lite->soapversion('1.2'); #override credentials sub...
by: vigneshrao | last post by:
Hi, I have been working on a script that loops through multiple records and sends data (one record per call) to a WS. I am supposed to make a new call for each record before sending the data....
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
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...
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
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.