Home » Language IDEs » Java Development Tools (JDT) » Easy SOAP client code in java?
Easy SOAP client code in java? [message #739998] |
Tue, 18 October 2011 03:48 |
Jeremy Gregorio Messages: 2 Registered: October 2011 |
Junior Member |
|
|
Hi all,
I've been pulling my hair out (what little I have) for the last 2 days trying to use Amazon's Web Services from their WSDL. With PHP & nusoap it's really, really easy. Like 16 lines of code:
<?php
include("nusoap.php");
$soapclient = new
soapclient("LINKTOWSDLGOESHERE", true);
$proxy = $soapclient->getProxy();
$params = array(
'browse_node' => 18,
'page' => 1,
'mode' => 'books',
'tag' => 'melonfire-20',
'type' => 'lite',
'devtag' => 'YOUR-TOKEN-HERE'
);
$result = $proxy->BrowseNodeSearchRequest($params);
print_r($result);
?>
Can anyone recommend an eclipse plugin that makes things as easy, or am I just in for a world of hurt trying to consume web services in java ...
Oh, sorry for the bit about "LINKTOWSDLGOESHERE", the forum won't let me post the link because this is my first post, go figure.
[Updated on: Tue, 18 October 2011 03:49] Report message to a moderator
|
|
|
Re: Easy SOAP client code in java? [message #740024 is a reply to message #739998] |
Tue, 18 October 2011 04:37 |
Deepak Azad Messages: 543 Registered: July 2009 |
Senior Member |
|
|
On 10/18/2011 9:18 AM, Jeremy Gregorio wrote:
> Hi all,
> I've been pulling my hair out (what little I have) for the last 2 days
> trying to use Amazon's Web Services from their WSDL. With PHP & nusoap
> it's really, really easy. Like 16 lines of code:
>
> <?php
> include("nusoap.php");
> $soapclient = new
> soapclient("LINKTOWSDLGOESHERE", true);
> $proxy = $soapclient->getProxy();
> $params = array(
> 'browse_node' => 18,
> 'page' => 1,
> 'mode' => 'books',
> 'tag' => 'melonfire-20',
> 'type' => 'lite',
> 'devtag' => 'YOUR-TOKEN-HERE'
> );
> $result = $proxy->BrowseNodeSearchRequest($params);
> print_r($result);
> ?>
> Can anyone recommend an eclipse plugin that makes things as easy, or am
> I just in for a world of hurt trying to consume web services in java :(...
This would be better answered in new comer or webtools forum. Copying to
both places.
|
|
|
Re: Easy SOAP client code in java? [message #740355 is a reply to message #740024] |
Tue, 18 October 2011 12:19 |
|
On 2011.10.17 22:37, Deepak Azad wrote:
> On 10/18/2011 9:18 AM, Jeremy Gregorio wrote:
>> Hi all,
>> I've been pulling my hair out (what little I have) for the last 2 days
>> trying to use Amazon's Web Services from their WSDL. With PHP & nusoap
>> it's really, really easy. Like 16 lines of code:
>>
>> [snip]
As I'm not a PHP guy, I can't advise there, but I have used Amazon S3 in
Java using REST, a more modern and vastly superior approach to web
services than SOAP and WSDLs. I wrote a real product in it, not just
playing around.
In particular, I recommend the open source JetS3 Toolkit. See
http://jets3t.s3.amazonaws.com/toolkit/toolkit.html.
I have used soapUI and it rocks, but hey, it's still SOAP. Nevertheless,
if you end up going the SOAP route and you don't already know how to use
it, I can offer my own soapUI experience at
http://www.javahotchocolate.com/tutorials/soapui.html.
Best of luck to you.
|
|
|
Goto Forum:
Current Time: Thu Apr 25 09:53:11 GMT 2024
Powered by FUDForum. Page generated in 0.02686 seconds
|