on 03-29-2016 11:50 PM
Hello All:
Doing a very simple project services integration.
services setup parameter as below
Inbound payload for the services as:
<place_here_your_B1_Service_Schema xmlns="">
<Project>
<Code>PRJ01</Code>
<Name>TEST PROJ</Name>
</Project>
</place_here_your_B1_Service_Schema>
I am getting this error message
com.sap.b1i.xcellerator.XcelleratorException: XCE001 Nested exception:com.sap.b1i.xcellerator.XcelleratorException: XCE001 Nested exception:java.lang.RuntimeException: com.sap.smb.sbo.wrapper.com.ComFailException: Invoke of: GetDataInterfaceFromXMLStringSource: SapBobsCom.ProjectsService.90.0Description: Invalid data entity
Any help is much appreciated. Thank you!
Hi Bo,
The ProjectsService has two Request Keys (Code,Name), please check the following screenshot of my B1 Service atom:
and the payload of atom2:
<Payload Role="X" id="atom2" projectkeys="test 2016,Test 2016">
<Project xmlns="">
<Code>test 2016</Code>
<Name>Test 2016</Name>
<ValidFrom>2016-01-01</ValidFrom>
<ValidTo>2016-12-31</ValidTo>
<Active>tYES</Active>
</Project>
</Payload>
brings following result:
<Payload Role="C" id="atom1" system="0010000101" systype="B1.9.0" b1login="Technical User" status="success" serviceid="ProjectsService" type="Add method" method="addProject" requeststr="ProjectParams" requestkeys="Code,Name" requestmethod="getProject" keyvalues="test 2016,Test 2016" ptype="synchronous" payload="atom2" DIresult="success" DImsg="ProjectsService.addProject(...) has been invoked.">
<GetOrDelete xmlns="">
<ProjectParams>
<Code>test 2016</Code>
<Name>Test 2016</Name>
</ProjectParams>
</GetOrDelete>
</Payload>
Best regards
Bastian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you Sabastian:
really appreicate the full detailed description. but can you show me how you incorporate the two value in the key value tag?
when I do something like
/vpf:Msg/vpf:Body/vpf:Payload[./@id='atom9']/Project/Code, /vpf:Msg/vpf:Body/vpf:Payload[./@id='atom9']/Project/Name
it doesn't like it.
Hi,
in my example, i read it from an attribute projectkeys, which I filled with following values "test 2016,Test 2016" in my referenced atom2 using xslt statement "concat()".
The path to my attribute is maintained in parameter "Key Values" of the B1 service call atom: /vpf:Msg/vpf:Body/vpf:Payload[./@id='atom2']/@projectkeys
Best regards
Bastian
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.