Webservices newbie

Hi,
I am completely new to webservices world. Actually I am looking forward that based on my requirement, if someone can direct me to some good websites.
My requirement is, I have to create a Java web services, that can be invoked as a url from a webapplication.
This webapplication will pass certain arguments as getparameters to URL. Now my webservice will consume these parameters, will execute a database procedure and return a JSON output to the calling application.
I am just starting on webservices, please guide me on where I can find the documents/sites relevant to my requirements.
Thanks in advance!!

Hi tiza,
You can refer following URLs to get basic idea about Web services.
http://java.sun.com/developer/technicalArticles/J2EE/j2ee_ws/
http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JAXRPC3.html#wp124102
Thanks....

Similar Messages

  • Newbie - How do I create a custom webservice Resource Adapter

    Hi -
    I am trying to create a Resource Adapter in SUN IDM 7.1 for a resource that I can access only using webservice calls. Can anybody suggest a sample template or provide suggestions?
    Thanks.

    Did it on one of our project :
    You should first implement a web service client with your favorite java web service library (Axis, Xfire, ...) without
    any IDM api. This client will have the basic methods :
    - create user
    - update user
    - delete user
    - get user
    - list all user ids
    Once you have this you can create your IDM adapter class following the templates in REF,
    e.g. ExampleTableResourceAdapter.
    I would also suggest creating an IDM Junit test class to debug your adapter outside the app server.

  • Newbie question webservice libs

    Hi,
    I am just starting with weblogic and trying to understand the webservice policy of bea. As I know jax-ws is the up to date implementation lib for webservices and now I see that bea is favouring jax-rpc as the most supported lib.
    Can anyone explain, why they do not support jax-ws as much (security,..)
    thx in advance
    Roman

    The reason is simple, JAX-RPC has been around longer and JAX-WS is newer. More JAX-WS support is coming out with each release. WLS 10.0 first introduced JAX-WS support for basic web services. That support will be enhanced with 10.3 such as support for WS-Security. 10.3 should be released shortly.
    WLS 10.0 Web Services docs:
    http://edocs.bea.com/wls/docs100/webserv/overview.html#wp211885
    WLS 10.3 Tech Preview Docs:
    http://e-docs.bea.com/wls/essex/TechPreview/pdf/jax_ws.pdf

  • Handling WebService with more than one operation

    Hi Everybody,
    I have a hassle!
    First of All, I'm Newbie, using Oracle Service Bus
    I have to Implement a WS with aproximately 6 operations, in Service Bus.
    I create my WSD and my XSD Artifacts, with no problem, the issue comes when I try to create My Proxy Service in OSB
    Step 1 .- Create Proxy Service
    Step 2 .- I make a Link from my Proxy Service to my Business Service wich contains the WSDL with the 6 operations
    Step 3 .- I clic on edit the message flow in the actions panel to add route
    Step 4 .- I edit the route looking for a Webservice and selecting the method (In this Case I select one method, because I don't know how to route many operations in one Proxy Service)
    When I did that, my WS in OSB wasn't able to invoke one method. I got a timeout .. I don't know, if maybe I'm doing something wrong!!.
    What I want is a way to route many methods in a same Web Service
    I've done operational bifurcation in the Web Proxy.. With that component, I can choose methods like conditionals, and I can add a route destination for each method.. when I test it .. My OSB WS never reply me an asnwer, I got Timeout. Takes a lot of time
    I also tried to do it with IF ELSE conditionals trying to know the name of the method from the WLS Headers and routing them to a specific webservice method. But I couldn't do it!
    I check the WS out by itself and works in 2 seconds, so it's Working!
    Any clues?, Well I hope you can help me!!
    Thanks in Advance!
    Edited by: user11334562 on 05-ago-2011 17:38

    Pierluigi,
    Thanks for your answer,
    I had to rebuild my OSB project, and refact all my OSB artifacts,
    My Proxy Service, I was trying to do it with my WSDL again, when I already had done in a Business Service,
    So in my proxy I chose the BS instead WSDL and all Works Perfectly using SOAP Content.
    Pretty Thanks!!
    ABC

  • Calling java web service from another webservice app

    Hi,
    I am newbie to writing java webservices and also new to weblogic workshop environment. Our company already has an web-service application (not written by me) that basically receives soap messages M1(e.g. with fields A,B and C) and does a function. The format of the message is defined in .xsd file and the application also has .wsdl and .jws file.
    The modification now required is that this existing application will keep listening in port p1, but another copy of the same application will run in port p2. So i have to write a webservice code in weblogic workshop that basically recives message M1 and forward the message to port p1 or p2 depending upon field A=0 or 1.
    Message M1 ---->New Application
    |->forward to application running on port p1 if field A=0 in message M1
    OR
    Message M1 ---->New Application
    |->forward to application running on port p2 if field A=1 in message M1
    Please give me some example code/suggestions that i can start with. i am already starting to get a bit worried because i have to finish it in next 3 days and i don't have much experience with it.

    Hi Gianluca,
    here there is a little sample to implement a web service Proxy class that invokes a service from a Descriptor file.
    http://help.sap.com/saphelp_nw04/helpdata/en/6c/8aac34d2d6e64dbcfc3ffb10bb3e9e/frameset.htm
    Take care with SAP WebAS (Soap Runtime) and Apache Web Server. If the web Service is published on AXIS 1.0, SAP Soap ABAP runtime and AXIS 1.0 Soap Runtime aren't compliant.
    You could migrate the Java application from AXIS 1.0 to AXIS 2.0.
    If you need, don't hesitate to contact me!
    Cheers,
    Antonello

  • Call Weblogic WebService in Delphi

    Hi, I'm a newbie in WebService. I use Weblogic servicegen ant task wrap a stateless
    EJB to webservice. The bean has a method with a string input parameter as follow:
    String Test(String inputParam);
    The WSDL generated by Weblogic WebService is like follow:
    - <message name="Test">
    <part name="string" xmlns:partns="http://www.w3.org/2001/XMLSchema" type="partns:string"
    />
    I use Delphi as Webservice client. When I use Delphi's WSDL Import Wizard, it
    renamed parameter "string" to "string_" because of "string" is a reserved word
    in Delphi. So when I invoked the Webservice, an exception was thrown:
    Found SOAPElement [<string_ xsi:type="xsd:string>test</string_>]. But was not
    able to find Part that is registered with this Message which corresponds to this
    SOAPElement
    How can I solve this problem? On the another word, Can I control the parmater
    name generate by Weblogic Webservice ant task?
    thanks very much!

    Please post web services issues in the webservices newsgroup.
    Vimala wrote:
    You can define the parameter name to the method and return parameter name with
    a web-services.xml.
    The link below should give a good start:
    http://e-docs.bea.com/wls/docs70/webserv/dd.html#1057960
    Vimala
    "Dumack Wu" <[email protected]> wrote:
    Hi, I'm a newbie in WebService. I use Weblogic servicegen ant task wrap
    a stateless
    EJB to webservice. The bean has a method with a string input parameter
    as follow:
    String Test(String inputParam);
    The WSDL generated by Weblogic WebService is like follow:
    - <message name="Test">
    <part name="string" xmlns:partns="http://www.w3.org/2001/XMLSchema"
    type="partns:string"
    />
    I use Delphi as Webservice client. When I use Delphi's WSDL Import Wizard,
    it
    renamed parameter "string" to "string_" because of "string" is a reserved
    word
    in Delphi. So when I invoked the Webservice, an exception was thrown:
    Found SOAPElement [<string_ xsi:type="xsd:string>test</string_>]. But
    was not
    able to find Part that is registered with this Message which corresponds
    to this
    SOAPElement
    How can I solve this problem? On the another word, Can I control the
    parmater
    name generate by Weblogic Webservice ant task?
    thanks very much!
    Rajesh Mirchandani
    Developer Relations Engineer
    BEA Support

  • Java.lang.NullPointerException while invoking Weblogic10 Webservice JAX-RPC

    hello,
    I'm facing this Eception while invoking the Webservice
    10/03/2009 01:39:19 Ú gosi.business.batch.financialaccounting.gosiSambaRets.controller.SambaClient callUploadPayment
    SEVERE: null
    java.lang.NullPointerException
    at com.bea.staxb.buildtime.internal.bts.XmlTypeName.findTypeIn(XmlTypeName.java:555)
    at weblogic.wsee.bind.runtime.internal.AnonymousTypeFinder.getTypeNamed(AnonymousTypeFinder.java:73)
    at weblogic.wsee.bind.runtime.internal.Deploytime109MappingHelper.createBindingTypeFrom(Deploytime109MappingHelper.java:1088)
    at weblogic.wsee.bind.runtime.internal.Deploytime109MappingHelper.processTypeMappings(Deploytime109MappingHelper.java:519)
    at weblogic.wsee.bind.runtime.internal.Deploytime109MappingHelper.initBindingFileFrom109dd(Deploytime109MappingHelper.java:266)
    at weblogic.wsee.bind.runtime.internal.Deploytime109MappingHelper.<init>(Deploytime109MappingHelper.java:166)
    at weblogic.wsee.bind.runtime.internal.RuntimeBindingsBuilderImpl.createRuntimeBindings(RuntimeBindingsBuilderImpl.java:86)
    at weblogic.wsee.ws.WsBuilder.createRuntimeBindingProvider(WsBuilder.java:709)
    at weblogic.wsee.ws.WsBuilder.buildService(WsBuilder.java:409)
    at weblogic.wsee.ws.WsFactory.createClientService(WsFactory.java:45)
    at weblogic.wsee.jaxrpc.ServiceImpl.init(ServiceImpl.java:154)
    at weblogic.wsee.jaxrpc.ServiceImpl.<init>(ServiceImpl.java:122)
    at com.samba.service.client.GosiPaymentSambaServices_Impl.<init>(Unknown Source)
    at com.samba.service.client.GosiPaymentSambaServices_Impl.<init>(Unknown Source)
    please can some one help me??

    user564706 wrote:
    Hi support,
    I installed cluster
    I installed Oracle ASM home
    using netca from ASM hom i cretaed listener
    Then while invoking dbca from ASM home to cretae asm instance i got the error:
    exceptio in thread "main" java.lang.NullPointerException
    at
    oracle.sysman.assistants....
    so using netca from asm home i deleted the listener and invokded dbca from asm home and it looks for the listener and since it is not there it automatically cretaes (after i confirm ok)and the asm instance cretaed.
    so is it the normal behaviour.What is the version?
    Why you are using DBCA from ASM_HOME ?
    you can use ASMCA from ASM_HOME if 11g.
    DBCA to create database from RDBMS_HOME/ORACLE_HOME
    You have very bad stats of your profile.
    user564706      
         Newbie
    Handle:      user564706
    Status Level:      Newbie
    Registered:      Mar 19, 2007
    Total Posts:      258
    Total Questions:      202 (200 unresolved)
    Out of 202 questions only 2 resolved, please check may be those also unresolved ;-)
    Keep the forum clean, close all your threads as answered. Read Etiquette. https://forums.oracle.com/forums/ann.jspa?annID=718
    Edited by: CKPT on Feb 22, 2012 6:56 AM

  • BPM Newbie

    Hi Guys
    I am a BPEL guy and just started working on BPM. Being a newbie in BPM field i have few queries which should be able to make me understand the diff between BPEL and BPEM.
    1) We created Business Process in BPEL with WS Orchestration, Deployed on BPEL PM Server then invoked the BPEL process with java code. Is it same with BPM? Do we have separate BPM Engine / Server for BPM? Where it is deployed? How is it invoked?
    2) Can we call/invoke one BPM process from another BPM process?
    3) How to use business rules in BPM?
    4) How do we use BPM process in actuall overall project deployment?
    5) Can it call any ESB and BPEL process? or can we call a BPM process from ESB or BPEL?
    6) Does it also have instances like BPEL? and its versions?
    I may have asked some stupid questions here but i am just trying to know how it can help me in understanding the business modelling better.
    Many Thanks

    user12128585 wrote:
    Hi Guys
    1) We created Business Process in BPEL with WS Orchestration, Deployed on BPEL PM Server then invoked the BPEL process with java code. Is it same with BPM? Do we have separate BPM Engine / Server for BPM? Where it is deployed? How is it invoked?There is the dedicate engine for BPM that can run on an application server like WLS, you just have to deploy your projects on the engine in order to have them available.
    The processes can be started in may ways: using the workspace (web application that alllows users to interact with processes) running activities (applications) that start the processes, using webservices, using jms listenere and so on. I suggest you to look at the documentation for specific details.
    2) Can we call/invoke one BPM process from another BPM process? Of course!
    3) How to use business rules in BPM? Just prepare the rules and use them, for instance using business rule based transitions to control the flow of the process...
    4) How do we use BPM process in actuall overall project deployment?It depends on your project
    5) Can it call any ESB and BPEL process? or can we call a BPM process from ESB or BPEL?Sure with ESB, it's strongly integrated with it. I've no experience with BPEL integration but I know it can be done.
    6) Does it also have instances like BPEL? and its versions?It has. Don't know if in BPEL it's the same...
    You define a process and then you can run instances of that process. You can modify it and have different versions running on the engine... but it would be too long to discuss here and now.
    I may have asked some stupid questions here but i am just trying to know how it can help me in understanding the business modelling better. No question is stupid :)
    Hope that this helps.
    Giuliano

  • Webservice from WSDL with imported XSD

    Hi all,
    Firstly, as a newbie to Jdeveloper forgive the ignorance....
    I'm trying to create and deploy a webservice (created top-down).
    I have an XSD, and a WSDL which imports this via a relative reference of the kind ../../ etc. - this validates OK in JDeveloper
    When I try to deploy this to WL I get a file not found error for this XSD, it can't find the XSD in the packaged archive to be deployed.
    So my question, for the import statement in my WSDL which is currently....
    <xsd:import namespace="http://xml.netbeans.org/schema/LoanApplication" schemaLocation="../../../LoanApprover.xsd"/> (i.e. XSD directory relative to WSDL directory at design time)
    ...what do I need to change it to so that when packaged it can find the XSD ?
    Thanks in advance
    MarkF

    Solved on JDeveloper forum.

  • Newbie back end choice

    When installing the trial version of Flash Builder 4 how does a newbie know what to choose as a back end?
    Someone who just wants to "learn Flex in a week"?
    Is there a FAQ somewhere, or do we need to post every question?
    Thanks!

    You do not need to install any backend technology to work through the Flex in a Week series. Data retreival in the series is performed against a live server that is already set up; the appropriate details are in the exercise directions.
    If in the future you do want to learn how to create the code for the backend, you can choose any technology that can be accessed via HTTPService, WebService or RemoteObject components. You will learn about these components in Days 2 and 3 of Flex in a Week.
    Also, when you install the Flash Builder trial version, consider installing the Premium, rather than Standard Edition so that you can follow the steps for using the Network Monitor.

  • What do I need on webservice (IIS) to connect to db?

    Hi all, I am a newbie and not sure what component do I need to install on the webservice server to connect to Oracle DB.
    I basically have vs2010 and ODP.net on my local Win7 machine to do the webservice development work. But the code will be deployed on another win2008 64bits web server. Please let me know what I should install on this web server, so it can connect to the oracle DB, the ODP.net or just the instant client? ( the oracle DB is on another machine)
    Your help is greatly appreciated!
    Edited by: user10936433 on Feb 3, 2011 11:31 PM

    All you need to do is install ODP.NET. ODP.NET provides data access to the DB server. Under the covers, ODP.NET will install the Oracle Client.
    For beginners, here are the best resources for getting started:
    http://www.oracle.com/technetwork/topics/dotnet/for-beginners/index.html
    The 2 Day .NET book linked from that page provides step by step guides for installing and creating ODP.NET applications.

  • Processing response message in webservice

    Hello,
    I'm quite a newbie with webservices and this question may seem quite stoopid but I'll ask it anyway...
    I have built a small web service with JAX-RPC. I know that, with the ServiceLifecycle I can process the whole request message, SOAPHeaders and all, in the webservice itself. Does anyone know how can I process the outgoing response messages SOAP headers? I mean other ways than message handlers...
    Thanks in advance!
    Rami

    You may wantto post this in the JWSDP community : https://jwsdp.dev.java.net/

  • WebServices and JCO

    Hi I'm a newbie in SAP area.
    I'm a java developer, my task is to create a set of WebServices in NetWeaver which will connect to SAP backend. For communication with SAP I can use SSO.
    I've created a stateless session EJB with parameters ssoCookie and username.
    I've selected to use authorization using Ticket module.
    I have a client which is able to connect to the WS (the client is written in JS - AJAX)
    The problem is that the parameter ssoCookie seems to be useless, the session must be present in the request to the WS.
    Can I retrieve it somehow? I haven't found any way in VI interface or in some SOAP Extension..
    My question is, how can I retrive the ssoCookie in my Java code?

    HI,
    Please look at following weblog
    /people/sap.user72/blog/2004/10/25/sap-logon-ticket-based-single-sign-on
    it might help.
    Thanks,
    Tuhin

  • How to assosciate webservice to a WSDL file

    Hi
    I tried developing webservice(EJB as RPC) in weblogic server and installed and its working fine if i call it from client.
    I am using java2WSDL(axis) tool to create a WSDL file and WSDL2Java to create stubs for client to call.I am struck in linking webservice to use the wsdl file which i have created.
    I manually tried to add my WSDL file to the WAR file of my application and also Updated the web.xml file of the Web application adding a mime-mapping.
    I am able to access the WSDL file in browser as http://bt885094:7001/webservice/user.wsdl
    But my client tries to access the service "http://bt885094:7001/webservice/C2PUserService" which has an associated WSDL file defined as http://bt885094:7001/webservice/C2PUserService?WSDL which needs to be checking for http://bt885094:7001/webservice/user.wsdl
    Could anyone tell me how to assosciate webservice to a WSDL file.
    thanks in advance

    Thank you everyone for your help. As a complete newbie I found this nice walkthrough tutorial in onjava(i dont mean to spam).
    1. View: Take a peek at the existing Fibonacci code.
    2. Java2WSDL: Generate the WSDL file for the given Fibonacci interface.
    3. WSDL2Java: Generate the server side wrapper code, and stubs for easy client access.
    4. FibonacciSoapBindingImpl: Fill in wrapper to call the existing Fibonacci code.
    5. Deploy: Deploy the service to Apache Axis.
    6. Client: Write a client that uses the generated stubs, to easily access the Web service.
    Given the webservice endpoint and the method name, I think I can now consume the web service using steps 3,4, and 6.

  • Consuming Webservice(SAP B1if) by PHP SOAP

    Hi all,
    im newbie in B1if, is this possible consuming Webservice by PHP SOAP.  i didnt find any Document or Example for consuming Webservice by PHP. just from Yatsea Li "Consuming B1if Web Services by DotNet". i created webservice just like Yatsea Li did.   I am really just trying to find out how to consuming a webservice by php. Can any one point me in the direction of some usable documentation or example  for it?
    Kind regards,
    Christoph

    Hi Christoph,
    let me summarize:
    You don't want to consume an external Webservice with B1if as I assumed first.
    Your plan is to consume a Webservice - provided by B1if -  with an external PHP based program (such a scenario is described in this youtube video).
    So as prerequisite you followed the guidance by Yatsea and did the following:
    You created a scenario in B1if using Web Service Inbound, and defined an output in atom0.
    You created a test inbound file and tested the scenario in the integration flow
    (existing testfile and successful test run is prerequisite to genrate XSD).
    You activated the scenario in the setup.
    You created a XSD and a WSDL via the B1if Scenario setup.
    You used the self-created WSDL for your test with the external program
    The Webservices provided by B1if are per default in SOAP format, so you need to handover the following structure:
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
      <SOAP-ENV:Body>
       <root>
      </root>
      </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    The service method is identified by the root tag of SOAP Request.
    Did you already try to consume the B1if Web Service via WFetch or SOAP UI successfully or do you have the same problems as with your PHP application?
    Do you have your generated WSDL available?
    Best regards
    Bastian

Maybe you are looking for

  • Help in resolving the error - Incident Queue is full

    I've been given a 4.2.4 system to look into since the previous admin left some time ago. I have found we are seeing the following Error pn datax IncidentXmlNotificationServlet PN-1100: Java message: Error sending XML Notification. Incident Queue is f

  • Performance wise data representation

    Hello there, I would like to start discussion regarding performance wise solution implementation solution, From performance point of view, which choice would be better to be chosen among the following scenarios, 1. one is to run a process run on ever

  • Help with blocking pop ups

    i recently started using safari, and now when i click on something that usually pops up, it just loads/re directs me to a new page for it, i clicked (turn off) block pop ups to see if that was the problem, but it wasnt, any ideas how to fix it?

  • Question about embedded video clips

    Hello all, I'm importing embedded video clips for the first time today and have run into what I'm sure is commonly understood by everyone else here. The video clip takes up as many frames as the video, but if I add frames after that, the clip starts

  • Replicate Quotation from CRM to ECC

    Hi, Here is my requirement, Once the quotation is created in CRM and the field u201CCustomer req. dateu201D is entered, this has to be replicated in a custom field in the ECC quotation. If the u201Ccustomer req. dateu201D is updated in CRM, this has