Skip to Content
author's profile photo Former Member
Former Member

Setting RFC import structure

Hello Everyone.

What would be the proper way to set an import value for a WSDL RFC call using a model node (not attribute) that has a 0...1 cardinality? I have tried every method to no avail.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 03, 2005 at 04:10 PM

    Hi Trent,

    You can try this.

    Request_<> objRequest = new Request_<>();

    //Bind it here to the context if neeed

    <node class> objNode = new <node class>();

    objNode.set<...>(...);

    objRequest.set<node>(objNode);

    try {

    objReqest.execute();

    } catch (Exception e) ....

    Hope this helps.

    Nirav

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Trent,

      You have created objects for all node and also bound properly. But, i guess you have not initialized vlues for all required input parameters.

      In schema of webservices, these parameteres should be defined as mandatory, so you need to specify some values to all such input parameters.

      you can set values using following code:

      wdcontext.current<node name>element().set<sttribute>(<value>);

      Regards,

      Bhavik

  • author's profile photo Former Member
    Former Member
    Posted on Oct 19, 2005 at 03:35 PM

    Has anyone ever used a web services model to call and RFC that used an 0..1 cardinality import structure as one of the parameters?

    --

    Trent

    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.