Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
Using PERL and SOAP::Lite to access Maximo Web Service
May 17, 2016
3:05 pm
Avatar
bkeefer
New Member
Members
Forum Posts: 1
Member Since:
May 17, 2016
sp_UserOfflineSmall Offline

I have created an enterprise service-based web service to query asset data in our maximo installation. I am attempting to use PERL to send the SOAP record to the web service, but so far have been unable to get the parameter combination just right so it will work.

I know that the Web Service itself works, as I can submit the SOAP record through the SoapUI tool and get a successful response back.

THe relevant PERL code I’m using to try and invoke the web service looks like this:

my $soap_trans = SOAP::Lite->new( proxy => ‘http://<IP>:9080/meaweb/services/EXTSYS1_QUERYASSET’);

my $soapres = $soap_trans->QueryASSET($query);

Here, the $query variable is pre-set to the correct SOAP structure, looking like this:
“<soapenv:Envelope xmlns:soapenv=\”http://schemas.xmlsoap.org/soap/envelope/\”>
   <soapenv:Body>
      <max:QueryASSET xmlns:max=\”http://www.ibm.com/maximo\”>
          <max:ASSETQuery>
             <max:WHERE>itemnum LIKE ‘%3588%'</max:WHERE>
         </max:ASSETQuery>
     </max:QueryASSET>
   </soapenv:Body>
</soapenv:Envelope>”

 

invoking the web service this way results in the following error message:

The endpoint reference (EPR) for the Operation not found is http:// < IP > :9080/meaweb/services/EXTSYS1_QUERYASSET and the WSA Action = #Query. If this EPR was previously reachable, please contact the server administrator.

 

I know that I must be missing something simple, because while I have some experience using PERL to use HTTP POST interactions with web services, this is my first attmempt at coding a SOAP-based interaction.

My environment consists of perl 5.10, and it is targeting IBM Control Desk 7.5.1.1, both running on RHEL 6.

 

any help you could provide would be greatly appreciated here.

 

Thanks In Advance

Brad

Forum Timezone: America/New_York

Most Users Ever Online: 54

Currently Online:
1 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

sun kim: 60

madd0g17: 59

v.barsamov: 51

cgregory: 45

Maximofresher: 45

matta0990: 33

Member Stats:

Guest Posters: 0

Members: 14366

Moderators: 0

Admins: 4

Forum Stats:

Groups: 1

Forums: 8

Topics: 1580

Posts: 4295

Newest Members:

Megan Morgan, Devendra Verma, stephen stephens, maxexpertise Hilal, Jeroen van Proosdij, Neeraja N

Administrators: Chon: 1118, kristensibilia: 0, Joe Grassia: 0, bpaik: 0