Jason,
I found a couple of things to take note of:

1)      <WS NAME>-->Take a look at the actual WSDL web page towards the bottom. 
Remedy adds "Service" to the end of the Web Service you created.

So if you named your web service: "JASON_WEBSErvice"

The URI would actually be: JASON_WEBSErviceService



2)      Looks like your passing authentication info:

If you're going to do that you need to pass Authentication information as well:

                my $header = SOAP::Header->name('AuthenticationInfo' =>

                                \SOAP::Header->value(

                                                SOAP::Header->name('userName' 
=> $username)->type(''),

                                                SOAP::Header->name('password' 
=> $password)->type(''),

                                                
SOAP::Header->name('authentication' => $authentication)->type(''),

                                                )

                                );

In order to get around this, we've set the mid-tier to use anonymous 
authentication, and then it doesn't matter what gets passed in that.

Then there was no need to pass the header information.



3)      This is probably where your problem is:

@data = (
          SOAP::Data->name(Qualification)->value("'Modified_Date' 
>=\"09\/24\/2008\"")

This is an array, and should be a string:

$data = SOAP::Data->name(Qualification)->value("'Modified_Date' 
>=\"09\/24\/2008\"")



Also I think you need to pass the Type as well:

$data = SOAP::Data->name('Qualification')->value("'Modified_Date' 
>=\"09\/24\/2008\"")->type('xsd:string');


I think 'Qualification' needs to be an actual field on the form as well.

Take a look at some of those things and see if those help.

HTH
Matt P.

From: Action Request System discussion list(ARSList) 
[mailto:[email protected]] On Behalf Of Jason Alexander
Sent: Wednesday, October 13, 2010 7:27 AM
To: [email protected]
Subject: ARSPERL SOAP webservice consumption error

** Hi List,

ARS 7.1p8
MT 7.1p8

I am trying to consume a webservice via ARS PERL (written in EPIC IDE) using 
Activestate PERL installed on my win xp sp2 laptop. I have installed SOAP::Lite 
package and Crypt::SSLeaY package for SOAP calls over HTTPS.

Here is the code --

===================

use SOAP::Lite;
my $username = 'xxx';
my $password = 'xxx';

my $proxy='https://<MT server>/ars/services/ARService?server=<APP 
SERVER>&webService=<WS NAME>';
my $uri = "<WS NAME>";

my $soap = new SOAP::Lite
        proxy=>$proxy,
        uri=>$uri,
        readable=>'1',
        autotype=>0;

my $header = SOAP::Header->name('AuthenticationInfo' =>
          \SOAP::Header->value(
              SOAP::Header->name('userName' => $username)->type(''),
              SOAP::Header->name('password' => $password)->type(''),
            )
        );

@data = (
          SOAP::Data->name(Qualification)->value("'Modified_Date' 
>=\"09\/24\/2008\"")

$res=$soap->OpGetList($header,@data);

===================
but I am getting the following error when I try running this program:

Fault :java.lang.NullPointerException
SOAP::Data::DESTROY: ()
SOAP::SOM::DESTROY: ()
Faultcode :soapenv:Server.userException

The OpGetList method is configured to accept a query string and return the 
result.
User has the proper privileges to view the form in question & query for records.

Can anybody help?

--
Thanks,
Jason

_attend WWRUG10 www.wwrug.com ARSlist: "Where the Answers Are"_

_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
attend wwrug10 www.wwrug.com ARSlist: "Where the Answers Are"

Reply via email to