on 05-26-2011 2:00 PM
Hello,
Before opening an OSS message, the rule is first ask the forum...
So I have trouble with NC Log Complete webservice. When trying to invoke it from SOAP UI, I got the following error :
No enum const class com.sap.me.nonconformance.ScrapOption
When looking into the log, I see a nice Java dump, here is an extract...
[EXCEPTION]
javax.ejb.EJBException: (Failed in component: sap.com/meear) Exception raised from invocation of public com.sap.me.frame.Data com.sap.me.xchange.ProductionFacadeSOBean.processNCLogCompleteMessage(com.sap.me.frame.Data,com.sap.me.frame.Data) throws com.sap.me.frame.BasicBOBeanException method on bean instance com.sap.me.xchange.ProductionFacadeSOBean@4e115fd7 for bean sap.com/meearxml|me.integration.xml.ejb-5.2.5.8-Base.jarxml|ProductionFacadeSO in application sap.com/me~ear.; nested exception is: com.sap.me.frame.mapping.data.MappingException: java.lang.reflect.InvocationTargetException
....
Caused by: java.lang.IllegalArgumentException: No enum const class com.sap.me.nonconformance.ScrapOption.
at java.lang.Enum.valueOf(Enum.java:196)
at com.sap.me.nonconformance.ScrapOption.valueOf(ScrapOption.java:33)
at com.sap.me.nonconformance.ScrapOption.fromValue(ScrapOption.java:44)
... 121 more
Anyone has an idea ?
If I submit the request though the production XML jsp page, with same parameter as in my SOAP UI request, it's ok.
We are using ME 5.2.5.8.
Thanks
Hello,
What is the value of the scrap option that you pass in from the webservice and from the production XML?
Thanks,
Mikhail
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mikhail
I don't pass any scrap option, and I don't see any "scrap option" field in the WS definition...
I see a ScrapComponentOption, but which is optional as I can see in the "documentation" (example will be nice anyway in the document)
<me:ScrapComponentOption>
When the disposition function Scrap is selected or a Scrap step is selected, this is the selected scrap option. Required if disposition function or selected step is a scrap step with multiple scrap options and components are assembled onto the current SFC.
It's not clear what should go there and if I need to put something in...
I know the request is quite complex and will not be displayed in a friendly format, but here it is...
<br><br>
<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:NCLogCompleteRequest_sync>
<!Optional:>
<me:MessageHeader></me:MessageHeader>
<me:NCLogCompleteRequest>
<me:SiteRef>
<me:Site>SISL</me:Site>
</me:SiteRef>
<me:NcIncidentDone>
<me:ActivityRef>
<!Optional:>
<me:Activity languageCode="?">GYFFL2_NC</me:Activity>
</me:ActivityRef>
<!Optional:>
<me:DateTime timeZoneCode="?" daylightSavingTimeIndicator="?">2011-03-25T14:51:01.001Z</me:DateTime>
<!Optional:>
<me:ResourceRef>
<!You may enter the following 2 items in any order>
<!Optional:>
<me:SiteRef>
<me:Site>SISL</me:Site>
</me:SiteRef>
<me:Resource schemeID="?" schemeAgencyID="?">C28L</me:Resource>
</me:ResourceRef>
<!Optional:>
<!Optional:>
<me:TotalDefectCount unitCode="?">1</me:TotalDefectCount>
<!Optional:>
<me:ScrapComponentOption languageCode="?"/>
<me:SiteRef>
<me:Site>SISL</me:Site>
</me:SiteRef>
<!Optional:>
<me:NcBeginDateTime timeZoneCode="?" daylightSavingTimeIndicator="?">2011-03-25T14:51:01.001Z</me:NcBeginDateTime>
<!Optional:>
<me:NcCodeRef>
<!You may enter the following 2 items in any order>
<!Optional:>
<me:SiteRef>
<me:Site>SISL</me:Site>
</me:SiteRef>
<me:NcCode languageCode="?">C11701</me:NcCode>
</me:NcCodeRef>
<me:NcContext>
<!Optional:>
<me:SfcRef>
<!You may enter the following 2 items in any order>
<me:Sfc>6940855067</me:Sfc>
<!Optional:>
<me:SiteRef>
<me:Site>SISL</me:Site>
</me:SiteRef>
</me:SfcRef>
</me:NcContext>
<!1 or more repetitions:>
<me:NcData>
<!You may enter the following 4 items in any order>
<me:SfcRef>
<!You may enter the following 2 items in any order>
<me:Sfc>6940855067</me:Sfc>
<!Optional:>
<me:SiteRef>
<me:Site>SISL</me:Site>
</me:SiteRef>
</me:SfcRef>
<me:UserRef>
<!You may enter the following 2 items in any order>
<!Optional:>
<me:SiteRef>
<me:Site>SISL</me:Site>
</me:SiteRef>
<me:UserId>NGIE602</me:UserId>
</me:UserRef>
<me:Sequence unitCode="?"/>
<me:IncidentDateTime timeZoneCode="?" daylightSavingTimeIndicator="?">2011-03-25T14:51:01.001Z</me:IncidentDateTime>
</me:NcData>
<me:NcEndDateTime timeZoneCode="?" daylightSavingTimeIndicator="?">2011-03-25T14:51:01.001Z</me:NcEndDateTime>
<me:NcOwner>
<!Optional:>
<me:ResourceRef>
<!You may enter the following 2 items in any order>
<!Optional:>
<me:SiteRef>
<me:Site>SISL</me:Site>
</me:SiteRef>
<me:Resource schemeID="?" schemeAgencyID="?">C28L</me:Resource>
</me:ResourceRef>
<!Optional:>
<me:UserRef>
<!You may enter the following 2 items in any order>
<!Optional:>
<me:SiteRef>
<me:Site>SISL</me:Site>
</me:SiteRef>
<me:UserId>NGIE602</me:UserId>
</me:UserRef>
</me:NcOwner>
</me:NcIncidentDone>
<me:NcLog>
<!Optional:>
<me:ActivityRef>
<!Optional:>
<me:Activity languageCode="?">GYFFL2_NC</me:Activity>
</me:ActivityRef>
<!Optional:>
<me:Component>
<!You may enter the following 3 items in any order>
<me:Item>SL-CT00035</me:Item>
<!Optional:>
<me:Revision>0010</me:Revision>
<!Optional:>
<me:SiteRef>
<me:Site>SISL</me:Site>
</me:SiteRef>
</me:Component>
<me:ComponentSfc>
<!You may enter the following 2 items in any order>
<me:Sfc>6940855067</me:Sfc>
<!Optional:>
<me:SiteRef>
<me:Site>SISL</me:Site>
</me:SiteRef>
</me:ComponentSfc>
<!Optional:>
<me:DateTime timeZoneCode="?" daylightSavingTimeIndicator="?">2011-03-25T14:51:01.001Z</me:DateTime>
<!Optional:>
<me:DefectCount unitCode="?">1</me:DefectCount>
<!Optional:>
<!Optional:>
<me:FailureId languageCode="?">CURED</me:FailureId>
<!Optional:>
<me:NcCodeRef>
<!You may enter the following 2 items in any order>
<!Optional:>
<me:SiteRef>
<me:Site>SISL</me:Site>
</me:SiteRef>
<me:NcCode languageCode="?">C11701</me:NcCode>
</me:NcCodeRef>
<me:NcContext>
<!Optional:>
<me:SfcRef>
<!You may enter the following 2 items in any order>
<me:Sfc>6940855067</me:Sfc>
<!Optional:>
<me:SiteRef>
<me:Site>SISL</me:Site>
</me:SiteRef>
</me:SfcRef>
</me:NcContext>
<me:NcCustomData>
<me:Attribute languageCode="?">CLASSIFICATION</me:Attribute>
<me:Value languageCode="?">SCRAP</me:Value>
</me:NcCustomData>
<me:NcCustomData>
<me:Attribute languageCode="?">DISPOSITION_GROUP</me:Attribute>
<me:Value languageCode="?">ALL</me:Value>
</me:NcCustomData>
<me:NcCustomData>
<me:Attribute languageCode="?">DISPOSITION_TYPE</me:Attribute>
<me:Value languageCode="?">S</me:Value>
</me:NcCustomData>
<me:NcOwner>
<!Optional:>
<me:ResourceRef>
<!You may enter the following 2 items in any order>
<!Optional:>
<me:SiteRef>
<me:Site>SISL</me:Site>
</me:SiteRef>
<me:Resource schemeID="?" schemeAgencyID="?">C28L</me:Resource>
</me:ResourceRef>
<!Optional:>
<me:UserRef>
<!You may enter the following 2 items in any order>
<!Optional:>
<me:SiteRef>
<me:Site>SISL</me:Site>
</me:SiteRef>
<me:UserId>NGIE602</me:UserId>
</me:UserRef>
</me:NcOwner>
<me:OperationRef>
<!You may enter the following 3 items in any order>
<!Optional:>
<me:SiteRef>
<me:Site>SISL</me:Site>
</me:SiteRef>
<me:Operation>PRS</me:Operation>
<me:Revision>A</me:Revision>
</me:OperationRef>
<!Optional:>
<!Optional:>
<me:Quantity>1</me:Quantity>
<!Optional:>
<me:ResourceRef>
<!You may enter the following 2 items in any order>
<!Optional:>
<me:SiteRef>
<me:Site>SISL</me:Site>
</me:SiteRef>
<me:Resource schemeID="?" schemeAgencyID="?">C28L</me:Resource>
</me:ResourceRef>
<!Optional:>
<me:SiteRef>
<me:Site>SISL</me:Site>
</me:SiteRef>
</me:NcLog>
</me:NCLogCompleteRequest>
</me:NCLogCompleteRequest_sync>
</soapenv:Body>
</soapenv:Envelope>
<br><br>Thanks
User | Count |
---|---|
85 | |
7 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.