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

Pass form data through web service to session bean

Hello,

i want to create an insert in a database table using a web dynpros that call my method createEntry i a sessionbean. The sessionbean is ok, it worked with a jsp.

My Problem:

The inputfields of my form are blocked so that i cannot insert the values. This problem only occurs if i bind the inputfields to the attributes of my web service in the view context.

What i already did:

I defined a web service in my EJB Module Project.

I imported this model into my web dynpro.

I bound the elements of the web service into the custom controller.

I bound the elements from the custom controller to my view context.

I did not bind the result of the web service in any way because i do not need it.

Did i miss something i had to do?

Thanks for help or any advices, it is my first time using a web service and i already tried to get along with the CarRental and the Email example.

André

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 12, 2005 at 12:50 PM

    Hi,

    I think you problem is not a Web Service but the fact that Model Context Elements are not created automatically.

    >I bound the elements of the web service into the custom >controller.

    You made a binding but here you should <b>create</b> the elemnts itself wich means:

    1. Create the instance of the element for you cotext node.

    2. Call wdContext.node<You Context Name>.bind(<instance created in previous step>

    This step is the same as for RFC Model so if you fill that my explanation is not clear enought go to Adptive RFC Model tutorial (calling BAPI_FLIGHT_GET_LIST) and see the code in wdDoInit() method.

    Hope it helps.

    Victor

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 14, 2005 at 07:05 AM

    Hi,

    thanks for your help, i did not use the flight light example but the hint on the method was very helpful.

    Regards,

    André

    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.