Web service login operation that will return a session id.

posted Today 9:42:22 AM private message
Quote
Hi,
I am very new to web services I just started on this technology a couple of days ago. My manager requires me to create a web service and expose the login(user, password) and logout(sessionid) methods. The login must return session id when user and password authentication is successful.
I've been circling around the internet for a couple days already looking for a tutorial on how to implement this methods and I'm now frustrated.
I would appreciate it very much if someone can provide a link to a tutorial that has similar functionality with my web service.
Thanks.
Regards,
winllen

posted Today 9:42:22 AM private message
Quote
Hi,
I am very new to web services I just started on this technology a couple of days ago. My manager requires me to create a web service and expose the login(user, password) and logout(sessionid) methods. The login must return session id when user and password authentication is successful.
I've been circling around the internet for a couple days already looking for a tutorial on how to implement this methods and I'm now frustrated.
I would appreciate it very much if someone can provide a link to a tutorial that has similar functionality with my web service.
Thanks.
Regards,
winllen

Similar Messages

  • All operations that will force quiescence in a workflow

    I have the following list of operations that will force quiescence ...
    1) Timed Event actions
    2) Set Due Date actions
    3) Assign Task... actions
    4) Send XML to Client actions
    5) Event nodes
    6) Done nodes
    Is there anything that I am missing?
    Also if someone can shed some light on the significance of the "Post
    External XML Event" viz-a-viz quiescence and transaction boundries. I am
    specifically interested in finding out if what happend when the transaction
    mode for the "Post External XML Event" is set to "send immediately"... Will
    this cause a transaction to end for the sake?
    Regards,
    Raoon Kundi

    Raoon Kundi,
    You can specify whether you want the message to be sent immediately, or when the
    current transaction containing the Post XML Event action commits. Sending the
    message immediately sends the message whether or not the transaction completes.
    Sending the message on commit ensures that the message is sent only if the transaction
    completes successfully and a commit is issued. If the transaction is unsuccessful
    and is rolled back, the message is not sent. The default is when the transaction
    commits. For more information on workflow transaction boundaries, see Understanding
    the BPM Transaction Model in Programming BPM Client Applications.
    Advantage of Post Immediate(immediate)
     Performance improvements in one-way asynchronous requests where an event
    may be fired before transaction commits.
    Caveats with Post Immediate
     Duplicate Messages: Messages may be redelivered, if request side workflow
    transaction was rolled-back and retried.
     Wrong Address in Addressed Response Message: A request is originated
    from uncommitted workflow running in a live transactional context, and the transaction
    is later rolled-back. In this case, workflow instance will be removed, as it was
    never committed, and a response for such request will not find the addressed instance
    to be notified.
     No-Instance-Found-Race-Condition: A request is originated from uncommitted
    workflow running in a live transactional context, and response comes back before
    transaction is committed. In this case, response can’t find uncommitted workflow
    instance, and retries for a configurable of times after sleeping for configured
    retry interval between all retries. This will reduce the window for race condition
    significantly. Improper tuning may still show the problem more often. Tuning can
    guarantee robustness only when retry times*retry interval is more than transaction
    timeout.
    Advantages of Post Commit(when transaction commits)
     No-Instance-Found-Race-Condition is a remote possibility. Cause for all
    occurrences of this race condition in “Post Commit” are outside scope of WLI (ORACLE,
    for example, sometimes has shown delays between transaction commit, and row being
    visible to other transactions).
     No Duplicate Messages
     Wrong Address not possible.
    Caveats with Post Commit
     May add a new resource to already running transaction (slowing down 2phase
    commit processing).
     Delay in posting the XML event message (only sent when transaction commits).
    Which Pattern warrants which delivery mode?
     One-Way Asynchronous (fire and forget)
    Ideal for Post-Immediate, but must deal with redelivery issues.
     Two-way asynchronous
    Ideal for Post-Commit, for the reasons mentioned above (Post-Immediate may see
    “No-instance-found race condition”, “Message redelivery” or “wrong address in
    response” problems).
     Two-way synchronous
    Ideal for Post-Commit, for the reasons mentioned above (Post-Immediate may see
    “No-instance-found race condition”, “Message redelivery” or “wrong address in
    response” problems).
    Hope
    "Raoon Kundi" <[email protected]> wrote:
    I have the following list of operations that will force quiescence ...
    1) Timed Event actions
    2) Set Due Date actions
    3) Assign Task... actions
    4) Send XML to Client actions
    5) Event nodes
    6) Done nodes
    Is there anything that I am missing?
    Also if someone can shed some light on the significance of the "Post
    External XML Event" viz-a-viz quiescence and transaction boundries.
    I am
    specifically interested in finding out if what happend when the transaction
    mode for the "Post External XML Event" is set to "send immediately"...
    Will
    this cause a transaction to end for the sake?
    Regards,
    Raoon Kundi

  • Function module that will return week  details

    Anyone know Sap FM that will return Week  details(as below)for a given start and end dates (similar to the function module HR_99S_INTERVAL_BETWEEN_DATES which  returns details for a month) independent of factory calendar
    I am expecting
    Inputs
    Start Date  - 01/01/2005
    End Date   -  05/05/2006
    outputs
    WK YEAR BEGDA      ENDDA      
    02 2005 01/03/2005 01/09/2005 
    03 2005 01/10/2005 01/16/2005 
    04 2005 01/01/2005 01/23/2005
    Thank, Bill

    Hi Bill,
    FM is <b>GET_WEEK_INFO_BASED_ON_DATE</b>
    Here's a test-program for your requirement:
    REPORT zforum09 LINE-SIZE 255.
    PARAMETERS:fdate  LIKE sy-datum DEFAULT '20050103',
               tdate  LIKE sy-datum DEFAULT '20060505'.
    DATA : BEGIN OF itab OCCURS 0,
           week LIKE scal-week,
           from LIKE sy-datum,
           to LIKE sy-datum,
           END OF itab,
           next LIKE sy-datum.
    next = fdate.
    WHILE tdate > itab-to.
      CALL FUNCTION 'GET_WEEK_INFO_BASED_ON_DATE'
           EXPORTING
                date   = next
           IMPORTING
                week   = itab-week
                monday = itab-from
                sunday = itab-to.
      next = itab-from + 7.
      APPEND itab.
    ENDWHILE.
    LOOP AT itab.
      WRITE:/ itab-week+4(2),
              itab-week(4),
              itab-from,
              itab-to.
    ENDLOOP.
    Regards Andreas

  • Need help writing a MySQL query that will return only records with matching counter-parts

    Since I don't know how to explain this easily, I'm using the
    table below as an example.
    I want to create a MySQL query that will return only records
    that have matching counter-parts where 'col1' = 'ABC'.
    Notice the 'ABC / GHI' record does not have a
    counter-matching 'GHI / ABC' record. This record should not be
    returned because there is no matching counter-part. With this
    table, the 'ABC / GHI' record should be the only one returned in
    the query.
    How can I create a query that will do this?
    id | col1 | col2
    1 | ABC | DEF
    2 | DEF | ABC
    3 | ABC | GHI
    4 | DEF | GHI
    5 | GHI | DEF
    *Please let me know if you have no idea what I'm trying to
    explain.

    AngryCloud wrote:
    > Since I don't know how to explain this easily, I'm using
    the table below as an
    > example.
    >
    > I want to create a MySQL query that will return only
    records that have
    > matching counter-parts where 'col1' = 'ABC'.
    >
    > Notice the 'ABC / GHI' record does not have a
    counter-matching 'GHI / ABC'
    > record. This record should not be returned because there
    is no matching
    > counter-part. With this table, the 'ABC / GHI' record
    should be the only one
    > returned in the query.
    >
    > How can I create a query that will do this?
    >
    >
    > id | col1 | col2
    > --------------------
    > 1 | ABC | DEF
    > 2 | DEF | ABC
    > 3 | ABC | GHI
    > 4 | DEF | GHI
    > 5 | GHI | DEF
    >
    >
    > *Please let me know if you have no idea what I'm trying
    to explain.
    >
    Please be more clear. You say that 'ABC / GHI' should not be
    returned,
    and then you say that 'ABC / GHI' should be the only one
    returned. Can't
    have both...

  • Please Help regard function that will return values of each JComboBox items

    I'd like to create a function that will return values of each item on the JComboBox at a time when
    I click on each item of a comboBox. I had this following codes, but didn't work.
    Please help me !!!Please correct it... thanks a million
    String wp;
    String text;
    String A[] = {"WARNIGNS","CAUTIONS","NOTES"};
    JComboBox ABC = new JComboBox();
    for (int i=0;i<A.length;i++) {
    ABC.addItem (A);
    text = Get_It(); //assigns each value of JComboBox's item to variable text when clicks at each item
    //of a comboBOx
    private String Get_It(){
    ABC.addActionListener(new ActionListener (){
    public void actionPerformed(ActionEvent e){
    wp = (String)CBweapon.getSelectedItem() ;
    return wp;

    import javax.swing.*;
    import java.awt.event.*;
    import java.awt.*;
    public class AlertFrame extends JFrame {
    String s_alert[] ={"WARNIGNS","CAUTIONS","NOTES"};
    JComboBox CBweapon;
    String wpText;
    public AlertFrame() {
    super("Alerts");
    Container contentPane = getContentPane();
    contentPane.setLayout(null);
    setSize(600,600);
    CBweapon = new JComboBox();
    for (int i=0;i<s_weapon.length;i++) {
    CBweapon.addItem (s_weapon);
    contentPane.add(CBweapon);
    CBweapon.setActionCommand("");
    //set position for components
    CBweapon.setBounds(370 + insets.left,295+ insets.top, 150,30);
    System.out.println(getit()); //calling getit() function
    //this function will be return a String of JcomboBOx value if click on each item of combobox
    private String getit(){
    CBweapon.addActionListener( new ActionListener (){
    public void actionPerformed(ActionEvent e){
    wpText = (String)CBweapon.getSelectedItem() ;
    return wpText;
    public static void main(String args[]) {
    AlertFrame af = new AlertFrame();
    af.addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e) {
    System.exit(0);
    **I have no errors on compile or run, but it didn't return a string value to System.out.println(getit());
    It maybe because of the "void" of public void actionPerformed(ActionEvent e){
    wpText = (String)CBweapon.getSelectedItem() ;
    Please help me

  • OTL I am trying to wright a SQL query that will return the date the timesheet was submitted and date/time it was approved, can anyone guide me on this?

    Hi
    I am trying to wright a SQL query that will return the date the timesheet was submitted and date/time it was approved, can anyone guide me on this?
    I basically need person name who submitted, date - time it was submitted for approval, then the person who approved it and the date - time that it was approved
    Thanks
    Ruby

    Ruby,
    you can start with HXC_TIMECARD_SUMMARY table for submitter detail. But for approver details, i think you need WF tables to get the data for item type HXCEMP.

  • How to call a procdure that will return me list of values(JSF,ADF BC)

    hi all,
    any one can help me how to call a procedure that will return me list of value with using adf and jsf

    I did this with a LoginModule that returned a list of user roles. Below is the Java call
    stmt = conn.prepareCall(authquery);
            stmt.registerOutParameter(1, OracleTypes.CURSOR);
            stmt.setString(2,username);
            stmt.setString(3,new String(password));
            // realm is null if not set
            stmt.setString(4,_application_realm);
            stmt.execute();
            rolesResultSet = (ResultSet)stmt.getObject(1); 
            stmt.close();authquery is the name of a procedure that returned a ref Cursor
    CREATE OR REPLACE PACKAGE "DBPROCLM" IS
      TYPE principal_ref IS REF CURSOR;
      function get_user_authentication(p_username in varchar2, p_password in varchar2, p_realm varchar2) return principal_ref;
    END;
    CREATE OR REPLACE PACKAGE BODY "DBPROCLM" IS
      FUNCTION get_user_authentication (p_username in varchar2, p_password in varchar2, p_realm varchar2)
      RETURN principal_ref
      AS
        var_username varchar2(100);
        var_userid number(10);
        var_password varchar2(100);
        role_cursor principal_ref;
        FAILED_AUTHENTICATION exception;
      BEGIN
        select userid, username, password into var_userid, var_username, var_password from sec_users where username = p_username;
        if (var_password = p_password) then
          begin
            if (p_realm is null) then
              open role_cursor for
                select rolename from user_roles_view where userid = var_userid;
            else
              open role_cursor for
                select rolename from user_roles_view where userid = var_userid and realm=p_realm;
            end if; -- p_realm check
          end;
          -- if password doesn't match, raise Excpetion for LM to
          -- abort the authentication process
        else raise FAILED_AUTHENTICATION;
        end if;
        RETURN role_cursor;
      END get_user_authentication;
    END;You only ned to expose the call to teh procedure in a method (e.g. on ADF BC Application Module) and create a method binding for it.
    Frank

  • Does anyone have a simple program that will return the size of a file

    Does anyone have a simple program that will return the size of a file?

    I quite hate it when I receive the incorrect amount of yoctocandela per metre squared. Swarthy people
    can't properly convert poundal feet to barleycorn; throws off the whole conversion! Aaah, you get what
    you paid for.I recognize those figures; you've got your outsourced file sizes from Zanzibar; admit it! I always apply
    the scientific approach when I've got file sizes back from Zanzibar: I simply divide those numbers by
    pi (very scientific) and drop the eleven (ueber scientific, because 11 is prime even when looked upon
    as a binary number) least significant bits. And remember: never compare two floating point numbers
    for equality. (<--- that's a free tip)
    Jos ;-)

  • Consume a web service from JME that returns an image

    Hi,
    I have a web service that returns an image in base64binary format, but when i use the wscompile tool to generate the stub i get an error becuase seems that JME does not support base64binary -> byte[] convert. My question is: How can i return an image from web service to consume from JME?.
    Thanks in advance.
    Bruno

    I tried this and works fine, but i see this like a workaround instead of a solution. Do you know why JME doesn't support this type of data? I think that is weird because i don't see a limitation on JME for use it.
    Thanks for repsonse.

  • Web Services  from ABAP function modules return values- leading zeros

    I am using several web services from SAP CRM (5.0) that were created from Function modules ( I am assuming that that they are in ABAP).
    I can call the web services fine and they work as expected, but I am seeing a lot of leading zeros in the return values of fields in tables from the Web service.
    The ABAP er’s are telling me that they cannot see the leading zero’s.
    So my question is where these are appended to the values in the whole process. When I execute the Function Module in SAP CRM from transaction SE37 I can see the leading zeros. So I think that this is something that has to be handled by the ABAP er’s and not in the client consuming the web service.
    Are the functions in SAP CRM that can remove leading zeros for fields in a table (that is an export parameter?)
    Jawahar

    Hello Jawahar
    If you run your (RFC-enabled) function modules using the SAP-GUI (i.e. in dialog) then the GUI automatically replaces leading zero when the function module returns any data. However, calling the same function module remotely you will always see these leading zeros.
    These so-called conversion exits are defined as attribute of domains in the ABAP dictionary. If the function module used for the WebService is a standard fm then you have little chances to get rid of the leading zero. Perhaps the WebService has some attribute to suppress conversion exits or activate them when retrieving the data.
    Regards, 
       Uwe

  • ASMX web service and The remote server returned an error: (500) Internal Server Error issue

    i have developed a very small web service and which is hosted along with our web site. our webservice url is
    http://www.bba-reman.com/Search/SearchDataIndex.asmx
    web service code
    namespace WebSearchIndex
    #region SearchDataIndex
    /// <summary>
    /// SearchDataIndex is web service which will call function exist in another library for part data indexing
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line.
    // [System.Web.Script.Services.ScriptService]
    public class SearchDataIndex : System.Web.Services.WebService
    //public AuthHeader ServiceAuth=null;
    public class AuthHeader : SoapHeader
    public string Username;
    public string Password;
    #region StartIndex
    /// <summary>
    /// this function will invoke CreateIndex function of SiteSearch module to reindex the data
    /// </summary>
    [WebMethod]
    public string StartIndex(AuthHeader auth)
    string strRetVal = "";
    if (auth.Username == "Admin" && auth.Password == "Admin")
    strRetVal = SiteSearch.CreateIndex(false);
    else
    SoapException se = new SoapException("Failed : Invalid credentials",
    SoapException.ClientFaultCode,Context.Request.Url.AbsoluteUri,new Exception("Invalid credentials"));
    throw se;
    return strRetVal;
    #endregion
    #endregion
    when i was calling that web service from my win apps using
    HttpWebRequest
    class then getting error The remote server returned an error: (500) Internal Server Error
    here is code of my win apps from where i am calling web service
    string strXml = "";
    strXml = "<s:Envelope xmlns:s='http://schemas.xmlsoap.org/soap/envelope/'><s:Body><StartIndex xmlns='http://tempuri.org/' xmlns:i='http://www.w3.org/2001/XMLSchema-instance'><auth><Username>joy</Username><Password>joy</Password></auth></StartIndex></s:Body></s:Envelope>";
    string url = "http://www.bba-reman.com/Search/SearchDataIndex.asmx";
    HttpWebRequest req = (HttpWebRequest)WebRequest.Create(url);
    req.Method = "POST";
    req.ContentType = "text/xml";
    req.KeepAlive = false;
    req.ContentLength = strXml.Length;
    StreamWriter streamOut = new StreamWriter(req.GetRequestStream(), System.Text.Encoding.ASCII);
    streamOut.Write(strXml);
    streamOut.Close();
    StreamReader streamIn = new StreamReader(req.GetResponse().GetResponseStream());
    string strResponse = streamIn.ReadToEnd();
    streamIn.Close();
    i am just not being able to understand when this line execute
    StreamReader streamIn = new StreamReader(req.GetResponse().GetResponseStream());
    then getting the error The remote server returned an error: (500) Internal Server Error
    not being able to understand where i made the mistake. mistake is in the code of web service end or in calling code?
    help me to fix this issue. thanks

    Hi Mou,
    I just tried your win app code about calling web service, but failed. I got the 500 error after I called your service:
    The error message I quoted from Fiddler:
    <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><soap:Fault><faultcode>soap:Client</faultcode><faultstring>System.Web.Services.Protocols.SoapException: Failed : Invalid credentials ---&gt; System.Exception: Invalid credentials
    --- End of inner exception stack trace ---
    at BBAReman.WebSearchIndex.SearchDataIndex.StartIndex(AuthHeader auth)</faultstring><faultactor>http://www.bba-reman.com/Search/SearchDataIndex.asmx</faultactor><detail /></soap:Fault></soap:Body></soap:Envelope>
    I am not totally sure that error occurred by the authentication. But I suggest you can try to add this service into your project using this method below:
    1.right click the Reference and select Add Service Reference
    2.input your service link and click "Go"
    And you can use this service as the following:
    private async void callService()
    ServiceReference1.SearchDataIndexSoapClient client =new ServiceReference1.SearchDataIndexSoapClient();
    var Str= await client.StartIndexAsync(new ServiceReference1.AuthHeader { Username = "Admin", Password = "Admin" });
    Please try it.
    Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Unable to create web service from wsdl that contains xsd as import

    I have written a WSDL and tried to create the web services by weblogic workshop.
    Prior to that I have created the war file and able to deploy them properly. Also able to access any wsdl by hitting the server.
    But when I am trying to create the web services by weblogic workshop its throwing error as "URL is not well formed" for those XSDs which I have imported in my WSDL. I have kept all my XSDs and WSDLs in the same folder.
    The WSDL has given below :
    <?xml version="1.0" encoding="UTF-8"?>
    <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:intf="http://soapheader.ibm.com" xmlns:impl="http://soapheader.ibm.com" xmlns:MessageContext="MessageContext" xmlns:AlertUpdateRequest="AlertUpdateRequest" xmlns:AlertFetchResponse="AlertFetchResponse" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://soapheader.ibm.com">
         <import namespace="MessageContext" location="http://localhost:7001/WebApplicationWeb/gss/xsd/MessageContext.xsd"/>
         <import namespace="AlertUpdateRequest" location="http://localhost:7001/WebApplicationWeb/gss/xsd/AlertUpdateRequest.xsd"/>
         <import namespace="AlertFetchResponse" location="http://localhost:7001/WebApplicationWeb/gss/xsd/AlertFetchResponse.xsd"/>
         <wsdl:types>
              <schema elementFormDefault="qualified" targetNamespace="http://ggg.com" xmlns="http://www.w3.org/2001/XMLSchema">
              </schema>
         </wsdl:types>
         <wsdl:message name="alertUpdateRequest">
              <wsdl:part name="parameters" element="AlertUpdateRequest:AlertUpdateRequest"/>
              <wsdl:part name="request_header" element="MessageContext:MessageContext"/>
         </wsdl:message>
         <wsdl:message name="alertUpdateResponse">
              <wsdl:part name="parameters" element="AlertUpdateRequest:AlertUpdateRequest"/>
              <wsdl:part name="request_header" element="MessageContext:MessageContext"/>
         </wsdl:message>
         <wsdl:message name="alertFetchRequest">
              <wsdl:part name="parameters" element="AlertFetchResponse:AlertFetchResponse"/>
              <wsdl:part name="request_header" element="MessageContext:MessageContext"/>
         </wsdl:message>
         <wsdl:message name="alertFetchResponse">
              <wsdl:part name="parameters" element="AlertFetchResponse:AlertFetchResponse"/>
              <wsdl:part name="request_header" element="MessageContext:MessageContext"/>
         </wsdl:message>
         <wsdl:portType name="AlertUpdateService">
              <wsdl:operation name="getAlertUpdate">
                   <wsdl:input name="alertUpdateRequest" message="intf:alertUpdateRequest"/>
                   <wsdl:output name="alertUpdateResponse" message="intf:alertUpdateResponse"/>
              </wsdl:operation>
         </wsdl:portType>
         <wsdl:portType name="AlertFetchService">
              <wsdl:operation name="getAlert">
                   <wsdl:input name="alertUpdateRequest" message="intf:alertFetchRequest"/>
                   <wsdl:output name="alertUpdateResponse" message="intf:alertFetchResponse"/>
              </wsdl:operation>
         </wsdl:portType>
         <wsdl:binding name="AlertUpdateServiceSoapBinding" type="intf:AlertUpdateService">
              <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
              <wsdl:operation name="getAlertUpdate">
                   <wsdlsoap:operation/>
                   <wsdl:input>
                        <wsdlsoap:header message="intf:alertUpdateRequest" part="request_header" use="literal"/>
                        <wsdlsoap:body parts="parameters" use="literal"/>
                   </wsdl:input>
                   <wsdl:output>
                        <wsdlsoap:header message="intf:alertUpdateResponse" part="request_header" use="literal"/>
                        <wsdlsoap:body parts="parameters" use="literal"/>
                   </wsdl:output>
              </wsdl:operation>
         </wsdl:binding>
         <wsdl:binding name="AlertFetchServiceSoapBinding" type="intf:AlertFetchService">
              <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
              <wsdl:operation name="getAlert">
                   <wsdlsoap:operation/>
                   <wsdl:input>
                        <wsdlsoap:header message="intf:alertFetchRequest" part="request_header" use="literal"/>
                        <wsdlsoap:body parts="parameters" use="literal"/>
                   </wsdl:input>
                   <wsdl:output>
                        <wsdlsoap:header message="intf:alertFetchResponse" part="request_header" use="literal"/>
                        <wsdlsoap:body parts="parameters" use="literal"/>
                   </wsdl:output>
              </wsdl:operation>
         </wsdl:binding>
         <wsdl:service name="AlertUpdateServiceService">
              <wsdl:port name="AlertUpdateService" binding="intf:AlertUpdateServiceSoapBinding">
                   <wsdlsoap:address location="http://localhost:9080/SOAPHeaderWeb/services/AlertUpdateService"/>
              </wsdl:port>
         </wsdl:service>
         <wsdl:service name="AlertFetchServiceService">
              <wsdl:port name="AlertFetchService" binding="intf:AlertFetchServiceSoapBinding">
                   <wsdlsoap:address location="http://localhost:9080/SOAPHeaderWeb/services/AlertFetchService"/>
              </wsdl:port>
         </wsdl:service>
    </wsdl:definitions>

    Hi,
    From your description I am assuming that you are using JAX-WS, if not get back to me as I might have another bug to look at.
    The problem is that the annotation @Oneway needs to be added to the methods in java files for this to work correctly. You can either do this manually or use the PI in the code editor. I have raised bug 6266513 to track the fact this annotation is not written out properly. I have logged bug 6266556 to track the nillable=true and extranious elements you will see when you do add @Oneway.
    Thanks for the quality of your bug report, and we would of course welcome any other feedback good or bad you would like to give us.
    Gerard Davison
    JDeveloper Web Services Team

  • Web services login from python

    As described in a previous post, I'm trying to develop a thin client in python on a Raspberry PI that gets data from a Web Services program. I wrote a simple "Hello World" vi that requires authorization. If I access the URL from IE, Safari, etc, it gives me the Silverlight login screen, and then it works. If I write a simple client using the HTTP Get vi, it works. If I access the URL from Python:
    r = requests.get("http://127.0.0.1:8001/DISE/hello"
    auth=('username', 'password'))
     I get 404. I've Read The Fine Manual. Suggestions?

    It seems to me that the responders to the OP do not, in fact, understand the issue at play here.
    NI has two pieces of security for the web services: digital signing and authentication.  The digitial signing is documented and the OP knows how to do this in python.  The authentication is not documented anywhere I know of.  The fact that it works in the browser does not mean anything.  What happens with a browser request for a service which requires authentication is that the response is a new page with a Silverlight app to perform the authentication with the NI-auth service.   The question the OP has is what goes on inside that Silverlight app?  That was written by NI, not the browser developers, so it could be answered by the folks at NI and this is as good a place as any to request that info.  The VIs referenced by the OP recreate the same functionality, presumably by calling into a CLFN.
    In the meantime, here is some information that may or may not be of use.  I used to use web services now and then, but issues like this (and the use of silverlight) drove me away eventually.
    The NI-auth server apparently uses the SRP protocol to validate username/password combinations.  You send a GET request to hostort/login?username=user.  The response has a header which is something like 'X-NI-AUTH-PARAMS' with the server parameters for the SRP protocol in base-64 encoding.  Then you send a POST request back to the login uri with the client parameters inside the body and the content type is 'application/x-www-form-urlencoded'  If all goes well the final response from the server has a cookie which you can use in further requests.
    You will have to play a bit to determine some details like which hash function is used inside the SRP protocol.  The beauty of python is that hashlib, srp, and request modules are already there for you.
    If you get it sorted out, let me know.  I figured out enough to do some spoofing, I am curious to fill in the missing gaps.  I'll try to dig into my old code some more for details.

  • ANM web services - Get operational state of an SfRserver

    Is there any way to obtain the operational state of a serverfarm realserver via the ANM (4.1) web services API?  The SfRserver data type includes the admin state (i.e. IS, ISS, or OOS) but I dont see a field for the operational state.  The ANM web GUI displays both an admin state and an operational state for a serverfarm realserver -- with the operational state indicating the latest probe status for the real server (e.g. "Up" or "Probe Failed") and I would like to obtain the same information but using the ANM web services interface.

    Hello Andrew,
    The API for ANM is purely for configuration, it does not return anything other than configuration.  The state of "inservice" or "out of service" relates to the command under the rserver:
    rserver host Server05
    ip address 172.16.35.14
    inservice <======= **Here**
    The probe states don't relate to the configuration, so the API doesn't have a plugin to that information.
    However - You could use SNMP seperately to gathter that probe state directly from the ACE and intigrate that into the page you are executing the API for.
    Regards,
    Chris Higgins

  • Web-Service generator : operation arguments

    Hello.
    I've built a very simple web service to test the JSR 172 API. The server side is built using AXIS. The service is exposed in document/literal style as required by the JSR.
    An operation of the service takes as argument a simple structure bean with a string and an integer. The wsdl declares the corresponding complex type, and describes the operation with an argument of this type.
    Now, the WTK stub generator generates as expected the stub and the bean classes, but the operation is translated with two arguments instead of the original two members structure. The MIDlet code can obviously call the service passing the two arguments. At runtime, it all works, since both the wsdl and consequent soap body don't make difference about the structure representation.
    But what should occur with a more complex structure with many members ? I suppose it should work the same, but not with the preferred interface and usage...
    Is it a legal behaviour, according to the JSR or WS-I specifications. Does the WTK only support this 'unwrapped' mode, or is there any way to change it ?
    Thanks for your help.
    Ephemeris Lappis

    Is this for sure? I am having the same problem, and it seems odd that I am going to have to tell all of the people using my services what the parameters mean instead of them just being able to read the WSDL. Is there any way at all to rename the parameters?

Maybe you are looking for

  • Not to able to open the OEM on browser

    HI, I am using oracle 10.2.0.1 on OEL 5. I had confugred emca successfully, but when i try to run OEM, internet explorer throw the message "page cann;t be found" please suggest me for the same -bash-3.2$ emca -config dbcontrol db STARTED EMCA at Jun

  • SAPF124 (F.13) exit / BTE / BADI to over rule the account number.

    Hello experts, I have a requirement like while doing the automatic clearing of the open items (TCode F.13), the target account from table T030 should be overruled by a customer defined account finding based on the given tolerance goups. I just want t

  • Carbon and Cocoa Integration

    I have read the Cocoa-Carbon Integration Guide several times, but still have one unanswered question. The guide explains how to call Carbon Functions in a Cocoa Objective-C Class File. However, does this also apply to data types? I made the logical c

  • Problem with restoring an Image to Dell Optiplex 745

    Hello, i try to restore my image to my new Dell Optiplex 745 machines. I am using ZFD4.01IR7 with the boot-cd from zenimaging.info which uses the zfd7 imaging engine. I am able to restore the image but unfortunately my local (and only...) Administrat

  • Sub query not allowed

    hi I have a package create package pack1 procedure proc1(empid varchar2(10),ename varchar2(20),joindate date,empcat varchar2(20)) is begin declare cursor c1 is select..... begin case when joindate>=(select joindate from empdetails where eid=empid) db