Skip to Content

B1iF - Replace Scenario Step complex type with a simple type

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Oct 17, 2019 at 09:23 AM

    Hello Francis,

    Could you please provide more details about your problem?

    Screenshots may be better for understanding.

    Thanks

    Huan Yang

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 17, 2019 at 01:16 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.