Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Create Java-Mapping..

Hi,

a web service that I created in XI is consumed by a SAP Portal application. Normally other application like XML Spy create a SOAP request like this:

<?xml version="1.0" encoding="UTF-8"?>

<ns0:MT_Service_request xmlns:ns0="http://namespace">

<servicecode>ee</servicecode>

<b><cluster/>

<service/></b>

</ns0:MT_Service_request>

SAP Portal didn't send the empty fields:

<ns0:MT_Service_request xmlns:ns0="http://namespace">

<servicecode>ee</servicecode>

</ns0:MT_Service_request>

My own Java-Mappings couldn't handle this. I tried something like this:

Field -> Exist -> Java Function

Field -> Java Function (same)

The first input should check, if field is delivered by SOAP request: if(a==null)

Second input should check if it is empty: a.equals("")

But it don't seem to work. Can I proof this with a==null?

It seems that the whole mapping failed, if I have a non existing field.

How does the function Exist proof the fields??

Thanks

chris

Message was edited by: Christian Riekenberg

Not what you were looking for? View more on this topic or Ask a question