Problem creating webservice from existing code in sjse8

I have a java class with three methods in an enterprise app (no ejbs) that I want to expose with webservice. In sudio5 I had no problem with webservice creation but in studio8 when I chose "From scratch, Use existing code", it gives me the opting to go to my class and select those methods. When I click finish, it generates an Implementation class that has declaration for my java class repeated 3 times which is obviously wrong and under it says:
// Enter web service operations here. (Popup menu: Web Service->Add Operation)
The class is empty.
I choose "rpcliteral", "strict", "useonewayoperations" and "donotoverride" under web module property / webservice.
And as you can guess it generates a wsdl file with no webservice methods info.
I have and am checking all forums and searching different sites but haven't fond anything yet.
I appreciate any help resolving this issue.

Seems this feature doesn't work properly in jse and completely removed from latest nb55 enterprise pack (only session enterprise bean case remain)

Similar Messages

  • Problems creating invoice from order (DI API and SBO)

    Hello all!
    I´m getting various tax problems using the following code to automatically create invoices from existing orders.
    For Each currentKey In arrABEntrys
      objInv = objCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInvoices)
      objAB.GetByKey(currentKey)
      objInv.CardCode = objAB.CardCode
      With objInv.Lines
        .BaseType = SAPbobsCOM.BoObjectTypes.oOrders
        .BaseEntry = currentKey
        .BaseLine = 0
        For i = 1 To objAB.Lines.Count - 1
          objInv.Lines.Add()
          BaseType = SAPbobsCOM.BoObjectTypes.oOrders
          .BaseEntry = currentKey
          .BaseLine = i
        Next
      End With
    If objInv.Add() = 0 Then
    Else
    End if
    The result of objInv.add() was first "5002 - 'Tax Definition (1)' (a very informative message to me).
    Then I checked my admin tax settings and put a check on "EU".
    The next time the result was "10 - Customer´s tax ID not defined OINV.LicTradNum"
    Actually, I don´t want to pre-set any fields in the invoice, because the order looks complete to me.
    By the way: The error occurs in SBO, too.
    Thanks for help in advance!
    Best regards
    Marian

    Hi Marian,
    Your Error "10 - Customer´s tax ID not defined OINV.LicTradNum" is not working (through DI and in SBO)
    occurs because your "Federal Tax ID" is not set up against the Business Partner. (This is on the main page of the Business Master Data Screen).
    Set this up and it will work in SBO and the DI API!

  • How to create webservice from function module

    Hello,
    I'm trying to create webservice from function module from. I choose Utilities/More Utilities/Create Webservice/..From function Module. What data should I enter in section "Enter Package/Request" ?
    When I check "Local object" checkbox I get a message "Test objects cannot be created in foreign namespaces"
    Is there any doc about this procedure (web service creation) with description of all sections ?
    thanks for any reply,
    Lukasz Ferenc

    Hi,
    Which SAP product of wich release of which SP are you using ?
    The procedure is documented in help.sap.com and in blogs and SDN forum messages.
    It means that the use of the SEARCH button should give plenty of answers...
    >When I check "Local object" checkbox I get a message "Test objects cannot be created in foreign >namespaces"
    As usual, begin your choosen name with an "Z".
    Regards,
    Olivier

  • Problem calling WebService from Oracle Forms created by JDeveloper

    Hi All,
    I am trying to call a Webservice from Oracle Form using JAVA Class created by Oracle JDeveloper.
    The Java Function (in JDeveloper) is as follows:
    public Vector GetPIValue(String TagName, String ReadingTime) throws Exception
    URL endpointURL = new URL(endpoint);
    Envelope requestEnv = new Envelope();
    Body requestBody = new Body();
    Vector requestBodyEntries = new Vector();
    requestBodyEntries.addElement(TagName);
    requestBodyEntries.addElement(ReadingTime);
    requestBody.setBodyEntries(requestBodyEntries);
    requestEnv.setBody(requestBody);
    Message msg = new Message();
    msg.send(endpointURL, "http://tempuri.org/GetPIValue", requestEnv);
    Envelope responseEnv = msg.receiveEnvelope();
    Body responseBody = responseEnv.getBody();
    return responseBody.getBodyEntries();
    When this Class is Imported into Oracle Forms the Function is converted into the following PL/SQL code:
    FUNCTION GetPIValue(
    obj ORA_JAVA.JOBJECT,
    a0 VARCHAR2,
    a1 VARCHAR2) RETURN ORA_JAVA.JOBJECT IS
    BEGIN
    Message('param passed: '||a0||' - '||a1);
    cls := JNI.GET_CLASS('oracle/forms/demos/webservice/ConnectToPIStub');
    mid := JNI.GET_METHOD(FALSE, cls, 'GetPIValue', '(Ljava/lang/String;Ljava/lang/String;)Ljava/util/Vector;');
    args := JNI.CREATE_ARG_LIST(2);
    JNI.ADD_STRING_ARG(args, a0);
    JNI.ADD_STRING_ARG(args, a1);
    Message('I am Here');
    RETURN JNI.CALL_OBJECT_METHOD(obj, mid, args);
    END;
    When I am calling this Function from Within Forms and Passing into it the Parameters, I am displaying some Debugging Messages. When the Code reaches "JNI.CALL_OBJECT_METHOD" there is NO RESPONSE from the Webservice and nothing is moving forward after this Point...
    A similar Webservice that can be Tested is:
    http://www.webservicex.com/CurrencyConvertor.asmx
    with WSDL file:
    http://www.webservicex.com/CurrencyConvertor.asmx?wsdl
    Kindly note that this Webservice is running properly from the Web Browser but the call from Oracle Forms is not Succeeding!!!! :-((
    Any help is much appreciated.
    Regards,
    Baz

    Hi,
    Yes, you need to compile your source files with JDK 1.3 (since JInit 1.3.x.x uses JDK 1.3).
    Other solution would be to use JRE 1.5 (instead of JInitiator).
    Check out [this thread|http://forums.oracle.com/forums/thread.jspa?threadID=550563] on how to use JRE1.5
    -Arun

  • Problem accessing webservice from abstract portal component

    Hi,
       I have created a webservice from a portal service.  So i have created one more portal application to accessing that web service.  In that, i have done the following:
    -> Portal Service from Wsdl file - Client Side
    -> I have entered the Wsdl file name as, the location of the WebService
    -> I have selected the methods what i want to use in my application
    -> Finally i have given my ServiceName, Alias and Package as well.
    -> I have created one application object (Abstract Portal Component) to access the Web Service.
    -> Inside that AbstractPortalComponent, i have written the coding to access the methods.
    -> I have created one system with System Alias, i used this Alias name in my portalapp.xml
    While running it shows the error as,
                        <b>com.sapportals.portal.prt.service.ServiceException: Service not found: com.sap.portal.prt.soap.Alias</b>
    Help me in this, Thanks in Advance.,
    With Regards,
    Venkatesh.K.

    Hi venkatesh I ahve similar problem please could you share with us how did you sort out this error?
    Sreekanth

  • Problem accessing Webservices from Flex

    Hi All,
    I have created a Webservice in Abap and configured it using
    SOAMANAGER transaction. I am able to succesfully test the Web serivice which I have created in 'Soamanager ' transaction.
    But when I am calling this Webservice from Flex application I am getting an error as " FAULT : faultCode:WSDLError faultString:'Runtime exception Error #1009' faultDetail:'null' "
    We tried calling the Webservice  outside SAP from the FLex application, it is working fine.
    Please let me know how to rectify this error . It's an urgent requirement.
    Thanks and regards,
    Uma.

    hi
      when you create your destinations for your webservices in the SOAMANAGER-> Destination Template
      you would be providing wsdl url and destination , and in the below you can
      find the username and pwd that need to set , you need to select the radio buttons with logon tickets ,
    username , password , there , re-check the username and pwd by selecting the radio button with selecting the
    radio button username password ,  and even check the webservice in the WSNAVIGATOR , whether its working
    fine , and other thing is  there is situation where your webservice may work fine inthe wsnavigator  even then there would
    be some problem inthe webservice , even check this scenario.
    Thanks

  • Having problems creating PDF from website with query-string URLs

    I have a website that I would like to create a PDF from. I am using the Create -> PDF from Web Page..., selecting the site's home page, and capturing 2 levels, with "stay on same path" and "stay on same server" checked in order to limit the scope of the crawl.
    Where the pages are at example.com/foo/ and example.com/foo/bar/, this works fine. However, where the pages are at example.com/foo/ and example.com/foo/?p=1, the page represented by the query string URL is not converted to the PDF.
    This is a problem, given that the site I want to archive as a PDF uses query strings for most of its pages.
    I have been able to individually convert a single query-string-based page into a PDF using this method, but doing this for every page on the site would be almost impossible given the sheer number of pages on the site.
    Is this a known issue? Is there a workaround other than separately capturing each page (which would be prohibitive effort)?
    I have tried this in both Acrobat Pro X and Acrobat Pro 9 for Mac, with the same results.

    Remember, Acrobat is a 32-bit application and as such cannot access all that 'extra' stuff.
    Be well...

  • Unable to create webservice from EJB due to wrong wizard configuration

    Hi All,
           I was trying to create a webservice from a EJB(session bean).I executed following steps :
    1. I created the bean in one EJB project.
    2. Then created another Enterprise Project in whichEJB projects .jar file is included.
    3. Now when i right click "ejb-jar.xml" to create a webservice ,webservice wizard
       appears in which Server and WS runtime configuration are set properly.
       But it displays following error message on the top : "Select a service Project Type".
       If i click on the link on the wizard to select a "service Project type" the drop down for the same comes empty.The value for 'Service Project' is already defaulted
    as "Webservice Project ".If i go to windows->preferrences->Webservcies->ProjectTopology i found two entries in the service project type list :
                         1.Dynamic Web project
                         2.SAP Web Project
         But there is no entry for Webservice Type project.Can any one help me out
    how to solve this issue ?
    Thanks and Regards
    Ashis

    Hi
    <a href="/people/baris.buyuktanir2/blog/2007/02/12/how-to-create-dynamic-configurable-web-services-easily-with-netweaver-development-components-part-i 1</a>
    <a href="/people/baris.buyuktanir2/blog/2007/02/12/how-to-create-dynamic-configurable-web-services-easily-with-netweaver-development-components-part-ii 2</a>
    Regards
    Abhijith Ys

  • How to create BP from existing vendors optionally?

    Hi,
    how can I create RE business partners from existing vendors for some optional vendors only?
    Does the vendor synchronization (Cross-Application Components - Master Data Synchronization - Customer/Vendor Integration) mean that a BP is created for each vendor in the specific account group?
    I've tried to define the configuration settings but haven't found the solution for this yet. Please advise.
    - BP grouping assigned to number range
    - one FI account group is assigned to BP grouping
    - BP role (BP role category, BP view) defined
    - in Vendor role link, is the assignment of Role category "optional"?
    Thanks!

    Hi,
    thanks for your comment.  I need to check this option too. 
    However, in this case this does not seem like the best option regarding the workload of users. If they have already xxx vendors in FICO, it does not seem like a very efficient way to create those first also as BP, and then link these records.
    It would be much easier to only create the BP based on vendor data with FLBPC1, and save the double work.
    Based on SAP documentation, I've understood that FLBPC1 Create BP from vendor is meant for this purpose, so I would like to use this option.
    Please advise. Has anyone used FLBPC1 Create BP from vendor successfully?
    Thanks!

  • Problem Create object from superclass

    Hi,
    I have a problem with classes:
    I have one abstract superclass which has a method to create objecto for its children class.
    CREATE OBJECT R_FLIGHT TYPE (l_class_name)
         EXPORTING
           i_sflight = l_sflight.
    l_class_name: has the name of my children class
    My children class has this properties:
    A dump its triggered when I try to create object from the superclass.
    Best Regards

    Hello,
    I think that you defined the instantiation level of the superclass as PROTECTED & from the screenshot i can see that the instantiation level is protected & the class is marked as "Final".
    Are you having a factory method which returns the instance of the abstract class & you use it to achieve polymorphism?
    May be a little bit insight into your coding can help us
    BR,
    Suhas

  • Problems invoving WebService from dotnet sender

    Hi All,
    Iam trying to implement the below scenario "Looking for replacing SAP.NET connectors with SAP XI?"
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2131 [original link is broken] [original link is broken] [original link is broken]
    I have completed all the steps as mentioned in the blog and when iam trying to test this from the DotNet code i get the below error
    "Object Reference not set to an instance of an object"
    Looks like the request structure is getting populated with the data as well and when it tries to invoke the webservice it fails.
    Did any one of you face this kind of error earlier.
    <u>FYI.: </u>This is successfully tested from SOAP client and Stylus studio which eliminates any PI interface related issues.
    Thanks
    Pradeep

    Hi,
    I have run into another error now.
    Error Details: System.Net.WebException
    This error comes when the DotNet code tries to execute the url from the Reference.vb file.
    Also i tried to execute this webservice from STYLUS STUDIO. It seems to only work Apache.Axis option. When i use Microsoft.Net option it errors out saying "Couldnot establish trust relation ship with remote server"
    Is there anything on XI server i need to active to accept Calls from Dotnet system.
    Thanks
    Pradeep

  • Issue with IDE configuration for creating Webservice from EJB

    Hi All,
           I was trying to create a webservice from a EJB(session bean).I executed following steps :
    1. I created the bean in one EJB project.
    2. Then created another Enterprise Project in whichEJB projects .jar file is included.
    3. Now when i right click "ejb-jar.xml" to create a webservice ,webservice wizard
       appears in which Server and WS runtime configuration are set properly.
       But it displays following error message on the top : "Select a service Project Type".
       If i click on the link on the wizard to select a "service Project type" the drop down for the same comes empty.The value for 'Service Project' is already defaulted
    as "Webservice Project ".If i go to windows->preferrences->Webservcies->ProjectTopology i found two entries in the service project type list :
                         1.Dynamic Web project
                         2.SAP Web Project
         But there is no entry for Webservice Type project.Can any one help me out
    how to solve this issue ?
    Thanks and Regards
    Ashis

    Hi Ashish,
    perhaps you launch the Web service wizard from the wrong location (i.e. not selecting the SEI you want to use). Did you strictly follow the steps described in the <a href="http://help.sap.com/saphelp_nwce10/helpdata/en/44/f36fa8fd1d41aae10000000a114a6b/frameset.htm">documentation</a> for creating the web service?

  • Problem calling WebService from XI scenario

    Hi forum,
    i trued to make a scenario to call a webservice from my XI scenario, i made it using the following blog :
    /people/bhavesh.kantilal/blog/2006/11/20/webservice-calls-from-a-user-defined-function
    I have configured a receiver SOAP channel and has mentioned the Target URL as
    http://www.webservicex.net/CurrencyConvertor.asmx
    now the scenario gives the error in the communication channel monitoring in RWB as
    SOAP: call failed: java.net.UnknownHostException: www.webservicex.net
    but from my local machine i can access this URL, ....can u pls site the defect

    Hi sudeep,
         Specify the proxy address details like address and port. and also check the soap receiver channel properly configured or not.
    Regards,
    Deviprasad Pothireddi.

  • Creating Activity Diagram from existing code in 11g

    Hi,
    How can I create activity diagram for an existing application in 11.1.2.2.0 version?
    -Infy

    Do you mean you select activity diagram in wizard but you see classes (not invocations/partitions etc) on created diagram?
    If so.. it's a design, you just see activity diagram with inappropriate elemnts.
    We support to create any diagram from any elemnts but may be it's better to block diagram creation from not appliable elemnts.

  • Error creating webservice from BRF+ application

    Hi,
    I am creating a webservice for the BRF+ application that I created.
    I entered following parameters,
    Development Package: 
    Local Package:   
    Transport Request: 
    Create Function Group:   
    Function Group: 
    Function Module: 
    Prefix for Generated Object: 
    Webservice Name: 
    Webservice Short Text: 
    Webservice Security Profile: 
    I get the following error message, which I am unable to find the reason for. Please help.
    Save all the objects before generating the webservice
    Alternatively I will appreciate if I can have the code that is generated as part of webservice. I think there is more code than I found below from the blogs.
    TRY.
      hand over some values into the context
        lo_context = lo_function->get_process_context( ).
        lo_context->set_value( iv_name  = 'GROSS_SALARY'   "#EC NOTEXT
                               ia_value = 25000 ).
      process the function
        lo_function->process( EXPORTING io_context = lo_context
                              IMPORTING eo_result  = lo_result ).
      get the result
        lo_result->get_value( IMPORTING ea_value = lv_string ).
        WRITE lv_string .
      CATCH cx_fdt INTO lx_fdt.
      error handling
        LOOP AT lx_fdt->mt_message ASSIGNING <ls_message>.
          WRITE / <ls_message>-text.
        ENDLOOP.
    ENDTRY.
    lo_function->if_fdt_transaction~dequeue( iv_deep = abap_true ).
    My goal is to create a function module that can use the BRF+ application rules to determine result based on input entered.
    Regards,
    Kartik N.

    Hi Kartik,
    You will get the following error message, if you have done some changes and you have not saved before trying to generate the webservice.
    Please save all the changes before trying to generate the webservice.
    Also, if your goal is to just generate the function module, this can also be alternatively done, but not from the UI.
    You can try the same by executing the method GENERATE_RFC of the class CL_FDT_WEB_SERVICE and pass the required inputs. The only differnece between both this method is that in the webservice method you also have to provide the webservice related attributes, whereas in the other method you do not have. This funcitonality has not yet been ex[posed on the UI.
    Thanks and Regards
    Nitesh

Maybe you are looking for

  • Service sapdp80 timed out when starting GUI

    Clients of my company access our SAP server by VPN. One new client met a problem, they can access VPN, however, when they start SAP GUI, there comes an error"connection to host xx.xx.xx.xx, service sapdp80 request timed out", in its detail, "time: Fr

  • HT1657 Watching HD movie on TV from macbook - Can't?

    I recently rented an HD movie from iTunes, downloaded it to my laptop with the hope of hooking it up to my HD TV via a VGA cable. Won't play!? Which means I have to watch it on my laptop or buy additional hardware. Ummm. Is there a solution?

  • Installing correct driver for Canon LPB 5050 on OS X Lion

    Can anyone please assist with the compatible driver for laser printer Canon LPB 5050 for Mountain Lion? I am desperate to get my printer going. Any assistance would be great!! Thank you

  • List of fm used in crm

    hi guru, can any one give me some important fm used in crm.

  • Can you move Midtier onto another machine?

    Hi, I currently have a one box installation of AS/Midtier and metadata repository. Is it possible to install another portal midtier on another machine and associate it with the existing AS and metatdata repository? Thanks Joel.