SOAP server side ... how to ... ?

Hi,
I'm new to the soap technology.
I want to write a java application that use SOAP.
I've downloaded JAXM to implement the client side :
SOAPMessage response = con.call(message,endpoint);
But I don't know what I must do to the server side ?
A servlet ? What must I invoke on the server ?
(I have IIS with servletexec, but I don't know if a servlet is necessary???)
I just want to implement a server side that answer the SOAP request.
Please,
any information about server side
or a little "startpoint" to begin is welcome.
Very thanks.

A good place to start are the tutorials and sample code that are found at:
http://www-106.ibm.com/developerworks/webservices/library/ws-peer1/?dwzone=ws
http://www-106.ibm.com/developerworks/webservices/library/ws-peer2/?dwzone=ws
http://www-106.ibm.com/developerworks/webservices/library/ws-peer3/?dwzone=ws
http://www-106.ibm.com/developerworks/webservices/library/ws-peer4/?dwzone=ws
The second and third parts were the best - best coding samples. Also you might want to check out the Apache SOAP website - have you got your SOAP API? It can be found on:
http://xml.apache.org/soap/index.html
Also, the Apache SOAP website has a good bunch of info:
http://xml.apache.org/soap/docs/index.html
You'll need to have the SOAP, xerces.jar, and a few other things to fully implement SOAP. I've put together several client/server apps using different types of requirements.
Does this help??

Similar Messages

  • SOAP Server Side

    Hi guys, I already know a few about SOAP technologies (only in theory) and now I need some pratice.....
    I need to develop a SOAP service wich will expect some callback calls, let me explain better:
    There are to machines A and B
    I need to register my application A (in the machine A) into the B Server
    I need to register a url and a callback function in the server B
    When something occurs the server B call the "callbackfunction" in the server A
    Summarize:
    The client side has a temperature monitor programming and the server B has a connection with the "temperature measure device". so I register my client in the B server and every time the temperature changes I will call a "method" in the client A application
    How can I do this?!?! Some directions will be very welcome
    []'s
    Thanks all
    Giscard

    It is the problem for me too. I used Apache SOAP, and I think it is the only way to realize this. At least, nobody posted an answer here, when I asked the same question. It is very sad, but I'm afraid J2EE has not mechanism to provide server-side support of SOAP. This aspect gently omissed in all Java tutorials.
    It's very nice :)

  • How to get session.maintain property on server side?

    Is there a way to trap javax.xml.rpc.session.maintain property on the server side in JAX-RPC compliant web service implementation? I would like to know if the client has enabled session.maintain property to true (which false by default). If not, can I specify the web service to be of "Application" or "Session" scope during deployment time? It used to be the case for Apache SOAP processor. I do not see any mention of that in the JAX-RPC spec.
    Thanks for any pointers.
    -Anirban.

    When I first started to work with JAXRPC I had questions about how web services maintained session across multiple calls and also if it was
    possible to maintain session across multiple web services. I downloaded
    the JAXRPC runtime implementation source code and tell you what I found.
    There is a HttpClientTransport class that handles the actual HttpConnection to the server. It checks to see if maintain session is
    set to true or false. If it is set to true it appends the JSESSIONID to the header variables of the request.
    The very first call gets a response back with header variable
    Set-Cookie: JSESSIONID=blahblahblah
    The HttpClientTransport looks for it and if it finds it takes the cookie and stores it somewhere. Every call after that will check to see if session maintain is true or false. If true, it will send
    the header:
    Cookie: JSESSIONID=blahblahblah
    Hope that helps.
    Mike

  • How can i load file into database from client-side to server-side

    i want to upload file from client-side to server-side, i use the following code to load blob into database.
    if the file is in the server-side, it can work, but if it in the client-side, it said that the system cannot find the file. i think it only will search the file is in the server-side or not, it will not search the client-side.
    how can i solve it without upload the file to the server first, then load it into database??
    try
    ResultSet rset = null;
    PreparedStatement pstmt =
    conn.prepareStatement ("insert into docs values (? , EMPTY_BLOB())");
    pstmt.setInt (1, docId);
    pstmt.execute ();
    // Open the destination blob:
    pstmt.setInt (1, docId);
    rset = pstmt.executeQuery (
    "SELECT content FROM docs WHERE id = ? FOR UPDATE");
    BLOB dest_lob = null;
    if (rset.next()) {
    dest_lob = ((OracleResultSet)rset).getBLOB (1);
    // Declare a file handler for the input file
    File binaryFile = new File (fileName);
    FileInputStream istream = new FileInputStream (binaryFile);
    // Create an OutputStram object to write the BLOB as a stream
    OutputStream ostream = dest_lob.getBinaryOutputStream();
    // Create a tempory buffer
    byte[] buffer = new byte[1024];
    int length = 0;
    // Use the read() method to read the file to the byte
    // array buffer, then use the write() method to write it to
    // the BLOB.
    while ((length = istream.read(buffer)) != -1)
    ostream.write(buffer, 0, length);
    pstmt.close();
    // Close all streams and file handles:
    istream.close();
    ostream.flush();
    ostream.close();
    //dest_lob.close();
    // Commit the transaction:
    conn.commit();
    conn.close();
    } catch (SQLException e) {

    Hi,
    Without some more details of the configuration, its difficult to know
    what's happening here. For example, what do you mean by client side
    and server side, and where are you running the upload Java application?
    If you always run the application on the database server system, but can't
    open the file on a different machine, then it sounds like a file protection
    problem that isn't really connected with the database at all. That is to
    say, if the new FileInputStream (binaryFile) statement fails, then its not
    really a database problem, but a file protection issue. On the other hand,
    I can't explain what's happening if you run the program on the same machine
    as the document file (client machine), but you can't write the data to the
    server, assuming the JDBC connection string is set correctly to connect to
    the appropriate database server.
    If you can provide some more information, we'll try to help.
    Simon
    null

  • How can I disable excel addin on the Server side?

    Hi, is there any way to disable excel addin on the server side?
    We want to disable it so that no one can modify or read data in the cube in the production environment, even if he or she had installed the add in. Instead, we provide the Planning data forms as the only interface for end-users to read and write. we do this because the add in is very easy to install and users can read and write data in the cube at their will.
    As we designed to keep the security filters simple, it is not a good idea to controll data access through security filters.
    so, what i'm asking is how to disable excel addin on the server side?
    Thank you for replying.
    Edited by: user4592285 on 2012-10-18 上午6:48

    Hi,
    As Gurus suggested, you will have to restrict viewing of data through dimension level security.
    Give access of members to users, only which are relevant to users so that they can't view other user's data/members.
    Like give access of members belonging to HR dept only to HR users and give access of Finance dept related members to finance users only.
    Hence HR users will view only HR relevant data and won't be able to view (read or write) finance related data and vice-sa-versa.
    Hope this helps
    Regards
    -SM
    Edited by: 918547 on Oct 18, 2012 8:40 PM

  • How to delete the server side sessions

    Hi All,
    I have a wireless application and it is accessed through ptg/rm gateway from a PDA browser. Oracle wireless AS gives default login page (when the application is accessed through ptg/rm gateway) and when user login, user information session might get stored in server side (I am not sure, if any one can pls clarify me on this also?).
    Now i have a requirement, in which my application user should get 'logoff' button in each and every page of my application. When he clicks on this button the user information session should get invalidated, so that even if the user goes back to the application (using back button of the browser) he should not able to enter the application. (This is same as any std. login/logout page logic).
    Invalidating the session which resides in client side is easy (By using session.invalide()), but how can i delete the session which resides on the server side??? Whether is it possible??
    If yes then how can i do it.
    Any help will be very usefull.
    Thanks well in adavance.
    Shrikant

    Shrikant:
    Shouldn't it be easy to invalidate the server sided sessions? Right before invalidating the client side session, send a message to the server, which should call its session.invalidate() after it has obtained the current session. If desired, a message can be sent back to the browser informing user that server side session has been deleted.

  • How to access a JS changed attribute on the server side?

    hi all;
    if i change an attribute on a custom component via java script on the client side.
    how can i access the changed value on the server side?
    in what method will i have the access to this changed field?
    thanks in advance.

    You can hardcode the ID of the component in the backingbean (or some propertiesfile) and use ViewRoot.findComponent(componentId). Using the binding is (much!) more elegant anyway.

  • How do I tell FMS to only serve a section of a file using server-side ActionScript?

    We have a bunch of mp3 files on our server and we'd like to serve only particular sections of particular files to users.  For example, hello.mp3 might be four minutes long, but when user 1 tries to play it, he should only be able to play the section from 0:30 to 1:00, whereas user 2 should be able to play the whole thing.
    I'm coming from a background using Wowza Media Server, where this is fairly easy to achieve: http://fmsguru.com/showtutorial.cfm?tutorialID=78.
    Wowza doesn't require any change to the player (it doesn't call any special methods), so I'm looking for the same here.
    I've been fiddling around with the main.asc file and the "Server-Side ActionScript" API to try and achieve something similar.  In particular I've found the Stream.play method, which seems relevant.  But I can't figure out how to attach a handler to a "play" event; all the examples I've seen only attach to Application.onConnect, which doesn't seem to include a connection to a particular file, which I need in order to determine the section that can be played.
    So I'd like to do something along the lines of this (this is completely made up and doesn't follow any of the APIs; it's just an illustration of what I'm trying to achieve):
    application.onConnect = function(client) {
       client.onPlay = function(stream) { // Client.onPlay doesn't exist; what should I do here?
           var section = getStreamSection(client, stream);
           stream.play(section.start, section.end);
    var getStreamSection = function(client, stream) {
       return { start: 30, end: 60 }; // Return value is based on the user's credentials and the file they're trying to stream

    You can find the documentation for Plug-ins here:
    http://help.adobe.com/en_US/flashmediaserver/plugin_apiref/index.html
    http://help.adobe.com/en_US/flashmediaserver/devguide/WS5b3ccc516d4fbf351e63e3d11a0d662434 -7ff6PluginAPI.html
    Basically you need to concentrate on E_PLAY event and two fields F_STREAM_LENGTH & F_STREAM_POSITION. I am pasting below some code which you need to paste in your sample Auth Plug-in which you can find in : <installdir>/samples/plug-ins. You would have paste below code in case E_PLAY section in MyFmsAuthorizeEvent::authorize() function and compile it. You would basically get AuthModule.dll which you need to place in modules/auth and restart FMS.
    // Set the Stream to be played back only for 10 seconds starting from 10 th second
                                  // Stream will play from 10th Second to 20th Second
                                     float fValue;
                                  char buf[1024];
                                  if (getFloatField(m_pAev, IFmsAuthEvent::F_STREAM_LENGTH, fValue))
                                            float fLength = fValue; // in seconds
                                            sprintf(buf,"Original Stream length value passed from player %f\n",fLength);
                    m_pFmsAuthServerContext->log(buf, IFmsServerContext::kInformation, false);
                                            fLength=10.0;
                                            sprintf(buf,"Modifying Stream length value passed from player %f\n",fLength);
                    m_pFmsAuthServerContext->log(buf, IFmsServerContext::kInformation, false);
                                            setFloatField(m_pAev,IFmsAuthEvent::F_STREAM_LENGTH,fLength);
                                  if (getFloatField(m_pAev, IFmsAuthEvent::F_STREAM_POSITION, fValue))
                                            float iPosition = fValue; // in seconds
                                            sprintf(buf,"Original Stream Position value passed from player %f\n",iPosition);
                    m_pFmsAuthServerContext->log(buf, IFmsServerContext::kInformation, false);
                                            iPosition=10.0;
                                            sprintf(buf,"Modifying Stream length value passed from player %f\n",iPosition);
                    m_pFmsAuthServerContext->log(buf, IFmsServerContext::kInformation, false);
                                            setFloatField(m_pAev,IFmsAuthEvent::F_STREAM_POSITION,iPosition);

  • How to get path of image from server side in form of URL

    Hello,
    I want to access images stored on server side local folder. How do I create a URL for that. Images in the folder changes dynamically, so I should be able to display the new modified images. Please help me.
    Thanks in advance

    Are you asking from client side to access server (local folder) images...
    if yes
    where the security goes....
    please be in detail...

  • Opening a modal panel depending on a server-side decision. How?

    Hi,
    Short version: How can you conditionally open a Richfaces modal panel (or, for that matter, perform any other action) on the client, depending on the (boolean) outcome of a server-side method?
    Long version: I have a form which, among others, contains an address, which needs to be checked against a geo database, in order for the coordinates (latitude/longitude) of that address to be added. Now the thing is, if there is no 100% match (e.g. due to a misspelling or if there are many names for the same town) only the zip codes are matched, and there are zip codes that cover many towns or small villages. In that case, I'd like to popup a modal panel with all the towns/villages with that zip code, so that the user can choose the one that is actually meant. If there is a single exact match (or if the address was not changed at all -- there is also other data on the form) then nothing should popup and the form data just saved as usually.
    What I've tried so far is to bind the submit button to an action method that checks the address and if it's all OK saves the form data to the DB and sets a bean property to false (meaning "no popup"). If there are multiple choices for the address, then the bean does nothing but set the bean property to true (do popup) and return. Then on the client, the modal panel's rendered attribute is bound to that boolean property, so that it is rendered or not as appropriate. Finally, the submit button (which is an <a4j:commandButon>) is set to reRender the modal panel on completion of the submit request, so that the bean property is re-evaluated.
    On theory, this should work. (Or am I missing something?) However, the modal panel just does not pop up, no matter what I do (the business logic itself with saving and matching and stuff works fine). Are there any other ideas about how this behavior could be achieved? Am I missing some point?
    Any comments or ideas are appreciated!
    Greetings,
    Mike

    you can use this:
    <a4j:commandButton data="#{mybean.mybool}"
                       oncomplete=" if (data == true) {
                                       #{rich:component('mymodalpanel')}.show()
                                    } else {
                                       return false;
                                    }" />

  • How to install owb server-side software on UNIX Solaris (SPACR-64)?

    Hi there,
    How to install owb server-side software on UNIX Solaris (SPACR-64)?
    I've read the install guide
    and it mentions
    3. Start the installer by entering the following at the prompt:
    cd mount_point
    ./runInstaller
    I don't have access to any graphical interface on the UNIX box e.g. x-windows nor any cd with the software, just the solaris software downloaded from web - does this include the runinstaller
    and is the runisnatller just a command line interface?
    I hoped I would be able to download the software from oracle website and then simply run the a setup scrip?
    Is it possible to do this? Would I simply substitute cd mount_point to cd <directory I put software)
    I've never ran oracle universall installer on UNIX before.
    Many Thanks
    Edited by: user575470 on Feb 15, 2009 7:54 AM
    Edited by: user575470 on Feb 15, 2009 8:06 AM

    Hi,
    You can install the server-side software from the downloaded software.
    You don't need the CD
    You do need an X-windows client on your computer to connect to the server OR work directly on the server.
    Without X-windows you cannot start the Oracle Universal Installer.
    Maybe there is a command line installation, I have never used this.
    I hope this helps.
    Regards,
    Emile

  • How to use Ajax Web method in v4.master page to pass value to server side from JavaScript?

    Hi,
    I am customizing my v4.master page. Just adding jquery "Multiselect" dropdown .
    I want to pass selected value to code behind to perform some database activities.
    Here no code behind for me. Just i have added "Server side script" as a code behind.
    How to pass the value?
    Anyone give me the idea on it.
    Thanks & Regards
    Poomani Sankaran

    try using asp.net variables as per below links:
    http://sharepoint.stackexchange.com/questions/88777/how-to-use-a-variable-in-the-masterpage
    http://sharepoint.stackexchange.com/questions/80074/how-can-i-use-the-current-language-as-a-variable-in-my-masterpage
    https://msdn.microsoft.com/en-us/library/ms476046%28v=office.12%29.aspx
    http://www.dotnetfunda.com/articles/show/1507/how-to-access-master-page-variableproperty-from-the-content-page
    Please mark answer as correct if it is correct else vote for it if you find it useful Happy SharePointing

  • How to read a server side file in Applet?

    When I used ZipFile like this,
    ZipFile zf = new ZipFile("http://xxx.com/res.jar");
    It throwed exception about access denied, File pemission...
    How to read a server side file in Applet?

    You generally can't tell with Stream how many bytes are going to be available. You could download the whole thing into a ByteBuffer, for example, and process it from there.
    Or you can try opening an http connection explicitly (using URL and casting the connection to HttpURLConnection and see if there's a "Content-length" header.

  • How to make html file on server side from the data entered in text area

    Hi!
    I want to know how to make .html file on server side. Like if i enter the data in text area ( or like we normaly see when we write mail that editor) and we can use html tages in it and when user submit form all the data in that field will be saved on server side as an html formate. Is it possible to do so??? or any ruff idea how to design it???

    Erm ...
    Whats the problem with that?!
    Ok, here the code ...
    String myparameter = request.getParameter("paramname");
    String htmltemplate = "<html>\n"
                         +"<head><title>demo</title></head>\n";
                         +"<body>@parametertag@</body>\n";
                         +"<html>";
    String htmlpage = htmltemplate.replaceAll("@parametertag@",myparameter);
    File yourHTMLfile = new File("wheredoyouwannagotoday.html");
    FileOutputStream fos = new FileOutputStream(yourHTMLfile);
    fos.write(htmlpage.getBytes());
    fos.close();You're done.
    Happy Coding! :-) &copy;

  • How to implement server side methods in client side player from main.asc?

    Hi,
    I am developing video player using RTMP NetConnection and NetStream object but it is giving me below Error. Can you please tell me how can I handle this. I have main.asc file form FMS server side but I don't know how to use it. 
    Async Error found = <br>Error #2095: flash.net.NetConnection was unable to invoke callback setUserID.
    Async Error found = <br>Error #2095: flash.net.NetConnection was unable to invoke callback syncChat.
    Async Error found = <br>Error #2095: flash.net.NetConnection was unable to invoke callback playingNotComplete.
    Async Error found = <br>Error #2095: flash.net.NetConnection was unable to invoke callback nowPlaying.
    Can anyone please help me ot solve this issue?
    Best regards,
    Sunil kumar

    javascript are run on the client side.. but i think what you actually mean is getting some validation to your database without submitting the form?. yes it doesn't consumes time and memory of server.. why not use ajax so you can only submit a little request.. rather than submitting the whole page..

Maybe you are looking for

  • TS1591 My work iMac doesn't recognize my iPhone 4s.

    My iPhone 4s works perfectly with my home iMac and but recently my iMac at work has stopped recognizing it. It doesn't show up in iPhoto, iTunes, nothing. Doesn't draw a charge when plugged in to my work computer, either. It was working fine up to th

  • PDF files not opening

    Hello, I am not able to open up PDF docs, which is new, it was fine before. When I try to open a doc I get a "Sign in required" message. When I click on this, it says that "either your computer is offline or the clock on your computer is set incorrec

  • Question about connectivity of bluetooth keyboard ...

    Hello All, I wanted to ask a few things regarding the bluetooth keyboard's connectivity with nokia 5320 that will i be only limited to write through the keyboard in the sms etc ? or while browsing through my mobile or using ebuddy on my cellphone,i'l

  • Mac users! Can I get a wireless range expander that isn't windows based?

    I use Fios internet through my Actiontec router and my son is playing Xbox 360 live constantly...he is complaining that the internet signal is cutting out (his room is upstairs). If I don't want to run a cable upstairs, what are some of my internet e

  • How to transfer an ibook purchase to my wifes iPad

    how to send a purchased ibook from my ipad to my wifes ipad?