Web services 10.1.2 & 10.1.3 dev preview

Hi,
I'm trying to generate a simple web service using both the 10.1.2 and 10.1.3 versions of JDev.
I create a simple class with one method to add two integers toegther and return the result. Everything generates with no errors reported but when I try to run the test client I get this error:
java.lang.NoClassDefFoundError: Files\jDeveloper\10_1_2\jdev\bin
I get the exact same error for both versions. There doesn't seem to be a huge amount of documentation for eith er version so if I am missing a step in the process it not easy to find what I'm doing wrong.
Any help on this would be greatlt appreciated.
Thanks,
Brad.

Sunil,
I'm refering to JDev adding in another "add" method which wasn't there before.
If I use the following test class:
package brad;
public class Test {
public Test() {
public int add(int a, int b){
return a + b;
public String echo(String msg){
return msg;
after I've generated the web service and the web service stub to test it I get a compile error. This is because the test class then looks like this:
package brad;
*@oracle.ws.WebService name = "TestService", serviceName = "TestService", description = "", targetNamespace = "http://brad/Test.wsdl", schemaTargetNamespace = "http://brad/Test/types", endpointInterface = "brad.MyWebService1SEI"
*@oracle.ws.SOAPBinding style = "DOCUMENT", use = "LITERAL", documentWrapped = "false", bindingName = "MyWebService1SoapHttp", portName = "MyWebService1Port"
public class Test {
public Test() {
*@oracle.ws.ParamPart position = "0", partName = "a", mode = "IN", soapHeader = "false"
*@oracle.ws.ParamPart position = "1", partName = "b", mode = "IN", soapHeader = "true"
public int add(int a, int b){
return a + b;
*@oracle.ws.WebMethod operationName = "echo", description = "", documentWrapped = "false", inputMessage = "MyWebService1SEI_echo", outputMessage = "MyWebService1SEI_echoResponse", responsePart = "result"
*@oracle.ws.ParamPart position = "0", partName = "msg", mode = "IN", soapHeader = "false"
public String echo(String msg){
return msg;
* @oracle.ws.WebMethod
public int add(int parameters) {
As you can see it has added another "add" method which takes a single int parameter and doesn't return anything, so it won't compile. Just removing or giving this new method a return statement doesn't help as the original add(int, int) method is not available in the stub client. There is an add method available, but its the new one JDev has added itself.
Brad.

Similar Messages

  • SWA: Web Services call with attachment using 10.1.3 preview?

    Has anyone managed to figure out how to invoke a web service with an attachment (using SWA, SOAP with Attachments) with the new 10.1.3 preview release?
    Or are there any samples/documents that can point me in the right direction on how to do this?
    Thanks!
    ....Andrzej

    Finally got 10.1.3 installed, and sure enough, there is an example for the use of SWA (SOAP with Attachments), both as client and as server.
    But the notes say it won't run with Oracle Lite DB. Makes me wonder why?
    Kinda sucks, since that is what we're using for our proof of concept. <sigh>

  • How to configure web service destinations in CE 7.1 EhP1 sneak preview?

    Hi all
    I have downloaded CE7.1 EhP1 sneak preview version from SDN.
    I am trying to configure ADS web service destinations on it at the following path:
    Open the NetWeaver Administrator using https://<server>:<port>/nwa, and navigate to Configuration Management > Infrastructure Management > Web Services Configuration.
    I am not able to locate this.
    Could any one please help me with this?
    Regards
    Kapil

    Hi Kapil ,
    Use this , http://help.sap.com/saphelp_nwce10/helpdata/en/index.htm
    but with one minor change . It is in SOA Management -> Technical Configuration -> Destination Template Management.
    Regards
    Bharathwaj

  • Web Services do not work in NSW2004S ABAP Sneak Preview

    Guys,
    I can't connect to the XMLA service (even though it's active in SICF) in a NW2004S ABAP Sneak Preview. Can you confirm that web services are not available in the Preview?. Will they work if i apply a patch the the SNeak Preview?
    Please let me know,
    Thanks,
    Gili

    it will work in 2004s sneak preview.
    there were some problems while creating clients (2004S MiniSAP ABAP: SAPGUI crashes when creating a Web Service)
    whats the exact error you are getting?
    Raja

  • Deploy a J2EE Web Services App in CE 7.1 SP1 SDN Preview

    Hi,
    I am new to SAP CE 7.1 SP1 (SDN Preview). I have a SAP J2EE (web services) application developed for SAP Netweaver 7.0.
    How to deply the application in CE 7.1 SP1.
    thanks in advance,
    Nagarjuna.

    Hi Nagarjuna,
    the easiest way will be to use the Deployment perspective in NWDS. Just choose Window > Open Perspective > Other > Deployment.
    If you have the application packages in a deployable archive (EAR, SCA, SDA, ...) in the file system, right-click External Deployable Archive and select Add. You can also choose archives to be deployed from the workspace.
    If your application cannot be deployed or doesn't run properly, you might have to make some changes to it in order to port it from NW 7.0 to 71.
    Other methods of deployment:
    - There's a program called JSPM which is aimed primarily at non-development, admin users (the guys running the production system).
    - There's a command-line deployment tool - have a look at <Install drive>\usr\sap\CE1\J00\j2ee\deployment\scripts.
    Cheers,
    Thorsten

  • Web Service Support for WebLogic

    Add Support for Web Services to WebLogic using IONA's XMLBus
    For anyone interested in Web services, IONA has just released a free
    technology preview of iPortal XMLBus, with support for BEA WebLogic 6.0
    patch 1. You can download it today from www.xmlbus.com, a Web site entirely
    dedicated to Web services.
    The iPortal XMLBus Technology Preview enables Java Developers to turn
    existing EJBs and Java Applications into Web services. XMLBus is 100% pure
    Java and installs seamlessly on top of the
    WebLogic. It implements the W3C v1.1 draft specifications of SOAP and WSDL.
    SOAP is the communication protocol used by Web services to traverse over
    HTTP, SNMP, and FTP. WSDL has become the standard for describing Web service
    interfaces in XML.
    XMLBus automates the process of turning Java classes into Web services,
    ensuring that Java developers do not need to learn a whole new programming
    language to turn existing applications into Web services.
    Wizards guide the developer through the identification of interfaces and
    methods the developer wants to become a Web service. The wizard deploys a
    SOAP Listener and a WSDL interface for that Java Class, as well as Java
    client proxy applications. The client proxy can easily be incorporated into
    any Java Application to invoke the corresponding methods described in the
    WSDL.
    Download a free copy of the iPortal XMLBus Technology Preview from:
    http://www.xmlbus.com/work/
    Post Questions to the XMLBus Newsgroup:
    news://inews.iona.com/iona.products.xmlbus
    For more information on SOAP or WSDL, reference: http://www.xmlbus.com/learn
    thanks
    becky
    Rebecca Dias
    Technical Product Manager
    IONA Technologies
    http://www.iona.com
    http://www.xmlbus.com
    Mailto:[email protected]

    This is fixed now. Someone had defined a Servlet for the web service in web.xml that was preventing the EJB container to kick in.
    Edited by: user572625 on Aug 25, 2011 11:54 PM

  • OC4J Web Service Demo

    I am in the process of evaluating 9ias' web service support.
    I downloaded 9ias (developer's preview oc4j_extended.zip - 19MB). Installation was smooth and I was able to get it up running.
    However, I couldn't find any web service example from the welcome page (there are only 2 category of test samples: JSP and Servlets). So I looked into the folders and found out the web service demos in $ORA\j2ee\home\demo\web_services\java_services.
    I got an error when deployed the web service archive file by running step 3 in readme.txt -
    Error: javax.naming.NamingException: Lookup error: java.io.EOFException: Disconnected; nested except
    ion is:
    java.io.EOFException: Disconnected
    Please advise.
    Thanks
    Bob Sheng

    Try using rmi default port number:23798
    Ex.: java -jar admin.jar ormi://localhost_09:23791...
    Leonardo Antunes
    Brasil.

  • Web Services from WSDL file

    Hi there. I am new for Java Web Services.
    I'm trying to generate a web service from a .wsdl file. This file includes a references to other .xsd files
    and that's the problem.
    First I've tried with JBuilder 9 but it gave me some problems with some element definitions from xsd file (such as those elements defined as 'choice'): there were generated some classes with repeated elements (such as variables and methods), some classes with strange names (it was added a 'TypeN' label to the name of the class), etc.
    Then I've tried with Sun One Studio 5. It didn't support 'include' tags in the wsdl file.
    Later I've tried with Weblogic Workshop but an error with an internal class of Weblogic was generated.
    Can anyone tell me what editor could I use to generate the Java Web Services?
    Thanks!

    https://jax-rpc.dev.java.net/whitepaper/1.1/index-part2.html explains in detail how to develop, deploy and invoke a web service starting from a WSDL.
    Let me know if you have any specific questions.
    Thanks,
    -Arun

  • Error while invoking a WS-Security secured web service from Oracle BPEL..

    Hi ,
    We are facing some error while invoking a WS-Security secured web service from our BPEL Process on the windows platform(SOA 10.1.3.3.0).
    For the BPEL process we are following the same steps as given in an AMIS blog : - [http://technology.amis.nl/blog/1607/how-to-call-a-ws-security-secured-web-service-from-oracle-bpel]
    but sttill,after deploying it and passing values in it,we are getting the following error on the console :-
    &ldquo;Header [http://schemas.xmlsoap.org/ws/2004/08/addressing:Action] for ultimate recipient is required but not present in the message&rdquo;
    Any pointers in this regard will be highly appreciated.
    Thanks,
    Saurabh

    Hi James,
    Thanks for the quick reply.
    We've tried to call that web service from an HTML designed in Visual Studios with the same username and password and its working fine.
    But on the BPEL console, we are getting the error as mentioned.
    Also if you can tell me how to set the user name and password in the header of the parter link.I could not find how to do it.
    Thanks,
    Saurabh

  • Not Able To View Data in Web Service Model

    Hi ,
       I m trying to view a table using web service model.
       When i write the same code for binding it to context , i m able to view its data.
       But not so while using Web Service Model(not adaptive web service model).
       The code is: 
             Request_ZMANAGE_MAKT_ZMANAGE_ZMAKT object1 =new Request_ZMANAGE_MAKT_ZMANAGE_ZMAKT();
       wdContext.nodeRequest_ZMANAGE_MAKT_ZMANAGE_ZMAKT().bind(object1);
       object1.setResponse(new Response_ZMANAGE_MAKT_ZMANAGE_ZMAKT());
      CAn anybody plz solve my problem.
    Thanks..
    Regards,
    Ankita

    Hi,
    I have no problem with item :P15_EV_LCL this is having a value my probem here is i am using java script to display the value in different color based on the condtion case
    eg:
    select
    case
    TRUNC((
    ( (NVL(Z."AEWP",0) - NVL(Z."BEWP_Final",0) ) / DECODE(Z."BEWP_Final",0,NULL,Z."BEWP_Final") ) * 100
    ),2)
    = :P15_EV_LCL
    then
    span style="background-color:lightgreen"
    || TRUNC((
    ( (NVL(Z."AEWP",0) - NVL(Z."BEWP_Final",0) ) / DECODE(Z."BEWP_Final",0,NULL,Z."BEWP_Final") ) * 100
    ),2) || '%' || /span
    else
    span style="background-color:yellow"
    || TRUNC(
    ( (NVL(Z."AEWP",0) - NVL(Z."BEWP_Final",0) ) / DECODE(Z."BEWP_Final",0,NULL,Z."BEWP_Final") ) * 100
    ),2) || '%' || /span
    end "Effort"
    from actuals Z
    If i dont use this <Span style="Background-color:color"> i am able to generate data in excel sheet if i use this color coding i am not able to get data in spread sheet.
    Please suggest
    Thanks
    Sudhir
    Edited by: Sudhir_N on Mar 23, 2009 10:00 PM

  • Unable to capture return values in web services api

    At the time of login to web services if my server is down ,
    it returns following error :
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
            at java.lang.String.substring(String.java:1438)
            at java.lang.String.substring(String.java:1411)
    I want to capture this error so that i can try another server to login. how do i capture this error
    Another place where i want to capture the return Value is when i look for a report on the server
    rh = boBIPlatform.get("path://InfoObjects/Root Folder/"src_folder"/" + reportName +
                               "@SI_SCHEDULEINFO,SI_PROCESSINFO" ,oGetOptions);
    oInfoObjects = rh.getInfoObjects();
    CrystalReport = (CrystalReport)oInfoObjects.getInfoObject(0);
    Here if the report is not there on the server , it returns a null handler exception.
    but if i try catching it by checking my responsehandler is null  like rh == null  it does not catch it.
    Any help will be appreciated
    thanks
    Rakesh Gupta

    Ted : i have two cases
    1)   server = server_st.nextToken();
        providerURL = "http://"server"/dswsbobje/services";
        sessConnURL = new URL(providerURL + "/session");
       Connection boConnection = new Connection(sessConnURL);
       Session boSession = new Session(boConnection);
      EnterpriseCredential boEnterpriseCredential = new    EnterpriseCredential();
                  boEnterpriseCredential.setLogin(userid);
      boEnterpriseCredential.setPassword(pwd);
      boEnterpriseCredential.setAuthType(auth);
    SessionInfo boSI = boSession.login(boEnterpriseCredential);
    I have got a list of servers running web servcies stored in my tokens. when i pass the first server name say " test:8080" and that server is down , i want to catch somewhere in the code above that it did not get the connection so that i can loop back and try with the second server say test1:8080
    This is for failover purposes.
    at present when i was trying to capture return value of boSI it  breaks giving the error
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    at java.lang.String.substring(String.java:1438)
    at java.lang.String.substring(String.java:1411)
    2nd case :
    I am geeting reports from the server and scheduling them:
    i run the following code which works fine if reports is there
    rh = boBIPlatform.get("path://InfoObjects/Root Folder/"src_folder"/" + reportName +
    "@SI_SCHEDULEINFO,SI_PROCESSINFO" ,oGetOptions);
    oInfoObjects = rh.getInfoObjects();
    CrystalReport = (CrystalReport)oInfoObjects.getInfoObject(0);
    Here if  the  report  is not there on the server  then i should be able to catch from the response handle rh that it has got a null value.
    but rh does not return a null value 
    the code ultimately throws a null handle at the following line
    CrystalReport = (CrystalReport)oInfoObjects.getInfoObject(0);
    i am not able to catch the null value there also.
    hope you got my issue.

  • How to allow access to web service running under ApplicationPoolIdentity

    Hi All,
    I have a WCF web service hosted in IIS 7 (or maybe 7.5, whichever comes with Windows server 2008 R2) using DefaultAppPool running under ApplicationPoolIdentity per Microsoft's recommendation. The web service needs to call a stored procedure to insert data
    to a db. The web server is on a different VM than the database server. The db server is running SQL 2008 R2. Both VMs run Windows server 2008 R2.
    When the web service tries to connect to db, it encounters this exception:
    Exception in InsertToDb()System.Data.SqlClient.SqlException (0x80131904): Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.
       at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
    Here's the connection string in web.config:
    Application Name=somewebservice;Server=somewebserver;Integrated Security=SSPI;Database=somedatabase;Connection Timeout=60"
    How should I configure SQL security to make this work?
    Thanks in advanced.

    Thanks for the link Dan. Maybe I'm the one who cause the confusion :)
    If I understand you(and Erland) correctly, you suggest using a custom, domain account for application pool identity. However, if we do that, our IT will need to maintain those accounts, and they don't  want that. So I'm choosing a built-in account called
    ApplicationPoolIdentity as the application pool identity, but it's not working. Network Service, on the other hand, works, but my boss wants us to follow MS's best practice.
    What's puzzling is that according to this: http://learn.iis.net/page.aspx/624/application-pool-identities/, both Network Service and ApplicationPoolIdentity uses machine account to access network resource (like db in this case), but in my case, Network Service
    works, but not ApplicationPoolIdentity.
    Hallo Stephen,
    with respect - it seems to me that only idiots are working at your IT ;)... It is absolutely useful to work with "service accounts" created within the domain. That's the only way to manage and control accounts!
    If you want to "pass through" the identity of the web user (SSO) you have to check whether the app pool is set to "allow impersonate". As far as I understand the ApplicationPoolIdentity-function the app pool will create a unique user named as the service.
    I assume that will not work with the connection to the sql server because this user is unknown.
    Local Service will not work because it's restriction is located to the local machine.
    Network Service will work because access to network resources will be available.
    So my recommendation is to use a dedicated service account or impersonation:
    http://msdn.microsoft.com/en-us/library/xh507fc5.aspx
    Uwe Ricken
    MCITP Database Administrator 2005
    MCITP Database Administrator 2008
    MCITS Microsoft SQL Server 2008, Database Development
    db Berater GmbH
    http://www-db-berater.de

  • How do I use the Web Services API to query orders?

    The help doc states, "you can retrieve details for purchases including products purchased, payments received, and their status." The only additional info is at the link to eCommerce-Related Web Service, which does not include any information about retrieving "products purchased, payments received, and their status."

    Hey if you read over that again you have two links, the other is this one:
    https://worldsecuresystems.com/catalystwebservice/catalystcrmwebservice.asmx

  • Web Service deployed with admin_client is not working

    Hi,
    I'm usung SOA Suite 10.1.3.1 and Eclipse WTP 3.2.2.
    The thing is that I developed a Web Service with Eclipse using the plugin for generating web services. Then I exported my project to a .war file from eclipse as well.
    For deploy my web service in oc4j, I tried from the oc4j console in Applications --> Deploy and Next-Next wizard and using the .war file generated by Eclipse. I got the application deployed and I can check that the wsdl is working in http://localhost:8888/Hello_Web2/services/Hello?wsdl
    But the main problem is when I try to deploy using the admin_client command tool running the command: java -jar admin_client.jar deployer:oc4j:opmn://localhost/home oc4jadmin welcome1 -deploy -file d:\TEMP\Hello_Web.war -deploymentName Web5 -contextRoot "/". Everything seems right, I can see the application created in the console, but when I try to access to the web service using "http://localhost:8888/Hello_Web2/services/Hello?wsdl" I get and Http 404.
    What is wrong with the command method?
    Many thanks in Advance,
    Alberto

    Hi,
    As the custom web part works well in other browsers, the issue may be related to the IE itself.
    Have you tried the methods below?
    Use compatibility mode to check whether it works.
    Open IE->Tools->Compatibility View Settings
    Add the site into Trusted sites to check whether it works.
    Open the IE->Internet Options->Security->Trusted Sites->add the site into the zone
    What’s more, you can also switch the Document mode to IE 10 or lower to check whether it works.
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • Questions on using a SOAP web service's data in a Crystal Reports report

    I'm attempting to create a report using CR 2008, accessing data from a SOAP web service. I've run into a few problems, and need some advice.
    1) CR doesn't seem to support WSDL files that use relative URI imports (for example, I have a relatively complicated WSDL file that imports other WSDL files and schemas using relative URI locations). To solve this problem, I have downloaded all of the files to my local hard drive, and changed the "location" attributes to point to local files. Is there any other solution to this problem?
    2) CR doesn't seem to support circular references within schema files. To solve this problem, I have removed circular references from my local schema files. Of course, my actual web service will still potentially return data structures with these circular dependencies. Is there any other solution to this problem?
    3) CR doesn't seem to support request documents that allow for arrays of elements. For example, my schema allows the user to specify an array of Instruments that should be returned by the web service. In the meantime, I have changed the schema to only specify single instances of the Instrument element in the request. Is there any other solution to this problem?
    4) CR doesn't seem to support empty values for optional attributes that are specified in the schema. So, when the "Enter Values" parameter form appears, I am required to enter values for these attributes, even though they are listed as optional in the schema. To avoid this problem, I have commented out the optional attribute values in the schema. Is there any other solution to this problem?
    5) When the schema specifies that a value is based on a restricted simple (string) type, the CR parameter form shows a drop list with ellipses (...), but the drop list does not contain the enumerated types specified in my schema. Instead, I must manually enter a value. Do you know of any reason why the drop list is not populated?
    6) The SOAP response document from my web service is relatively complicated. So, in the "Data" page of the Standard Report Creation Wizard, each and every XML element level of the response document listed in the schema is shown as a separate entry. If I choose just the top level element ("fetchInstrumentSetResponse"), then very little data is shown on the next page of the wizard (only the ID attribute). But, if I select each and every element type from the response document, CR prompts me for the request document parameters for each row I have selected (I see the same form 30+ times), even though there really should only be a single SOAP request to the web service to return this response document. It seems to be treating each of these elements as a separate "database table", with a different query string for each. Am I using this feature incorrectly?
    If you can point me to somewhere in the documentation that handles this in more detail, that would be great (all I could find were the step-by-step instructions on how to connect to a web service as a data source).
    Thanks!

    Please re-post if this is still an issue or purchase a case and have a dedicated support engineer work with your directly

Maybe you are looking for

  • Moving toward a click-less OS: a suggestion for improving the Mac interface

    This is a long post, so if you have a short attention span, or are not interested in UI design, have a nice day and move on to the next post! A little history first. Back in the days of OS 7 and earlier, I recall a feature lacking from the OS that wa

  • URL iView in Web Page Composer

    Hi, I have created a URL iView in the PCD and I wanted to embed this iView in the container of the Web Page Composer page. I have created an entry point to the PCD folder that contains the URL iView.  The PCD URL to the iView is http://abc.abc.net:50

  • Nokia 108 - How to disable messages from appearing...

    i have the Nokia 108 and the same happens. text message, sender and the first few words show up on screen even when phone is locked.  'display options-notifications' are turned OFF.  also under each sim, 'display info' is turned off. obviously for se

  • Photoshop CS3 and APSB10-10

    I can't find anything from Adobe stating whether APSB10-10 does effect CS3, only CS4.  Does anyone know if it is an actual vulnerability for CS3?  This has come up on a security scan and several websites say it effects CS3, but Adobe has not stated a

  • Checking what others are upto on my wireless network.

    Hi I have a wireless network set-up, using an airport extreme base station (domed type). How can I check what websites other uses are using? Can I restrict other users time limits or websites? Cheers Phil B