cancel
Showing results for 
Search instead for 
Did you mean: 

B1iF - Replace Scenario Step complex type with a simple type

francis_harvey
Discoverer
0 Kudos

Hi,

When we create a scenario step in B1if, it creates a wrapper ScenarioStepNameType class as the method parameter.

I have a string parameter that I need to use in the processing atom, but i would like it to be a simple type string parameter of the method instead of having to use the ScenarioStepNameType class.

Do someone know how to do that?

Thanks

Francis Harvey

Accepted Solutions (0)

Answers (2)

Answers (2)

francis_harvey
Discoverer
0 Kudos

Sure,

I will try to explain more, I forgot to say that the scenario package steps are web service call used in a .NET application.

The issue is with the input XSD, which is automatically created from the test message.

The test message for my 'DoSomething' scenario step looks like this:

<DoSomething>

<StringValue>ABC</StringValue>

</DoSomething>

I tried few variants (no StringValue element only value, StringValue attribute on DoSomething element), but did not resolved my issue or produced errors.

So when I generate the XSD schema, it create a xml complex types: 'DoSomethingType' with a property inside called 'StringValue'

Same thing for the output schema, controlled by the last result atom format, not important here.

This result in a method with this definition in the web service:

ipostep_vP0010000103in_WCSX_comsapb1ivplatformruntime_INB_WS_CALL_SYNC_XPT_INB_WS_CALL_SYNC_XPTipo_proc_Service.DevDoSomething(ByVal DoSomething As DoSomethingType) As DoSomethingResponseType

I would like the DevDoSomething method take a string as parameter instead of the complex type generated DoSomethingType.

Something like this:

ipostep_vP0010000103in_WCSX_comsapb1ivplatformruntime_INB_WS_CALL_SYNC_XPT_INB_WS_CALL_SYNC_XPTipo_proc_Service.DevDoSomething(ByVal StringValue As String) As DoSomethingResponseType

How can I modify my test message and step settings to prevent the generation of the complexType 'DoSomethingType' and execute the step.

Because one of my attempt got me a vBIU error about the identification of the ScenarioStep to execute...

Thanks

Francis Harvey

HuanYang
Employee
Employee
0 Kudos

Hello Francis,

Could you please provide more details about your problem?

Screenshots may be better for understanding.

Thanks

Huan Yang