Really impossible to create a web service for JBoss using eclipse's WTP?

I'm starting to get nuts!!!
I'm an experienced J2SE and J2ME Java developer... but I have huge problems creating a web service using eclipse WTP!
The tutorials I found are for tomcat... But I want to code for JBoss and not for tomcat...!!!
There must be somebody out there with the same issues...
This tutorial works fine for Tomcat...
http://www.eclipse.org/webtools/community/tutorials/BottomUpWebService/BottomUpWebService.html
But if I do the same with JBoss... it's not possible to incoke my web service method... ok, I thought... just need to check google... BUT I didn't find any solution in the whole WWW. Found a lot of questions of people with the same problems... but no solution! :(
Still getting that:
ERROR [EngineConfigurationFactoryServlet] Unable to find config file. Creating new servlet engine config file: /WEB-INF/server-config.wsdd
I know a little bit what a wsdd does... but isn't it the job of the WTP to create that file???
I really hope you have some places for me to start, 'cause I don't know anymore places to ask for...
Maybe this is a JBoss issue... I don't know...
Or is there a tutorial on how to create a web Service using JBoss IDE?
Sascha

Hi Massimo,
Quiet a few points here.
1. Oracle Type objects do not map to XML Complex type
2. Oracle Type objects do not map to Apex Page Item Types
3. Apex Page Item types are substituted into the WS Request XML by a process which is part of the Web Service Reference creation through the Wizard in Apex.
>
After created the web service (without any errors), I click on test.
- I can select the Operation --> CREATE_LINGUA
- I can input data for Basic Authentication
- I can't view Input Parameters --> Report returned no rows.
I've tried with normal type like Varchar2 and all was ok.
Is possible in Apex to use web services based on complex type, tipically an Array?
>
As you have guessed the Wizard driven Web Service Reference definition process cannot handle complex types of input parameters required by a Request. By definition the number of complex types possible are infinite, so they are not likely to come built in.
Passing an array is no solution because finally the values passed have to be plugged into the right SimpleTypes inside a ComplexType in the Request.
Based on your WSDL your Request will be
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:cre="http://xmlns.oracle.com/orawsv/GRIMALDI/PKG_WEBSERVICES/CREATE_LINGUA">
   <soapenv:Header/>
   <soapenv:Body>
      <cre:SNUMBER-CREATE_LINGUAInput>
         <cre:PLINGUA-LINGUAT-CIN>
            <cre:LINGUAT>
               <cre:CODICE>?</cre:CODICE>
               <cre:DESCRIZIONE>?</cre:DESCRIZIONE>
            </cre:LINGUAT>
         </cre:PLINGUA-LINGUAT-CIN>
      </cre:SNUMBER-CREATE_LINGUAInput>
   </soapenv:Body>
</soapenv:Envelope>However, all is not lost. You can always use the UTL_HTTP package API to construct your Request.
Regards,

Similar Messages

  • How to develop web services in OSB using Eclipse OEPE

    Hello,
    We have some live web services developed in SOA ESB using JDeveloper.
    We are now forced to migrate to OSB because of the reason that sometime next year ESB will be de-supported by Oracle.
    I am looking for some good documentation which explains how to create web services in OSB using Eclipse. Please help.
    I am installed Web logic + OEPE + OSB in my local machine already. All I need is to know how to start development.
    Thanks,

    Hi,
    You can start with this:
    http://docs.oracle.com/cd/E17904_01/doc.1111/e15866/tasks.htm
    Cheers,
    Vlad

  • Creating a web service for F4 help

    Hi All,
    I want to create a web service that I can consume using JavaScript and thus can integrate with normal HTML web site. I want to achieve this by two ways
    Pass table name and field name to the service and it will return the default search help
    In some cases search helps are collective search helps and they have search criteria to filter data
    How can I tackle with the 2nd point. First one looks straight. Pass table-field and the system will pick default DDIC search help and return values in table. However in case of collective help, I need to cater for the search parameters and I am not aware of any FM that will allow me to do  it.
    Any help appreciated .
    Regards
    Abhi

    Hi Marcin and everyone,
    Thanks for the precious explanations.
    I created a client and I have an exception.
    1) I made a portal service from wsdl - client side.
    2) I created a DynPage.
    3) Here is the code :
    IMyBAPI4Service client = (IMyBAPI4Service) PortalRuntime.getRuntimeResources().getService(
    IMyBAPI4Service.KEY);
    IMyBAPI4Service securedClient = (IMyBAPI4Service) client.getSecurisedServiceConnection(                 request.getUser());
    //this is null.
    if (securedClient.getURLEndPoint().getURL() == null) {      
    securedClient.setURLEndPoint(new URLEndpoint("http://<server>:<port>/irj/servlet/prt/soap/com.sap.portal.prt.soap.MyBAPI4Service?style=doc_lit"));
    Bapi_Companycode_Getdetail_Input importParams =     new Bapi_Companycode_Getdetail_Input();
    importParams.setCompanycodeid("0500");
    Bapi_Companycode_Getdetail_Output exportParams = null;
    securedClient.execute_BAPI_COMPANYCODE_GETDETAIL(importParams);                         
    Do I have to use a secured client ? What is it ?
    The exception is :
    Problem at execution: SOAP Fault Error (java.lang.NoClassDefFoundError) : java.lang.NoClassDefFoundError
    Thanks Marcin....
    Message was edited by: David Fryda

  • Create a Web Service for Exchange with form based authentication ?

    I want to create a Web Service in Apex that can create appointments in my exchange calendar. Exchange is offering web services for that.
    When i try to create the web service reference in Apex i provide the URL and my Exchange login, but it is failing.
    The exchange guys told me, that there is a ISA Server running where i need to authenticate through a form.
    Does anyone know, how i can implement a webservice in Apex, when the access to the wsdl url needs login through a form ?
    Or : what other types of authentication does Apex know ? What possibilities do i have ?
    Thanks for answers.
    Bernd

    Hi
    Presume you've already found this information, but in case not ....
    Exchange 2007 provides out of the box web services, see
    http://msdn.microsoft.com/en-us/library/bb408417.aspx
    As a disclaimer - neither myself of the team I work with have tried to use these web services within APEX.
    Regards
    Chris

  • Creating RESTful Web Service for BLOB retrieval

    Hi,
    Just got RESTful web services working in Apex 4.2.1 with new Listener 2.1.
    I have now been asked to create a RESTful web service by which photos in BLOB column can be retrieved upon providing the ID for that photo. Can this be done using the Creating RESTful Service Module of Apex 4.2.1? Looking at the Apex 4.2 documentation, I would assume this can be done, but has anyone used this with BLOB data?
    Thanks,
    Pat

    Hi Pat,
    Yes this can be done using RESTful Services - you just need to ensure the query used is in the required format. To obtain a BLOB for a given ID, you would need create a Resource template and handler with the following settings:
    Resource Template Settings:
    URI template: emppic/{id}
    Resource Handler Settings:
    Source query: select mimetype, product_image from demo_product_info where product_id = :id..where the format of the SQL query is SELECT 'content_type', blob_column FROM . . ., as mentioned in Rick Greenwald's Cloud White paper "RESTful Web Services for the Oracle Database Cloud", under the "SQL Source Type" section (see www.oracle.com/technetwork/database/database-cloud/public/restful-wp-1844130.pdf ):
    where 'content_type' is a string passed to the browser to be used to identify the incoming data, and the column to identify the source of the data being sent back. This data is sent back untouched by the Oracle Database Cloud Service. The Media Resource Source Type is typically used for media objects, such as images, where the data will be directly handled by the recipient making the call.The MIMETYPE column in the sample query above holds the necessary setting for the 'content_type' i.e. 'image/jpeg'. The value of ID is then passed in as a parameter when calling the service e.g. emppic/1234. The item level help text would be more helpful if it included additional information, and this is something we intend on addressing in a future release.
    I hope this example helps.
    Regards,
    Hilary

  • Creating a WEB Service for SAP enterprise connector

    Hi,
    I am using the SAP enterprise connector plugin for Netweaver 04.
    It generated me all the classes that I need for the BAPI.
    It also generated me a Proxy class.
    I want to create a service.
    This is what I've done :
    1) create a portal service.
    2) create a methode in the service :
    public Bapi_Companycode_Getdetail_Output execute_BAPI_COMPANYCODE_GETDETAIL(
    Bapi_Companycode_Getdetail_Input arg1)
    try {
    return new MyProxy_PortType().bapi_Companycode_Getdetail (arg1);
    } catch (Exception e) {
    return null;
    3) after I created a web service from the portal service.
    Is it the right way ?
    Thanks a lot.

    Hi Marcin and everyone,
    Thanks for the precious explanations.
    I created a client and I have an exception.
    1) I made a portal service from wsdl - client side.
    2) I created a DynPage.
    3) Here is the code :
    IMyBAPI4Service client = (IMyBAPI4Service) PortalRuntime.getRuntimeResources().getService(
    IMyBAPI4Service.KEY);
    IMyBAPI4Service securedClient = (IMyBAPI4Service) client.getSecurisedServiceConnection(                 request.getUser());
    //this is null.
    if (securedClient.getURLEndPoint().getURL() == null) {      
    securedClient.setURLEndPoint(new URLEndpoint("http://<server>:<port>/irj/servlet/prt/soap/com.sap.portal.prt.soap.MyBAPI4Service?style=doc_lit"));
    Bapi_Companycode_Getdetail_Input importParams =     new Bapi_Companycode_Getdetail_Input();
    importParams.setCompanycodeid("0500");
    Bapi_Companycode_Getdetail_Output exportParams = null;
    securedClient.execute_BAPI_COMPANYCODE_GETDETAIL(importParams);                         
    Do I have to use a secured client ? What is it ?
    The exception is :
    Problem at execution: SOAP Fault Error (java.lang.NoClassDefFoundError) : java.lang.NoClassDefFoundError
    Thanks Marcin....
    Message was edited by: David Fryda

  • To create a Web Service for EJB

    Hello,
    I created one WS for my EJB which has one method it returns array type of java bean. The bean has 8 properties, but the WS has been showing only one property when i test the WS.
    But it is displaying all properties when i use servlet.
    I would appreciate ur suggestion.
    Regards,
    Krishna.

    Hi,
    Check out whether u have followed all this steps:
    1)Create an Ejb module project and then inside this project include a Enterprise bean project.
    2) Create a getter and setter methods in the bean.java and call those methods in the local.java and the main java file.
    3) Then rebuild the application create an archive for it.open a new ear project in the j2ee pers.
    4) Next step is to create a virtual interface and a webservice in ejbjar.xml.After completing all rebuild and deploy the newly created EAR file.Now this webservice will be added to the server.
    5) GO to the WD appln, in the model create a model and then give the necessary proxy settings.If the file is in the local server then no need for giving UDDi or URL u can directly take it from the server or url itself.
    6) After giving the connections open the data modeller to map all the model nodes from the new model that we created latest.Then in the implementation u can direcly call the webservice request that u want.This req instance should be created in the comp ctller and then binded to the node.
    Hope it helps,
    Regards,
    Nagarajan.

  • Can't create web service for other servers

    I am trying to create EJB web service for JBoss 4.0 but getting error in "build-impl.xml " file on the following line
    "<taskdef name="wscompile" classname="com.sun.xml.rpc.tools.ant.Wscompile">"
    Is there any way to create an web service for another servers.
    OR
    Is there any way to configure "wscompile" tool to generate the web service for other servers
    It would be of greate help if any-body responds
    thanks in advance
    parag

    Hi,
    The following article
    http://developers.sun.com/prodtech/javatools/jsenterprise/reference/docs/jse7/jse7_jboss_plugin.html
    describes how to configure the JSE IDE to develop and deploy a J2EE application on a JBoss Application Server by using the JBoss plug-in.
    Hope this helps.
    Radhika

  • How to create web service for a Java class in SAP NetWeaver Studio

    hi all,
    i am using SAP Netweaver Developer Studio.have created a normal java project and i want to create web service for one of the classes in this project. i used the  Web Service Creation Wizard to create a web service for this class. but it says there's no methods available for VI. all my methods in this class are public, what should i do?

    Hi,
    I guess there are other ways. But this is an easy way, if you find the right wizards.
    Besides this it is good practise to define interface methods so that session bean implement these interface methods, and thus seperate the interface from the implementation.
    In this approach you will need 3 projects:
    An enterprise application project (will contain EJB Module)
    An EJB Module project (will contain session bean)
    A Java project (contains code that implements the session bean methods)
    In my previous post I suggested to use a J2EE web mudule project. This was a mistake, it should be EJB module.
    But it should be possible to do it in another way. It is up to you.
    Good luck, Roelof

  • How to create web service for database application

    Hi everyone
    Is it possible to create a web service for an apex database application page which has reports and radio fields and dialog boxes and validations in it. IF it is possible to create, pls help me with example or step by step procedure. I have seen all oracle docs of implementation of Web services in apex but unable to figure out how to get that link of wsdl for an application.
    Thanks in advance.
    Regards
    Sandeep Artham

    Hi,
    I guess there are other ways. But this is an easy way, if you find the right wizards.
    Besides this it is good practise to define interface methods so that session bean implement these interface methods, and thus seperate the interface from the implementation.
    In this approach you will need 3 projects:
    An enterprise application project (will contain EJB Module)
    An EJB Module project (will contain session bean)
    A Java project (contains code that implements the session bean methods)
    In my previous post I suggested to use a J2EE web mudule project. This was a mistake, it should be EJB module.
    But it should be possible to do it in another way. It is up to you.
    Good luck, Roelof

  • In order to create a web service on SAP R/3 what are the prerequisites.

    Hi All
    I want to create a web service(for a bapi) on SAP R/3  which will be used by a third party application. I dont know anything about creating a web service. My question is <b>in order to create a web service do we need to run Sap R/3 on netweaver ?</b>. I cannot see create web service on my BAPI screen.
    Thanks

    Hi Dohr
    We are running 4.7 on WAS 6.20 .I heard ,if we have to activate webservices on WAS 6.20  it will expose all the RFCs and BAPIs as web services. Could you explain me what is the main difference between WAS6.20 and WAS6.40 in terms of creating web services and how do i activate web services.
    Thank you very much

  • Customizing Web Service for VC 7.10

    Hi guys!
    I need a big help for the topic "web services and VC".
    I read the Scott's blog (The specified item was not found.) and it's great, web services working fine!
    But if I would create custom web service (for example to insert google maps on vc model) what can I do?
    I know, it's hard to explane all the web services technology and implementation (Java, C#, XML etc.) but if someone know some tutorial or web guides..
    Thanks a lot guys!
    Edited by: Andrea Davoli on Oct 21, 2008 3:39 PM

    Hi Andrea,
    I assume that you refer to VC 7.0... otherwise the question should be moved to the VC 7.1 forum...
    The following blog contain also a video that show you the process in detail:
    How to consume Web Services with Visual Composer 7.0
    Also important SAP Notes regarding limitations, structure and pre-requisites are mentioned there.
    In the SAP Help Portal you can find information about Web Services created within NetWeaver:
    http://help.sap.com/saphelp_erp2005/helpdata/en/db/99c04ba22fe64f96a8651df68eab92/content.htm
    Hope this helps,
    Best Regards,
    Luis

  • Custom Web Service For BAPI_INQUIRY_CREATEFROMDATA2

    Hello all,
                I want to create a web service for the bapi manually (without using wizard)
    Can anyone of you please mention me the required steps in good amount of details?

    hi
    please go through the link
    http://www.erpgenie.com/sap/abap/bapi/example.htm
    hope this will help u
    regards
    Prashant

  • RFC works but web service for that RFC does not work..weird??

    hi all,
    I created an RFC enabled function module to create a Sales Order in SAP CRM for both for Varinat Configurable and Normal Materials.
    The RFC Works well...if i test it..it creates an order and if i go and check the sales order in CRM GUI. i find that sales order is perfect with the configuration data for the configurable items..
    Now i created a Web service for this RFC by calling the Web service creation wizard.
    Now i am testing the Web service in SOAMANGER T-code and the sales order is created and weird thing the configuration data is missing for Varinat configurable item..
    But i dont encounter this problem if i am testing the RFC directly
    What could be wrong...why is my web service behaving weird?
    I am dying to find this out..did any body enocunter this situation befor ..please help

    Sure Oliver..
    I put a break point using external debugger and when i was testing the Web service in SOAMANAGER..
    i could then land into ABAP debugger.
    There in my RFC i put a logic such that i diffenetiate between VC and Non-VC items and fill the Charateristic Values only if it is aVC item.
    I saw that the IF condition was not executing as they suddenly changed the material structure in ECC and it reflected in CRM.
    SO i am inputting 18 digits of material no like '000000000000000001' for '1'...but the if condition was checking against 1 =1 so that loop never executed and chara values are not getting filled.
    But if i test RFC in se37 ..it works as i am inputting 1...
    Since Web service works with XML (WSDL) need to be very careful with the format in which data is inputted and the format in which the logic we wrote in RFC works.
    Once again ..thanks to all people who helped me with the answers...
    Regards,
    Jessica Sam

  • Web Services for a State Machine Based VI

    Hello,
    I am new to the Web Services approach but so far I have managed to build a simple VI which is used with Web Services to display a Graph and make some simple calculations.
    However, I have a more complex application which uses a State Machine architecture to command some circuitry using the NI USB 6211 device. This program includes different states and all the action takes place inside a while loop. This loop uses shift registers to pass the states arround (the JKI State Machine).
    My question is: Could such a program be used with the Web Services without modifying this structure?
    In the programs that I have tried, if I place the execution inside a While structure then I get no result with the Web Services. 
    An example of a simple program which includes a while loop and the Web Services approach would be helpful, if possible.
    Thank you in advance.

    Hello again,
    I was trying to do what Nathand indicated.
    1. "Put a functional global in it that stores whatever value you want to be queried over the web,"
    So I opened a new Project and added the Index.vi just to generate the numbers continuously. This VI writes to a global variable entitled "GlobalOutput.vi".
    This works as I have attached the jpg image.
    2. "and make that VI accessible through VI server."
    This I am not so sure I did correctly. I opened the Tools->Options->VI Server, and here at the section Exported VIs, I added the GlobalOutput.vi. I have attached the image.
    3. "Then, in your web services VI, open a VI server connection to that functional global and run it, by reference, to obtain the value stored there."
    Now I have created another VI, called ServerConnection.vi which runs the GlobalOutput.vi. I have attached the image with the error I get. Something is wrong in what I am doing. In the end I thought that I would create a Web Service for this last vi and basically be able to read the global variable.
    As I understand it, you have a VI which runs locally, in a while loop and updates some global variables. Then another vi reads the values of those global variables.
    It is this last vi that you should create a web service and interogate to find out the values of those variables. What am I missing?
    Thank you in advance.
    Attachments:
    GlobalVariable.JPG ‏21 KB
    ViServer.JPG ‏36 KB
    error message.JPG ‏38 KB

Maybe you are looking for