Maximo Integration with .Net

Hi,

We want to synchronize a MAXIMO Service Request status to the corresponding Service Request an external system in .NET. This will be done by invoking a web service in the .NET application

We have set up Object Structures, Publish Channels, End Points and External System in MAXIMO. The Publish Channel has been enabled to listen for events. When we change the SR status in MAXIMO, the web service is invoked, but we are getting the following error while trying to invoke the web service:

"Object reference not set to an instance of an object."

 any help is appreciated
LVL 16
Kamal KhaleefaInformation Security SpecialistAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Bob LearnedCommented:
I have no experience with Maximo, but I do have a fair amount of experience with web services.  I don't believe that there is enough information here to determine the cause for the exception.  Do you have a full stack trace for this exception?
0
Kamal KhaleefaInformation Security SpecialistAuthor Commented:
Request of the webservice:

POST /AhmadiServiceWS/AsWebService.asmx HTTP/1.1
Host: mvcsdnettest
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://tempuri.org/mUpdateSRStatus"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <mUpdateSRStatus xmlns="http://tempuri.org/">
      <mSRStatus changed="boolean" />
      <mSRTicketID changed="boolean" />
    </mUpdateSRStatus>
  </soap:Body>
</soap:Envelope>

Response of Web Service:

HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <mUpdateSRStatusResponse xmlns="http://tempuri.org/">
      <mUpdateSRStatusResult changed="boolean" />
      <mSRTicketID changed="boolean" />
    </mUpdateSRStatusResponse>
  </soap:Body>
</soap:Envelope>


XML Generated by MAXIMO:

<?xml version="1.0" encoding="UTF-8"?>
<PublishKOCOUTMXSR creationDateTime="2013-09-22T09:32:19+03:00" transLanguage="EN" baseLanguage="EN" messageID="1379831653423914507" maximoVersion="7 1 20091208-1415 V7116-173" event="1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.ibm.com/maximo">
<KOCOUTMXSRSet>
<SR action="Replace">
<CLASS>SR</CLASS>
<STATUS changed="1">ENDORSED</STATUS>
<TICKETID>853822</TICKETID>
</SR>
</KOCOUTMXSRSet>
</PublishKOCOUTMXSR>

Payload generated from the above XML:

<PublishKOCOUTMXSR creationDateTime="2013-09-22T09:32:19+03:00" transLanguage="EN" baseLanguage="EN" messageID="1379831653423914507" maximoVersion="7 1 20091208-1415 V7116-173" event="1" xmlns="http://www.ibm.com/maximo" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<KOCOUTMXSRSet>
<SR action="Replace">
<CLASS>SR</CLASS>
<STATUS changed="1">ENDORSED</STATUS>
<TICKETID>853822</TICKETID>
</SR></KOCOUTMXSRSet>
</PublishKOCOUTMXSR>
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Bob LearnedCommented:
Where do you get the "Object reference not set to an instance of an object." exception?
0
Kamal KhaleefaInformation Security SpecialistAuthor Commented:
we found the error
it was mismatching object type being passed
thanks all
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.