Convert a web service which has userid/password hard coded......

Hi,
We have created a web service in our ECC 5.0 abap system. In SICF we hardcoded the userid/password, the web service works fine and can be called successfully to read the required data from SAP.
Now we wish to change the process so that the users calling the web service have to pass their userid/password, now things don't work!!
How do we change things around to the new format?
Options we are considering are as follows:
1) Change the function module so that it has import parameters of userid and password (don't think this will work!)
2) Somehow update the wsdl file so that it includes userid/password, is this possible?
3) SICF/wsconfig/wsadmin config, but don't know what to do though!!
Any ideas anyone?
Thanks.

> Now we wish to change the process so that the users calling the web service have to pass their userid/password
1. Do you want to have authorize access to webservice or,
2. do you want to user supply user/password as a parameter within service.
for 1st you don't have to do anything just goto SOAMANAGER transaction and select basic http authentication for service endpoint. Every user who want to access (even url of wsdl) need to supply user/password.
for 2nd option you can integrate user/password field in FM but you need to include code which check and confirm if they are valid credential.
Regards,
gourav

Similar Messages

  • Need UCM service which has  to return all the files in the Folder

    HI,
    I need a webservice which has to return all the images/text files in the folder. I ll pass folder name has a input parameter..once i got all the files i have to shown those images in the web page.
    Do we have any service with this requirement?? Or
    i have to use 'Seach' service ,Which has return all the files meta info ...with this info do i have to use GetFile service for displaying data??
    Any suggestions??
    Thanks

    Hi Jiri,
    I dont know abt folios..I ll go thru it now..
    When coming to the option a)
    When we are calling Search service it will return resultset which contains meta data(Filename,File Id,URL,etc.....) for list of files in the folder. Now what i do to display image is , using this URL i ll bulid image object using this URL and i ll display it on the webpage(This web page contains Silver light component to display these images.)
    I m assuming problem with this one is every time when i m building image i m hitting the the server to construct the image. Instead im trying to get the all the images in one shot when i pass folder name??
    I doubt myself wether my assumtion is correct or not...
    any suggestions plz..
    Thanks

  • Can universe connect to restful web service which is not soap based

    Can universe connect to restful webservice? I know it is allowed to connect to SOAP webservice. Currently is using WSDL1.1.
    How about restful web service which does not have any wsdl file?

    Hi,
    there is a chapter - Security Configuration at Message Level
    in XI config guide which specifies everything you need - this is what you need
    so I hope no further explanations are necessary
    Regards,
    Michal Krawczyk

  • How to provide a (web)service which delivers a process context?

    Hi folks,
    i have designed a process with Process Composer so far.
    Several tasks read and write data into the process context.
    What i want to do now is providing a (web)service which gets an process instance number as input and delivers the data from the corresponding process context as output.
    Maybe someone can explain me the steps that are needed to implement that?
    TIA
    Michael

    Hi Michael,
    In case you want to have an 'instant view' on the process data context that might be an option.
    Nevertheless I would not recommend doing so / be careful if there is no other possibility. Maybe it makes sense to define specific check points where data could be synchronized. You would benefit of a more clean process model and a reduced number of outgoing web service calls which in fact would also speed up process execution.
    I am somehow curious what you are planning to achieve. Could you elaborate on that?
    Best regards,
    Martin

  • Consuming an ASP web service which responds with complex data types...

    Here's my problem - I'm trying to consume a web service from a provider that uses complex data types.
    The starting part of the WSDL looks like this (I've not included the whole thing) - named have been changed to protect the innocent:
    <wsdl:definitions targetNamespace="http://domain_name">
    <wsdl:types>
    <s:schema elementFormDefault="qualified" targetNamespace="http://domain_name">
    <s:element name="Authentication">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="Username" type="s:string"/>
    <s:element minOccurs="0" maxOccurs="1" name="Password" type="s:string"/>
    <s:element minOccurs="0" maxOccurs="1" name="Token"/>
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element name="AuthenticateResponse">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="1" maxOccurs="1" name="AuthOK" type="s:int"/>
    <s:element minOccurs="0" maxOccurs="1" name="Token"/>
    </s:sequence>
    </s:complexType>
    </s:element>
    Since it's a complexType return, with a sequence, I'd expect an array or structure returned, but instead I just get the "AuthOK" value, and no way to get anything else.
    Here are the ways I've tried calling it:
    <cfscript>
        WS = createObject("webservice", "https://WSDL_URL");
        WS_ret = WS.Authentication(Username = "username", Password = "password", Token = "");
    </cfscript>
    <cfdump var="#WS_ret#" />
    <cfinvoke webservice="WSDL_URL" method="Authentication" returnVariable="WS_ret">
        <cfinvokeargument name="userID" value="7253320" />
        <cfinvokeargument name="password" value="ctpjxs3" />
        <cfinvokeargument name="SecurityToken" value="" />
    </cfinvoke>
    <cfdump var="#WS_ret#" />
    Any ideas how I can get the other variables in the sequence? I have other calls after this that have a much larger amount of variables, and as such I can't use it without being about to get more of the

    Thanks for the reply.
    If I CFDUMP the variable it returns just "1", no XML tags, nothing at all around the data - according to the web service providers they say that they are supplying the Token part as long as the first variable is "1" (a logical true if the authentication passed). If it is "0" then no Token is returned, that is why it's optional.
    As for the CFdocs issue, look here:
    http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=webservices_25.html
    The paragraph before it (about 2/3 down the page) states:
    In this example, the operation updateEmployeeInfo takes a complex type as input and returns a complex type as output. To handle the input parameter, you create a structure. To handle the returned value, you write it to a ColdFusion variable, as the following example shows:
    It even states that you call "updateEmployeeInfo", and nowhere mentions "echoStruct" as a method - it's seemingly been put in as a random method name, or a function call for something else. The WSDL above the example only mentions "updateEmployeeInfo" and "updateEmployeeInfoSoapOut", again not mentioning "echoStruct".
    I see this as an error in the docs as it's calling a non-existant entity in the WSDL, which should cause a run-time error.

  • Web Service: Response has null value and no exception is thrown

    Hi
    I have generated a Web Service Proxy in JDeveloper 11gR1 against a web service.
    My problem is that if I try to invoke the web service programmatically the only property on the response object has the null value. I can inspect the response in the Http Analyzer and it seems to understand and display content of the response properly.
    I have debugged the service proxy and discovered that the set-method on the property is never called. No exceptions are thrown, so it is very hard to see where to start solving this issue!
    Any ideas?

    When a webservice provides a response that is not valid according to its wsdl, a webservice proxy in 10g will give useful error messages such as "Missing element 'xxx'."
    In 11g the web service proxy simply sets non-valid values to null, quietly accepting the invalid response. Is this the intended behavior?
    Is it possible to enter a debug mode, where the webservice response is validated against the wsdl as in 10g?
    I appreciate any help on this question.
    Thanks!

  • Problem execution web service which display a table

    Hi everybody,
    I create a web dynpro appication which calls an Adaptative Web Service.
    The associated RFC ZTEST_ROD takes 2 inputs parameters and delivers a table like this:
         - Field Import: MATNR type MATNR     WERKS type WERKS_D
         - Field Tables: TABLE_DEST like ZSTRUCT_ARTICLE
    When i import the Webservice in WebDynpro, i have the following model binding:
    Context:
      Request_ZTEST_ROD
         Response
              ZTEST_ROD_Response
                   TABLE_DEST
                        Item
                             LABST
                             LGORT
                             MAKTG
         ZTEST_ROD
              MATNR
              WERKS
    For The inputView, i link the context binding:
         ZTEST_ROD->MATNR and WERKS
    For the ResultView, i link the context binding:
         Response->ZTEST_ROD_Response->TABLE_DEST->Item     LABST,LGORT and MAKTG     
    and i create a table associated to Response->ZTEST_ROD_Response->TABLE_DEST->Item
    At last, when i execute the application, i obtain the text:
    "Exception on execution of web service on destination 'DEFAULT_WS_EXECUTION_DEST'
    for operation 'ZTEST_ROD' in interface"
    With NO information in the log defaultTrace.trc
    Any suggestions about this problem ?
    rewarded points ...
    Thanks a lot!
    Rodolphe
    Edited by: Rodolphe LALOUX on Aug 21, 2008 9:34 AM
    Edited by: Rodolphe LALOUX on Aug 21, 2008 9:34 AM
    Edited by: Rodolphe LALOUX on Aug 21, 2008 9:34 AM

    Hi Rodolphe,
    I am not an expert in ABAP. Have a basic understanding of it. RFC have in itself, input parameters, output parameters
    and Table parameters. Now whatever is defined as Table parameter can be used both for input and output.So you can pass
    any number of records as input in this parameter and then RFC applies some business logic according to what input
    you have provided in input and table parameter and send back the output in output parameters and as set of records in
    same Table parameter.
    In general it is not necessary that you give any input in Table parameter BUT if RFC is exposed as web service then due to some
    reason it becomes necessary that whatever you have provided as Table parameter you should provide atleast one blank record
    for each of the Table Parameter.
    Hope I have not confused you.
    Regards,
    Gopal

  • Integrating Oracle EBS with web services which use SAML authentication

    Hi,
    I have a requirement to invoke web service using PL/SQL from a Custom Form of EBS.
    The web Service is configured to use SAML as authentication mechanism.
    Coming to question!
    1) How do I make my EBS integrate with a SAML provider preferably (Oracle Identity Federation) ?
    2) How do i get the SAML token in my PL/SQL and pass it on to the web service?
    Regards
    Dharmvir

    user1983888 wrote:
    Hi ,
    We have Oracle EBS R12 (12.1.2) with Oracle Database 11gR2 (11.2.0.2) Database on Linux env.
    We want to implement Oracle Database Vault 11gR2. We are referring to Note: Integrating Oracle E-Business Suite Release 12 with Oracle Database Vault 11gR2 [ID 1091083.1].
    Do we need to install Oracle Database 11gR2 (s/w only) again on the Oracle Database Server or can we use the existing Oracle EBS Database 11gR2 Home which is already on 11.2?
    Regards,
    ThiruAs mentioned in the doc "If your E-Business Suite R12 is already integrated with 11gR2 database, you just need to enable Database Vault 11gR2 & register it with the database as per Task 3", so no installation of ORACLE_HOME is required and you just need to "Register Oracle Database Vault".
    Thanks,
    Hussein

  • Converting C# Web Service to Java

    Greetings All.. I am now coding in Java (from c#) and have a question about web services..
    I am trying to figure out the below C# syntax in Java... Essentially, in all of my C# web services I would code classes for each method and would call them:
    Example web services file:
    [WebMethod(Description = "some description.")]
    public SellSomething sellSomething(Int32 transactionId, Int32 customerId, string assetId, int assetPrice)
    return new SellSomething(Int32 transactionId, Int32 customerId, string assetId, int assetPrice);
    The C# class file, SellSomething.cs, would look like this:
    public class SellSomething
    private Int32 _transactionID = 0;
    private Int32 _customerId = 0;
    private string _assetID = String.Empty;
    private int _assetPrice = 0;
    private int _resultCode = 0;
    public SellSomething()
    public SellSomething(Int32 transactionId, Int32 customerId, string assetId, int assetPrice)
    _transactionID = transactionID;
    _customerId = customerId;
    _assetID = assetID;
    _assetPrice = assetPrice;
    sellSomething();
    public int resultCode
    get
    return _resultCode;
    set
    _resultCode = value;
    public void sellSomething()
    // logic here
    _resultCode = SOME VALUE
    I code my web services in this way to better organize and simplify the code. any assistance is appreciated.
    thank you in advance.
    Chris

    That wont work. Just read a chunk of data, and check if it contains a null character (0x0). That would be the end of your C string. Now convert all the data before that to a java String with this constructor:
    String(byte[] bytes, int off, int len)It will by default assume UTF8 encoding if I'm correct.
    If you have larger chunks of text, you can use a ByteArrayOutputStream to buffer the complete string, and just read chunks of data into them until you've read the to the null character. and then do the same as above with the data in the ByteArrayOutputStream (toByteArray() ).

  • How to idtentify web services which are used in the web application?

    Hi All,
    We need to identify all the web services that a web application is using. We need them so that we can use test them. We are a group of independent testers. We have access to IIS server's on which the application is hosted. Is there any way we can identify
    them other than seeking out the DEV team to give out the list?
    Thanks in advance.
    Regards,
    Umesh

    Hello,
    You have posted your query in the Project / Project Server forum, is this related to Microsoft's Project / Project Server? If not, you are better off posting this in one of the development forums. If you are unsure where to post, try here first:
    https://social.technet.microsoft.com/Forums/en-US/home?forum=whatforum
    In the mean time, you could look at using something like Fiddler:
    http://www.telerik.com/fiddler
    Paul
    Paul Mather | Twitter |
    http://pwmather.wordpress.com | CPS

  • Web service which listens/replies over JMS Queues/Topics - HOW?

    Hi all,
    I need help - I have to implement the following Web Service for Weblogic 8.1:
    - Simple Helloworld operation
    - The Web service should listen on a Queue(or Topic) - say Queue1
    - The response of the service should be put in another queue - predefined - say Queue2(or taken as propetry of the request "ReplyTO")
    I looked for such an implementation in the available examples and forum topics, but without luck.
    Please, give an example or a guide how to implement such a service if possible!
    Thanks,
    Ivo

    Hi,
    I have a work around to this problem please see if it suits you or you might already be knowing it.
    Workaround is
    1. Create a Simple Webservice as needed which puts a message in a Queue.
    2. Create an MDB which listens to you Queue / Topic and call the created webserivce in the onMessage function of the MDB.
    Vivek

  • Convert my web service to processus Bpel graphically

    Hi,
    Can you suggest me an article or I can turn my web service to BPEL graphically, because I have complicated web of service and I am just starting out in BPEL.I use ORACLE BPEL MANAGER with JDEVELOPER.
    Best regards,

    I think you can use oracle web services manager for this. I can't speak from personal experience but from what I've heard I think this is the preferred approach for dealing with secured web services.

  • Can someone tell me how am I suppose to use my iPad if I have to pay as you go data service which has already cost me $75 for the first month of usage due to not enough GB's usage.

    AT&amp;T and Apple is going to cause people to look elsewhere in order to obtain services to operate their products which might not affect Apple all that much but AT&amp;T may suffer a little bit and apple needs to go ahead provide the means for various ways to connect their devices through AT&amp;T rather than forcing their customers to be locked in to paying an extreme amount of money for service.

    IF you're using more than 2GB per month, you have the wrong device for online service.  It's unclear as to how you are using the iPad.  If you're at home most of the time, you should be using wifi instead.  Much cheaper for extensive data streaming.  If you're instead out and about, knock off the video/audio streaming.
    If you go into System Preferences/Usage/Cellular Usage, it will show you exactly where you are.  I strongly suggest you "zero" out the counter at the start of your monthly data plan and then monitor it from time to time.

  • How to run a web service which is using https server

    hi all.
    i am tring to send an xml tag to an https server. but get this exception "http_communication_failure"
    in the method "http_client->receive" some say that i need an ssl sertificate but i dont know how to get .
    here is my code any suggestions will be very helpful.
    REPORT  ZEM_SOAPTEST1.
    DATA: rlength TYPE i,
            txlen TYPE string.
    DATA: http_client TYPE REF TO if_http_client.
    DATA: wf_string TYPE string .
    DATA:zstring TYPE string.
    data : tab like zstring occurs 10 with header line.
    CONCATENATE
    ' 0.
    ENDIF.

    Either Tomcat is down (check to see if you can access it with a browser) or wsdeploy is not authenticating properly in which case I think you can set user and password properties in build.properties.
    An alternative to wsdeploy is to drop the .war file in webapps and restart Tomcat for autmatic deployment.

  • My pc recently caught a virus, which has wiped my hard drive. I had itunes on it and would like to know if my music is stored on my computer or on the net? So if i download itunes onto another computer will i be able to get it or not?

    My PC recently got a virus and wiped the hard drive. I used itunes for my ipod. I would like to know if the music i had on itunes is stored on my computer or on the net? So in other words can i still access my itunes from a different computer?

    Your purchased music is availble for download again at no cost.  If you have iTunes match service, you can download your matched music.

Maybe you are looking for

  • ITunes 10 - No longer sync PDFs to iBooks on iPad

    Immediately following the upgrade to iTunes 10, I can no longer sync PDF's to my iPad (v3.2.2) for use with iBooks. Is anyone else having the same issue and even more importantly, has anyone resolved this?

  • DW CS6 install errors out

    log: *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=* Visit http://www.adobe.com/go/loganalyzer/ for more information *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=* *=*=*=*=*

  • Smart ?

    i want to be a new tv and a blu ray home theater.  my question...  do i need to buy a smart tv if the blue ray player is a smart device?

  • Copying Header level Billing Plan to Item Level Billing Plan

    Hi Gurus, I have the following Business Scenario: I am creating Sales Order with reference to contract. In the sales order item level detail, a check box(Copy Header level Billing Plan to item level Billing Plan) is checked. For my Business Scenario,

  • When does new user get new minutes from ATT

    I bought the iPhone a few weeks ago... on Feb 8. It is March 1st today. Shouldn't I be getting a fresh set of 450 minuets? I checked my minutes (clicked the "show my minutes" button in Settings-->Phone--> ATT Services) and it shows 332... which is ab