Web Services General Question

Hi All,
Does web services in Java mean to simply provide a SOAP container that wraps around an EJB (or even a web container)?
If this is true, all of the work that's been done with the development of EJBs can be preserved, and other system will make calls to the SOAP container in order to get access to the web services provided.
I'm trying to understand the big picture and slowly get into Web Services in Java.
Thanks

I don�t know if this answers your question, but I think that SOAP indeed can be used to expose existing EJB�s to non-Java-Systems.

Similar Messages

  • Web Service Security Question

    I have created a web service in the NetWeaver portal using a Portal Service.  I have marked the service as requiring basic http authentication.  However, when I call the web service from the Enterprise Portal Web Services Checker in NWDS it just let's me supply the params of the web service and no authentication.  Any ideas?
    I also noticed that my web service does not appear under the Web Services Container or Web Services Security section in Visual Administrator.  Anybody have any idea why this is?
    Thanks in advance.
    Curtis

    Hi Curtis,
    My guess is that since you are logged into the Portal while calling this web service, it will use the current session cookie to authenticate automatically. I'm not sure on the second question, tried a restart?
    Regards,
    Raj

  • Securing Web Service--Beginner question

    Hi--
    I am trying to follow the document "Securing WelbLogic Web Service 10g Release 3" and can't get past the initial steps to verify that my service has been deployed with the Wssp1.2-2007-Wss1.1-UsernameToken-Plain-X509-Basic256.xml policy
    I have a basic question.
    I add the aforementioned policy to my web service using :
    *@WebService*
    *@Policy(uri = "policy:Wssp1.2-2007-Wss1.1-UsernameToken-Plain-X509-Basic256.xml",attachToWsdl=true)*
    and then rebuild and redeploy.
    If I then access the URL for the web service with "?wsdl" apppended, shouldn't the WSDL returned now include policy information?
    Karl

    Thanks, that's what I've come to understand. Is this restiction due to the fact the the @Policy annotations are not standard or is this a limitation on the Weblogic eclipse plugin
    What I've had to due is generate the JWS from the WSDL and then go back to the bottom up approach with the generated JWS source files. A bit of a pain but what can you do.
    I tried adding the security policies as suggested by Bethune but they don't seem to "stick" after a restart of weblogic server. This may be due to running weblogic server under Eclipse. I havent had time to investigate this further
    Once again thanks all for the help
    Karl

  • Web service serialization question

    Hi,
    Sorry if this is the wrong place to post this... if so, can you pls. point me to the right place. I'm a newbie to this ng (and weblogic in general).
    I am developing a web services client using Weblogic 8.1 sp2. I have run clientgen on the WSDL and compiled my client code with the proxy jar. The web service takes in a complex object as argument. I populate the object & invoke the service. The SOAP request seems to miss out a few important elements even though I have properly populated them in the object. This seems to be arbitrary, because the element is being populated in one request, but missing in the other, even though the code is EXACTLY the same.
    I'm trawled the web, but no one seems to have faced anything like this. I can post the WSDL & the soap requests if required.
    Regards,
    Mridul.

    Hi,
    the clientgen tool is somewhat buggy, have you tried the SP4 version ?
    If this does not work, please post more details.
    - Anders M.

  • Web Service/ JDBC question

    Hi,
    I have to design an automatic -and periodic- process that performs next tasks:
    1) Read Oracle table to build a XML file
    2) Connect with a Web Service and send the XML. (In the specification says that SOAP with attachments is not supported , so we have to use a "proxy J2EE client" to interact with this web service)
    3) Also this web service uses security sign with a X.509 v3 certificate in BASE64, which must be passed as a 'string' parameter when is invoked.
    I'm new in these subjects, and I need some help, my questions:
    1) Is it possible to define an automatic process with JDEVELOPER that connects to the DB, build the XML file and invoke the Web service?
    2) How could I make this proccess automatic and periodic, for example every friday.
    3) What are the tools I have to use:
    3.1.- To Connect with DB -> JDBC?
    3.2.- To Build XML, programmatically? or is there any tool?
    3.3.- To define it as a periodic proccess??
    4) Others alternatives? Is it possible to develope this directly in PL/SQL as a job in ORACLE?
    thanks in advance...

    This is what we call "Database Web Services" covered in chapter 15 of my book http://db360.blogspot.com/2006/08/oracle-database-programming-using-java_01.html
    See also
    a) Oracle Application Server Web Services Developer’s Guide 10g Release 3 (10.1.3.x) for a complete coverage of Oracle AS Web Services Security.
    b) Calling External Web services from stored procedure (it contains an example of batch scheduling for call-out but you are looking for call-in): http://www.oracle.com/technology/sample_code/tech/java/jsp/samples/wsclient/Readme.html
    Kuassi

  • Web service simple question

    I am using a Web Service to publish some data, and this question is, I'm sure, stemming from my limited knowledge and use of web servers.
    I am able to set up an "add" method, pass 2 numbers to the web server, and have the web server return a value. Simple. But, I am not sure what to do when I want to get the current value of something that is being updated in a loop.
    For example, let's say I have a VI like the one below, and the user wants to display the current loop iteration in their browser, not continuously, but only when they ask for it. I don't want to use this VI as the method to call. Instead, I'd rather this VI pass the current value to a VI designated only to return the numeric control value to the webserver. But, I have no idea how (or if) I can pass the iteration value to a method to be called. Does this make sense?
    I have thought about using session variables, but this requires continually writing to the session variable in my code, which probably isn't a big deal, but it would be nice if it only queried the current iteration when the user asked for it (much like 2 numbers are only added when the user asks for it in the NI example). I'm looking for a way to just return the current value, only when the user asks for it. 
    CLA, LabVIEW Versions 2010-2013
    Solved!
    Go to Solution.
    Attachments:
    loop.png ‏14 KB

    You'll probably want to go through more LabVIEW basics before trying this, or consider another means of communication between your VIs such as shared variables.
    A functional global variable is a VI that stores data in an uninitialized shift register.  The simplest implementation has a boolean input indicating whether to read or write, an input for data (when writing), and an output for data (when reading).  Search this forum for more information.  You will also see the term "Action Engine" which is a more sophisticated version of a functional global that implements additional actions that manipulate the data.
    The LabVIEW web server runs in its own application instance - almost a separate program.  That means it cannot directly share data with the application that hosts the web server.  VI Server is a mechanism to allow one LabVIEW instance to access VIs in another instance.  In your main program, you would store the data in a functional global variable.  In the web server, use VI Server to get access to the same functional global.  You can then run that VI remotely, within the web server instance, and read data from it.  See the help and examples for VI Server.

  • Web service basic question

    Well I am new to web services. I have a small doubt. We are trying to develop a tool which uses web service that standards the communication between my tool and different surveillance
    systems.
    What my tools should do is, it needs to get data from different surveillance
    system using common API.
    My first question is
    1) Should I implement a web service or a client. I guess the answer should be, implement a client. if so, should I make my WSDL public and tell them and if you want to provide me the data you have implement a web service definition corresponding to my client. I am a bit confused here. So pleeeeeeeease help. I need to submit my design to my professor by the end of the week.

    If your tool needs to be called from the surveillance systems, you could publish a web service and give the wsdl to the various surveilance systems. Then when they need to contact you they can invoke your web service.

  • Java web services basic question

    Hi all,
    I'm new to web services programming, and I'm having trouble getting my head around a few conceptual ideas about web services. I'm in a graduate class right now where our project needs to use web services to create a distributed system. We're using Axis2 and jUDDI for development.
    In terms of distributed systems, I am a CORBA programmer, and so when I'm given a problem, my mind immediately goes to how I would implement it in CORBA. Web services seem similar (the WSDL is like an IDL, an jUDDI is like the CORBA naming service, etc) but I'm having difficulty figuring out how to instantiate two (or more) web services that implement the same interface.
    From the simple 'hello, world' web services I've done, I have created a java class, compiled it, packaged it into a .aar, and deployed tye aar using Axis2 on Tomcat, my application server (which somehow creates the WSDL file - I'm not exactly sure how that happens either). From there, it's simple to write a client to connect to the web service, which seems to always be running in the application server.
    Now, for the system I'm working on, we need to have multiple 'instances' of a service. For example (note this isn't the actual project assignment), say there is a 'GPS_Service' web service with a simple interface with two methods: getLocation(), and setLocation(point p). In my 'application', I want to deploy 15 'instances' of GPS_Service, and set and view their location independently.
    Here's where my lack of knowledge hurts. From my point of view, I would need 15 different java classes (i.e. GPS_Service0, GPS_Service1, etc) and 15 different .aar files. Each .aar file would go into the application server, and I would access each service at a different web address.
    In CORBA, this is much easier. Classes implement a CORBA interface, and your 'main' method can instantiate as many 'GPS_Service' objects as it wants. This seems to be because CORBA doesn't have an 'application' server where the object is always running.
    Does anyone have any suggestions for me, or does anyone have an example of what I'm trying to do?
    Thanks,
    Eric

    I forgot to answer your question.
    You have to consume the webservice :
    http://gerardnico.com/wiki/ide/eclipse/eclipse_how_to_consume_a_webservice_with_wtp
    It will create for you the package
    com.siebel.analytics.web.soap.v5
    See my example. I think it's enough complete.
    Success
    Nico

  • Java Web Services Newbie Questions

    I have some questions concerning developing Web Services in java. I understand the basic technology and concepts, but am not familiar with the available Java pieces to accomplish what I need to.
    1. What application do I need to service a Web Service? I would prefer to run apache (running on an AS/400). Can apache do this? What in addition to apache (plug-in?) do I need to service the Web Service?
    2. What application (plug-in?) do I need to provide the UDDI lookup for my Web Services? Again, I would prefer to do this in apache. Do I need a plug-in, etc.
    3. Is there an IDE or package that will make creating the Web Service easier. I am currently using Eclipse for some other java work, so it would be nice if this IDE would work well for this. I am hoping for some plug-in that will make it easy for me to provide a method prototype, and the WSDL and perhaps client proxy classes get generated from this?
    4. How should I create my WSDL? (this may be answered by the previous question)
    5. How should I create the client proxy classes? (this may be answered by the previous question)
    6. Anything else (tools, API's, plug-ins) I need to know how to make this happen quickly. I need to implement a couple web services in just a few weeks.
    Thanks.

    1. There are 3 ways i can think of:
    a. J2EE 1.4 App Server (e.g., 1.4 Beta 2 from Sun)
    b. JWSDP
    c. 1.3 IDE with Web Services support (WebShere, Sun One...)
    2. You need to register with a public registry, such as those by IBM, Microsoft, etc.
    3. Partly answered in 1... I prefer working with 1.4, because that is a new standard coming up, so no serious changes will be needed later.
    WSDL and stubs/ties are generated for you by tools like wscompile, but you do have to code the client itself :)
    4. wscompile, etc. can be invoked by tools like ant based on your build file, or by IDE.
    5. Automatically done...
    6. I think i covered the tools above. For the rest, I'd recommend going through J2EE 1.4 Tutorial, or cases like those provided by some IDEs.
    HTH,
    Reshat.

  • Adobe Interactive Form / Web Service - Connection question

    Hi
    We have CRM 2007 and want to use Adobe Interactive forms for our sales managers to upload customer information when they're out in the field. Before they leave all information about the customer will be downloaded to an Adobe Interactive Form. The client sees the customer and then enters the information required to e.g. create a sales order. He has an Internet connection but is not neccessarily logged into CRM 2007. He is a registered user in CRM 2007.
    My question is: if we create the web services to send and receive data to the CRM 2007 system, does the sales manager have to be online and signed into the CRM system to upload the Adobe Interactive Forms back to the server, or does the web service handle this?
    Kind regards
    Declan

    Hello Declan,
    You can send the information captured in an SAP Interactive Form by Adobe to your CRM system in two ways based on the way in which your form is designed -
    1] By making a direct web service call : A typical use case is that the user fills out all the necessary fields in the form and simply clicks a submit button; on clicking, the particular web service is called and the input data is transferred to SAP CRM. It should be noted that the web service authorizations should be in place to enable this kind of usage.
    2] By utilizing SAP CRM via Email scenario : A typical use case here would be that the user fills out all the necessary fields in the form and simply clicks a submit via email button; on clicking, an email is composed with all the form input infomration added as an attachment. The user can then send this email to the SAP CRM system. It should be noted that SAP CRM via Email application should be setup on the SAP CRM system and the particular SAP CRM via Email service & web service should have proper authorizations.
    An interesting point to note here is that while scenario 1] would require the user to have just internet access for this to work, scenario 2] could work in a fashion such that if the user isn't having internet access, he/she could still fill out the forms thereby creating emails which would then reside in the outbox of the user's email client. Once the user is having internet acces, the email client would send these emails automatically, thereby achieving a different flavour of "offline functionality".
    Hope this info helps!
    Best regards,
    Sandeep.

  • Web services deployment question

    My employer has a deployment environment typically requiring an application
    to be deployed in a multi-tier architecture (i.e. JSP/Servlets in one
    cluster, EJBs in a second cluster). They do however have this one
    application that requires a combined tier architecture and it is currently
    deployed this way. This application will shortly have a small web services
    layer added to it to support another application that needs information from
    this application.
    The IT staff that manage this environment wants to now create two clusters
    for this application on the same hardware, cluster A would contain the
    original application and be responsible for presentation and cluster two
    would contain the second app plus the web services layer and be responsible
    solely for handling web services. Their reasoning for doing so is that the
    web services are not considered presentation and thus this should be
    logically seperated. This seems strange to me, now your maintaining two
    clusters with identical code bases, doing identical work with the only
    difference being the entry point. There is no scalability advantage to two
    clusters that I can see, just a lot of extra work to create a logical
    seperation that isn't even real.
    Before I go back to them I just want to be sure I'm not missing some obvious
    reason why this would be a good idea.
    Thanks,
    George

    Tim
    You can change this behavior by passing notestconsole to the
    startweblogic.cmd or by setting the testConsoleFlag variable to false in
    the startweblogic.cmd script. Also testconsole is turned off by default for
    all EAR files.
    Please refer to the following document for more information on this
    http://e-docs.bea.com/workshop/docs81/doc/en/workshop/reference/commands/cmdStartWebLogicCommand.html
    Regards,
    Raj Alagumalai
    Backline Workshop Support
    "Tim " <[email protected]> wrote in message
    news:3f8af6cc$[email protected]..
    >
    How do you configure Workshop 8.1 to hide the Web Services test page fordeployment.
    This question has been posted and answered, but the answer had to do withediting
    the
    web-service.xml file. Workshop does not deploy a web-service.xml file.

  • A web service design question

    Hello,
    I�d like to ask for your help in the following design issue:
    I need to create an email sending web service (with Axis). Only just one method which returns with an integer return code. This handles the following:
    - based on the given parameters gets the email addresses from an
    LDAP server (with netscape ldap for java)
    -     makes a cache from them (only after a timeout period will be the cache
    refreshed) (don�t know what tool to use for this)
    -     selects html templates which to be sent based on the given parameters
    -     sends emails with the appropriate templates (with Velocity)
    -     the whole process is logged (with log4j)
    I have to write the code as generic as possible. I know that some design pattern should be used for this. (some from GoF , and I know there exists design patterns specially created for web services as well).
    Could you enumerate me which patterns (and for what part of the program) would be the best choice to solve this problem? I have read through some books about patterns, but don�t have the knowledge to pick up the right one for a concrete problem like this..
    Thank you in advance,
    nagybaly

    This sounds like a known issue which is tracked in ADAPT01103681. Code from a .NET DataProvider is executed twice if the provider has input parameters.
    At this time there's no known solution for this. This was submitted to the development team and a fix is expected in Service Pack 2. At this time we have not announced a release date for SP2.
    Edited by: David Hilton on Jun 18, 2009 3:02 PM
    Corrected spelling.

  • Simple web service authentication question

    I'm using the application server included with Sun ONE Identity Server 6.1 (and Apache Axis) to deploy a very simple sample web service. Accessing it from a web browser works fine. (After entering the url to my service, I'm redirected to the authentication page. After authenticating, my service is executed as expected.)
    The problem comes when I attempt to execute this same web service from a Java application (using Apache Axis). I authenticate programmatically and have a valid SSOToken. How do I pass my authentication information along to the IS server when invoking the web service programmatically? Can I do this somehow with the SSOToken I have? Every time I invoke the service programmatically, a "(302)Moved Temporarily" HTML response is received.
    Thanks for your help.
    David

    This solved the problem for me (using Axis):
         call.setProperty(org.apache.axis.transport.http.HTTPConstants.HEADER_COOKIE,
                          "iPlanetDirectoryPro=" + token.getTokenID().toString());
         call.setMaintainSession(true);Hope this helps.

  • Web Service Authentication Question

    Hello,
    I'm trying to integrate ApEx with my company's ticketing system. The ticketing system provides web services that are defined in the http://server/folders/webservices.asmx file.
    When I try to add a web service reference to that file I get the following error message after entering the WSDL location: "This WSDL requires authentication credentials. Please supply the username and password below."
    I've tried to enter the username/password many different ways but I always get the same response. When I looked in the documentation for our ticketing system I found some information about it authentication method. This seemed interesting... "WebServices.asmx is installed requiring Integrated Windows authentication. This means that in order to use webservices.asmx the calling application must pass a Windows credential with the HTTP request. That credential must have NTFS Read permission on the WebServices.asmx file."
    Can ApEx work with this? I don't know much about the differences between basic and integrated authentication...
    Thanks in advance for any help!
    Regards,
    Dan

    Jason,
    Yes I am logged into my pc and a member of the domain. If I open the URL in IE the credentials are passed thru. If I open the URL in Firefox, I get a challenge and with the correct credentials I'm allowed to view the page. Subsequent visits to the page do not challenge.
    However, when creating the web service, the browser makes no difference. I always get the "Requires auth" message.
    Dan

  • Web service session question

    i develop a web service from a java class that has get and set method for a int variable.
    first i call set method of web service then i call get method.But i lose the value set before.
    Is it possible to store the value of the variable for the session.

    This is not something related to WS.
    Check your backend java code.

Maybe you are looking for

  • Email not working after upgrading to Yosemite.

    Mail reports all passwords incorrect. After manually entering the correct password mail still can not connect to mail server.

  • Audio Quality

    Hey folks, We've got a client who is looking for better audio quality than we've previously been able to get out of LCCS. Looking into it a bit, it looks like the Flash microphone class has two main quality settings: encodeQuality and rate. The Micro

  • Net info manager, Help Needed

    Good Morning all I have a Mac that is on my network and I am trying to get it to connect to a web server, so I can do some browser testing. It will connect OK if I use the IP in the browser. But not when I try and use Net info manager This works fine

  • BT HomeHub 5 intercepting traffic on port 554 and ...

    As the title says, my homehub appears to be intercepting packets on these two ports and, infuriatingly, is replying as the target resulting it as showing as open on all hosts. Does anyone have insight into why it would be doing this as well as how to

  • Reg int table declaration

    Hi,         What does the following statement mean? t_tab       TYPE STANDARD TABLE OF tp_tab                            WITH NON-UNIQUE DEFAULT KEY, What is the use of using "NON-UNIQUE DEFAULT KEY"? Thanks, Chinmaye