cancel
Showing results for 
Search instead for 
Did you mean: 

SAPME LogNCIncidentDone Web Service Error

former_member196557
Active Contributor
0 Kudos

ME 6.0.3.3 Counter 10.

When I execute the Web Service request below, the error that is returned is this:

incidentDateTime is missing

I do not think that any of the incidentDateTime values are missing, so why this error?

Thanks in advance, Steve

--------------------------------------------------------------------

<NCIncidentDoneRequest_sync xmlns="http://sap.com/xi/ME">

    <MessageHeader>

        <ID xmlns="http://sap.com/xi/SAPGlobal/GDT" schemeAgencyID="" schemeAgencySchemeAgencyID="" schemeID=""/>

        <UUID xmlns="http://sap.com/xi/SAPGlobal/GDT"/>

        <ReferenceID xmlns="http://sap.com/xi/SAPGlobal/GDT" schemeAgencyID="" schemeAgencySchemeAgencyID="" schemeID=""/>

        <ReferenceUUID xmlns="http://sap.com/xi/SAPGlobal/GDT"/>

    </MessageHeader>

    <NCIncidentDoneRequest>

        <ActivityRef>

            <Activity languageCode=""/>

        </ActivityRef>

        <OperationRef>

            <SiteRef>

                <Site/>

            </SiteRef>

            <Operation>LOAD</Operation>

            <Revision>#</Revision>

        </OperationRef>

        <ResourceRef>

            <SiteRef>

                <Site/>

            </SiteRef>

            <Resource schemeAgencyID="" schemeID="">RT_LOAD</Resource>

        </ResourceRef>

        <TotalDefectCount unitCode="">0.00</TotalDefectCount>

        <SiteRef>

            <Site>TESTSITE</Site>

        </SiteRef>

        <NcCodeRef>

            <SiteRef>

                <Site/>

            </SiteRef>

            <NcCode languageCode="">FAIL</NcCode>

        </NcCodeRef>

        <NcContext>

            <SfcRef>

                <Sfc>FIAB00001</Sfc>

                <SiteRef>

                    <Site/>

                </SiteRef>

            </SfcRef>

        </NcContext>

        <NcEndDateTime daylightSavingTimeIndicator="true" timeZoneCode="">2012-06-11T10:04:00</NcEndDateTime>

        <NcOwner>

            <ResourceRef>

                <SiteRef>

                    <Site/>

                </SiteRef>

                <Resource schemeAgencyID="" schemeID=""/>

            </ResourceRef>

            <UserRef>

                <SiteRef>

                    <Site/>

                </SiteRef>

                <UserId>TESTUSER</UserId>

            </UserRef>

        </NcOwner>

        <NcData>

  <SfcRef>

    <Sfc>FIAB00001</Sfc>

  </SfcRef>

  <UserRef>

    <UserId>TESTUSER</UserId>

  </UserRef>

  <Sequence>133</Sequence>

  <IncidentDatetime daylightSavingTimeIndicator="" timeZoneCode="">2012-06-11T06:02:00.000-04:00</IncidentDatetime>

</NcData>

        <NcData>

  <SfcRef>

    <Sfc>FIAB00001</Sfc>

  </SfcRef>

  <UserRef>

    <UserId>TESTUSER</UserId>

  </UserRef>

  <Sequence>134</Sequence>

  <IncidentDatetime daylightSavingTimeIndicator="" timeZoneCode="">2012-06-11T06:02:00.000-04:00</IncidentDatetime>

</NcData>

        <NcData>

  <SfcRef>

    <Sfc>FIAB00001</Sfc>

  </SfcRef>

  <UserRef>

    <UserId>TESTUSER</UserId>

  </UserRef>

  <Sequence>135</Sequence>

  <IncidentDatetime daylightSavingTimeIndicator="" timeZoneCode="">2012-06-11T06:02:00.000-04:00</IncidentDatetime>

</NcData>

    </NCIncidentDoneRequest>

</NCIncidentDoneRequest_sync>

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

Hi Steve,

I've just tried the following requests and they seem to work:

1) first I created NC record:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:me="http://sap.com/xi/ME" xmlns:gdt="http://sap.com/xi/SAPGlobal/GDT">
   <soapenv:Header/>
   <soapenv:Body>
      <me:NCLogRequest_sync>
         <me:NCLogRequest>
            <me:SiteRef>
               <me:Site>SK</me:Site>
            </me:SiteRef>
            <!--1 or more repetitions:-->
            <me:NcLog>
               <!--Optional:-->
               <me:ActivityRef>
                  <!--Optional:-->
                  <me:Activity languageCode="?">XML</me:Activity>
               </me:ActivityRef>
               <!--Optional:-->
               <me:IncidentNumberRef>
                  <!--Optional:-->
                  <me:SiteRef>
                     <me:Site>SK</me:Site>
                  </me:SiteRef>
                  <me:IncidentNumber>IN001</me:IncidentNumber>
               </me:IncidentNumberRef>
               <!--Optional:-->
               <me:NcCodeRef>
                  <!--Optional:-->
                  <me:SiteRef>
                     <me:Site>SK</me:Site>
                  </me:SiteRef>
                  <me:NcCode>FAIL</me:NcCode>
               </me:NcCodeRef>
               <me:NcContext>
                  <!--Optional:-->
                  <me:SfcRef>
                     <me:Sfc>I0000102877-001</me:Sfc>
                     <!--Optional:-->
                     <me:SiteRef>
                        <me:Site>SK</me:Site>
                     </me:SiteRef>
                  </me:SfcRef>
               </me:NcContext>
               <me:NcOwner>
                  <!--Optional:-->
                  <me:UserRef>
                     <!--Optional:-->
                     <me:SiteRef>
                        <me:Site>SK</me:Site>
                     </me:SiteRef>
                     <me:UserId>SK_ME</me:UserId>
                  </me:UserRef>
               </me:NcOwner>

               <me:ComponentSfc>
                  <me:Sfc>I0000102877-001</me:Sfc>
                  <!--Optional:-->
                  <me:SiteRef>
                     <me:Site>SK</me:Site>
                  </me:SiteRef>
               </me:ComponentSfc>

               <me:OperationRef>
                  <!--Optional:-->
                  <me:SiteRef>
                     <me:Site>SK</me:Site>
                  </me:SiteRef>
                  <me:Operation>OP1</me:Operation>
                  <me:Revision>#</me:Revision>
               </me:OperationRef>
               <!--Optional:-->
               <me:Quantity>1</me:Quantity>
               <!--Optional:-->
               <me:ResourceRef>
                  <!--Optional:-->
                  <me:SiteRef>
                     <me:Site>SK</me:Site>
                  </me:SiteRef>
                  <me:Resource>DEFAULT</me:Resource>
               </me:ResourceRef>
               <!--Optional:-->
               <me:SiteRef>
                  <me:Site>SK</me:Site>
               </me:SiteRef>
            </me:NcLog>
         </me:NCLogRequest>
      </me:NCLogRequest_sync>
   </soapenv:Body>
</soapenv:Envelope>

2) and now I close it:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:me="http://sap.com/xi/ME" xmlns:gdt="http://sap.com/xi/SAPGlobal/GDT">

   <soapenv:Header/>

   <soapenv:Body>

      <me:NCIncidentDoneRequest_sync>

         <me:NCIncidentDoneRequest>

            <me:ActivityRef>

               <!--Optional:-->

               <me:Activity>XML</me:Activity>

            </me:ActivityRef>

            <me:OperationRef>

               <!--Optional:-->

               <me:SiteRef>

                  <me:Site>SK</me:Site>

               </me:SiteRef>

               <me:Operation>OP1</me:Operation>

               <me:Revision>#</me:Revision>

            </me:OperationRef>

            <!--Optional:-->

            <me:ResourceRef>

               <!--Optional:-->

               <me:SiteRef>

                  <me:Site>SK</me:Site>

               </me:SiteRef>

               <me:Resource>DEFAULT</me:Resource>

            </me:ResourceRef>

            <!--Optional:-->

            <me:TotalDefectCount>0</me:TotalDefectCount>

            <me:SiteRef>

               <me:Site>SK</me:Site>

            </me:SiteRef>

            <!--Optional:-->

            <me:NcCodeRef>

               <!--Optional:-->

               <me:SiteRef>

                  <me:Site>SK</me:Site>

               </me:SiteRef>

               <me:NcCode languageCode="">FAIL</me:NcCode>

            </me:NcCodeRef>

            <me:NcContext>

               <!--Optional:-->

               <me:SfcRef>

                  <me:Sfc>I0000102877-001</me:Sfc>

                  <!--Optional:-->

                  <me:SiteRef>

                     <me:Site>SK</me:Site>

                  </me:SiteRef>

               </me:SfcRef>

            </me:NcContext>

            <!--1 or more repetitions:-->

            <me:NcData>

               <me:SfcRef>

                  <me:Sfc>I0000102877-001</me:Sfc>

                  <!--Optional:-->

                  <me:SiteRef>

                     <me:Site>SK</me:Site>

                  </me:SiteRef>

               </me:SfcRef>

               <me:UserRef>

                  <!--Optional:-->

                  <me:SiteRef>

                     <me:Site>SK</me:Site>

                  </me:SiteRef>

                  <me:UserId>SK_ME</me:UserId>

               </me:UserRef>

               <me:Sequence>1</me:Sequence>

               <me:IncidentDateTime>2012-06-22T13:25:49.000+03:00</me:IncidentDateTime>

            </me:NcData>

            <me:NcEndDateTime daylightSavingTimeIndicator="true">2012-06-22T13:25:49.000+03:00</me:NcEndDateTime>

            <me:NcOwner>

               <!--Optional:-->

               <me:UserRef>

                  <!--Optional:-->

                  <me:SiteRef>

                     <me:Site>SK</me:Site>

                  </me:SiteRef>

                  <me:UserId>SK_ME</me:UserId>

               </me:UserRef>

            </me:NcOwner>

         </me:NCIncidentDoneRequest>

      </me:NCIncidentDoneRequest_sync>

   </soapenv:Body>

</soapenv:Envelope>

Regards,

Sergiy

former_member196557
Active Contributor
0 Kudos

Sergiy,

It appears that you are running the WS requests through SoapUI. I can get one to work through SoapUI as well.  This request is being send through MII Webservice Action Block and the xml for the request is what is being sent.  Can you try this for me:

Execute another NCLog on your system

Edit the NCIncidentDone request that I posted to do only one NCData and enter your data and execute it from SoapUI and see what you get.  When I execute that request through SoapUI I get the same error as from the WS Action block request.

Thanks, Steve

0 Kudos

Steve,

I'm able to replicate the error if I use <incidentDateTime> instead of <IncidentDateTime>.

And I had to either define daylightSavingTimeIndicator="true" because it did not accept empty value (""), or remove it at all.

Regards,

Sergiy

former_member196557
Active Contributor
0 Kudos

My webserive request uses IncidentDateTime in the element name, I think the 'incidentDateTime' is just a capitalization error in the response error message.  I see that you are not passing the daylightSavingTimeIndicator in your NCIncidentDone request that works, I will try removing that from my request as well.   I am converting all times to UTC in MII before passing so DaylightSavingsTime is already accounted for in the MII timezoneoffset value.

Steve