473,396 Members | 1,898 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,396 software developers and data experts.

Help with Java web-service via Perl

Hey all,

I recently wrote a few Java web-services. The first requires no parameters
and works fine when I call it with SOAP::Lite.

The second requires two Java String parameters. When I call it I get a
[java.lang.NumberFormatException] error.

Any ideas?

Code follows:

my $soap = SOAP::Lite
-> uri('blah1')
-> proxy('blah2');

$barcode = '008660100207';
$dept = '10';
my $result = $soap->interactiveExample($barcode, $dept);

unless ($result->fault)
{
print $result->result();
} else
{
print "\n\nError\n";
print join ', ',
$result->faultcode,
$result->faultstring,
$result->faultdetail;
}

Jul 19 '05 #1
1 2751
Apparently I needed to do this:

$barcode = SOAP::Data->type( string => '008660100207' );
$dept = SOAP::Data->type( string => '10' );

"scjp" <no****@hotmail.com> wrote in message
news:sX80c.38099$n17.27275@clgrps13...
Hey all,

I recently wrote a few Java web-services. The first requires no parameters and works fine when I call it with SOAP::Lite.

The second requires two Java String parameters. When I call it I get a
[java.lang.NumberFormatException] error.

Any ideas?

Code follows:

my $soap = SOAP::Lite
-> uri('blah1')
-> proxy('blah2');

$barcode = '008660100207';
$dept = '10';
my $result = $soap->interactiveExample($barcode, $dept);

unless ($result->fault)
{
print $result->result();
} else
{
print "\n\nError\n";
print join ', ',
$result->faultcode,
$result->faultstring,
$result->faultdetail;
}

Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Dan | last post by:
Hello, I am trying to read and write to an Excel file via my Java applet. I have done so successfully on several simple Excel files that simply had data cells without many complicated equations...
0
by: Shawn | last post by:
I am getting the following error with a Java Applet being served out by IIS over HTTPS/SSL using a Verisign certificate: java.lang.NoClassDefFoundError: javax/help/HelpSetException at...
1
by: Krusty276 | last post by:
I'm getting this error when trying to compile javadoc in ant from my buildxml: Any ideas? C:\umg\java\web\dbtest\WEB-INF\src\build.xml:64: Javadoc failed: java.io.IOException: CreateProcess:...
73
by: RobertMaas | last post by:
After many years of using LISP, I'm taking a class in Java and finding the two roughly comparable in some ways and very different in other ways. Each has a decent size library of useful utilities...
8
by: tmb | last post by:
1 - Can you build an entire web page or site with Java... sorta like you can with Flash? 2 - Can you do... .. Drag & Drop .. Push Buttons .. Hot Spot .. Hot Object .. Pull Down's (combo...
7
by: Wayne Gibson | last post by:
Hi, I need some advise with a java applet. I am nearing completing of the project and am getting a little concerned how long it is taking for the applet to load. I have developed the java applet...
25
by: virg | last post by:
Hi, i have client-server application which is written in python using XMLRPC protocol. The existing client is a command line. Now client application we are converting it as Web UI using java. I...
4
by: Guern1 | last post by:
Hi Need a bit of help here please to point me in the right direction. I have a java class file here which i wish from a menu item to open a web page which contains a help page. ] } else...
2
by: vijaykumardahiya | last post by:
Hello Sir, I have a simple Issue but It is not resolve by me i.e input parameter are not store in Ms-Access. I store the input parameter through Standard Action <jsp:useBean>. jsp:useBean call a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
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,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.