cancel
Showing results for 
Search instead for 
Did you mean: 

EPC Capture SOAP Request error

JuerMueller
Advisor
Advisor
0 Kudos

Hello dear experts,

I'm trying to send a simple SOAP EPC capture request to SAP OER. The request:


<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:pta="http://sap.com/xi/PTA" xmlns:stan="http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader">
   <soapenv:Body>
      <pta:EPCISDocument schemaVersion="1.0" creationDate="2011-04-01T10:02:59+00:00">
         <EPCISBody>
            <EventList>
               <ObjectEvent>
                  <eventTime>2012-12-12T06:36:17Z</eventTime>
                  <eventTimeZoneOffset>+00:00</eventTimeZoneOffset>
                  <epcList>
                     <epc type="sgtin">urn:epc:id:sgtin:0000.0000.11112</epc>
                  </epcList>
                  <action>ADD</action>
               </ObjectEvent>
            </EventList>
         </EPCISBody>
      </pta:EPCISDocument>
   </soapenv:Body>
</soapenv:Envelope>

But than I'm getting an error, that I not understand:


<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
   <SOAP:Body>
      <SOAP:Fault>
         <faultcode>SOAP:Server</faultcode>
         <faultstring>System Error</faultstring>
         <detail>
            <s:SystemError xmlns:s="http://sap.com/xi/WebService/xi2.0">
               <context></context>
               <code>ABAP.PARSE_APPLICATION_DATA</code>
               <text>Error during XML => ABAP conversion: Request Message; CX_ST_DESERIALIZATION_ERROR in /1SAI/SAS261BFEA7FED17BDDAAA1 Line 19 An error occurred when deserializing in the simple transformation program /1SAI/SAS261BFEA7FED17BDDAAA1 (Der Wert '' liegt nicht im Wertebereich des XML-Schema-Typs 'decimal' oder verletzt eine der angegeben Einschränkungen. Kernel ErrorId: ST_VALIDATION_</text>
            </s:SystemError>
         </detail>
      </SOAP:Fault>
   </SOAP:Body>
</SOAP:Envelope>

Can somebody help me please?

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Juergen Mueller

I think on receiver side you have Proxy. so the thing is debug your inbound Proxy and you come to know where it is getting failed. You can do it by following way..

take payload which is there after mapping and test your inbound proxy in debug.

to debug use

go to sproxy.. then select your inbound proxy and click execute(F8) and provide the payload in provided window click on execute and debug the proxy..

problem is somewhere the data type is not matching or length is not matching..

Thanks,

Bhupesh

markangelo_dihiansan
Active Contributor
0 Kudos

Hello,

The error

Der Wert '' liegt nicht im Wertebereich des XML-Schema-Typs 'decimal' oder verletzt eine der angegeben Einschränkungen

Means you are passing '' to a field that expects a decimal value. That is why it cannot be parsed by your ABAP program.

Hope this helps,

Mark

JuerMueller
Advisor
Advisor
0 Kudos

Ok, I have understood that, but how can I see attribute name which value isn't correct? I have no attributes with decimals values in my request.

Juergen

Former Member
0 Kudos

the problem is not in the PI side.. the problem is on proxy side code.. in which you are using some decimal field and while passing data from proxy to that field it is giving dump in ABAP ..

so for that you need to check code on ABAP side..

Thanks,

Bhupesh