Consuming password authenticated web service in PeopleSoft

I have requirement where I have to do modification on PS delivered location setup page to validate the address entered by user against pitney bowes database using webservice provided by them for validation, I have been provided with WSDl ur l(http,SOAP protocol), I am very new to web services , After reading on various blogs I was able to do basic setup by using consume web service wizard , I have got services ,message, service operation and routing created by default while consuming,I have copied delivered WSDL_NODE node and used it while consuming , I wanted to know what changes do I need to do in node and advanced gateway properties file, do I have define this node any where in gateway properties file and how , also they have provided us an userID and Password ,I am not sure where to configure the credential , also what I have to provide as default user-id/external ID / password , what do we need to provide in WS-Security tab . I am able to ping the node with doing any changes in security but not able to send request message. It will be helpful if someone can guide me how to configure web services security while consuming web service. and other important things that I need to take care.

The information in this article about consuming a web service may be helpful:
http://www.peoplesoftwiki.com/consuming-a-web-service

Similar Messages

  • Is there a way to consume REST based pdf web service in PeopleSoft

    We have a requirement to consume an pdf REST based web service in PeopleSoft and display the pdf file on browser. I have configured the Service & Service Operation in PeopleSoft.
    I have also confirmed the request is making to target server. Also when using curl, confirm the target web service is working  and response seems to be binary bytes representing pdf file.
    How can I consume this response from PeopleSoft message object. Tried using contentstring() and trying to do %response.write
       &getrpt_RESP = %IntBroker.SyncRequest(&MSG);
       &strresponse = &getrpt_RESP.GetContentString();
       %response.write(strresponse );
    /* Open a file.pdf* - to do/
    /* Write the response from message to file - to do */
    /*Use view attachment to open the file on browser - to do*/
    But this returns nothing on browser.
    If I had to copy pdf file, I normally would use something like
       Local JavaObject &in = CreateJavaObject("java.io.FileInputStream", &SrcFullPath);
       Local JavaObject &out = CreateJavaObject("java.io.FileOutputStream", &filepath);
       Local JavaObject &buf = CreateJavaArray("byte[]", 1024);
       Local number &byteCount = &in.read(&buf);
       While &byteCount > 0
          &out.write(&buf, 0, &byteCount);
          &byteCount = &in.read(&buf);
       End-While;
    But I am failing to find a way to copy the bytes from message to a file?
    Any help is appreciated!

    Integration Broker supports MTOM. You can find an example here: Sending and Receiving Binary Data.
    The alternative is to use Java to make the HTTP request. You can use HttpClient, as Sasank mentioned, if you don't mind managing jar dependencies. The alternative is to use HttpUrlConnection directly. Not easy in PeopleCode, but possible. If you are on PeopleTools 8.53, then you can script it in JavaScript and run it on the server through the Rhino JavaScript script engine manager included with Java 7 and part of PeopleTools 8.53+. I find this MUCH easier because you don't have to deal with reflection.
    Once you get the binary file, the next task is sending it to the client in binary format. %Response.WriteBinary works great, but requires you to start with binary data. I am only aware of one way to read binary data in PeopleCode that is suitable for %Response.WriteBinary and that is to select the binary data out of the database and into an Any variable. I have not figured out how to convert Java binary data into something suitable for PeopleCode's %Response.WriteBinary.

  • Consuming an External Web Service using HTTPS and WS Security

    Hello everyone,
    I'm having a problem setting the security information in a SOAP header using a generated ABAP Client Proxy to consume an external web service that requires a User ID and Password in the Header section of the SOAP message.  I need to use HTTPS. I'm on a WAS 7.01 SP08 system so from my readings, SAP is supposed to be able to add the username and password into the header section of the message.  I can't seem to get SAP to add this information added to the header.
    Here are the steps that I have taken to set the security values.
    1) Created the client proxy from the WSDL in SE80.  Basic Authentication on the Configuration tab was turned on automatically.
           Note, Transport Security is set to None.  I cannot change it.
    2) Created an outbound set user name profile in transaction WSPROFILE with the appropriate username and password.
    3) Added the profile to the default port in transaction LPCONFIG as an outbound under the WS Security section of the screen.
    When I called the external Web Service, I got back the following error message:
    com.ibm.wsspi.wssecurity.SoapSecurityException: WSEC5509E: A security token whose type is [http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#UsernameToken] is required.
    So, after reading through this Forum, I saw that I needed to use the SOAMANAGER.  I set up a Proxy in the SOAMANAGER and manually created the Logical Port.  This was the only way I could figure out how to set the Authentication Settings in the Logical Port to "User ID / Password".  I then entered the User ID and Password.
    However, I am still getting the same error message.  I feel I am close but missing some small configuration to tell SAP to use WS Security with a Username token.
    I'm not sure what I'm doing wrong, so any help would be appreciated.
    Thanks,
    Stephen

    I had this error again so I thought I would post my solution:
    The issue is SAP needs to know the certificates being used by the web site being called.  These certificates are automatically installed in your browser but need to be manually installed in SAP.  This is what I did:
    How to find/install new certificates
    Make sure you run Internet Explorer as an Administrator so you can export the certificates
    Go to the web site that SAP is trying to call in Internet Explorer
    Double click on the lock in the address bar
    View certificates
    Find the certificates that are being used
    Tools --> Internet Options --> Content --> Certificates
    Click on the “Trusted Root Certification Authorities” tab
    Find the certificate identified in step iii
    Export as a CER certificate
    Click on the “Intermediate Certification Authorities” tab
    Find the certificate identified in step iii
    Export as a CER certificate
    Go to STRUST in SAP
    Import the Certificates in the “Anonymous” or “Standard” SSL client
    Save
    RESTART the ICM via t-code SMICM  <-- Critical!!!
    Test

  • Help: consuming an external web service with user name token

    Hello Together!
    I need to consume an external web service secured with WS-UserNameToken. The way, how did I do it:
    1. I generated a web service consumer (proxy) in SE80 from the wsdl file
    2. I created logical port for the consumer in SOAMANAGER
    3. I created security profile in WSSPROFILE with telpmate SET_USERNAME and assigned it to consumer operation in LPCONFIG  (I use LPCONFIG, because I didn't find any way to do it in SOAMANAGER)
    3. I called the web service and got the error back:  session token is missing or invalid or has inspired
    My questions are:
    1. is this possible to consume an external webservice in SAP, which is secured with WS-Usernametoken?
    2. do I need therefore any settings in java stack? do I need java stack in general?
    3. Is this any way to configure the consumer without writing programs, which set header parameter manually?
    4. if the answer on the third question is no, do you have any examples, how to implement session management in report? (I mean sending session id and checking the validaty of id)
    I appriciate any help of you!
    best regards Anna

    Hi,
    it should be possible to use WS-UserNameToken for consuming web service. It should be available on AS BAP 7.0 and higher. This profile should be under category Document authentication. You can try to dump a message send from SAP to see what is going out of SAP. This should be supported in ABAP so you don't need a Java stack. What exactly do you want to configure? Do you want to just set user name and password for that service which will be used for any calls of that proxy?
    Cheers

  • How to consume the Abap web service in Java web-dynpro

    Hi Everyone,
    I want to consume ABAP web service in java web dynpro.
    so when i tried to create model in java web-dynpro, it gave me an error message saying "Invalid WSDL or WSDL not found".
    i think this error message is because, to access the WSDL of abap web-service, we need username and password, but the dialog box in java web-dynpro is not programmed to take username and password from us and send it to the server to get the WSDL.
    i came to this conclusion because i was able to successfully test my abap web-service in java portal. the java portal asked me the username and password to open the WSDL.
    So, please help me to consume the abap web service in java web-dynpro.
    Thanks in advance
    Regards
    Vikas

    Hi Vikas ,
       while creating a model in web-dynpro try to use the "import web service model" option and if you are using local server choose the local server option so that you can get the available web services which are in server, select one among them and continue you process.I think this is the some what easy way .
    If you want use the URL for wsdl better to once test the available service in server and copy that WSDL URL and paste over  WSDL textbox.
    I think this is pretty help ful to you
    Best Regards
    Srikatnh

  • Timeout when consuming a SOAP web service

    Hello,
    I'm quite new to Labview and I'm trying to consume a SOAP web service created using a very simple WCF example, but I keep on getting a WebException because of a timeout.
    The web service has been created using the example from the WCF getting started tutotial (to keep things simple) http://msdn.microsoft.com/en-us/library/ms734712.a​spx
    You'll find my .Net solution attached to this message. (You'll have to be administrator to run the service though).
    I have used the import web service tool in Labview to create the VI to connect to the web service and all went fine, it created the VI correctly. You'll find the created VI also attached to this message.
    Then, I'm trying to create a very simple VI to call the webservice and put the return value inside a numeric indicator. Unfortunately, when I run this VI it crashes with a WebException because of a timeout.
    If I run the .Net client, everything goes fine, and if I go to the web service address with a browser, I get the service website, so I know that the server is registered correctly, only Labview can't connect to it for an unknown reason. Everything is setup to connect through localhost:8000, so it can't really be a network problem, I've tried disabling the Windows firewall to see if that was the problem, but it persists.
    I've also tried to do something similar using the CDYNE web service, like in the example http://www.ni.com/white-paper/4728/en/, and it works perfectly.
    Does anybody have an idea about what could be the issue?
    Regards.
    Attachments:
    WcfTestApp.zip ‏453 KB
    _Calculator.zip ‏72 KB

    OK, I found the problem myself, it was a problem with the configuration of the WCF service, I was missing the ServiceMetadata endpoint.
    For reference, if somebody stumbles upon the same issue as I had, here's a service configuration that works with Labview (using .Net >=4.0)
      <system.serviceModel>
        <behaviors>
          <serviceBehaviors>
            <behavior name="">
              <serviceMetadata httpGetEnabled="true" />
              <serviceDebug includeExceptionDetailInFaults="true" />
            </behavior>
          </serviceBehaviors>
        </behaviors>
        <protocolMapping>
          <add scheme="http" binding="basicHttpBinding" />
        </protocolMapping>
      </system.serviceModel>
    And here's how to create and run the service host.
    using (ServiceHost selfHost = new ServiceHost(typeof(Calculator), new Uri("http://localhost:8000/Calculator")))
                    try
                        selfHost.Open();
                        Console.ReadLine();
                        selfHost.Close();
                    catch (CommunicationException e)
                        selfHost.Abort();
                        throw;

  • Consume an external web service with an ABAP proxy

    Hello,
    I'm working on creating an ABAP Proxy to consume my first web service.  In searching SCN I haven't found a comprehensive list of steps to complete the process, but I have found information on generating a proxy from a WSDL and creating a logical port.
    My first issue arises when I go to SPROXY to generate a proxy from a WSDL, I see the message 'Local objects only (No Connection to ESR)', and I have no ability to 'create'.  The Enterprise Service Repository seems to be the new name for the Integration Repository, if that helps.  Do I need the ESR installed to create a proxy?
    A follow-on question, assuming I do need the ESR, would be what do I do with it?  It appears to serve the purpose of design for interfaces, messages, and mapping, but I thought that happened when I created a proxy in SPROXY.
    We're on ECC 6.0, with a 702 / 0007 basis release.  I appreciate and light you can shed on the topic.
    Thanks

    ESR is part of the PI system, and it is where all interfaces details are stored.You could create an ABAP Proxy from a pre-defined WDSL yet stored in PI as part of some communication, but you can also import directly a WSDL from a local file or even from a URL.
    ABAP proxy generates a proxy class and a set of abap structures , fields and data elements. Simply by filling the data and call a method in the proxy class (depends of syncrhonization a different method name) you can consume your service. No PI is needed if you use the local option.
    There is a very good Tutorial from Thomas Jung. I'll try to find it.
    http://scn.sap.com/people/thomas.jung/blog/2005/05/13/calling-webservices-from-abap-via-https
    Here you have a lot of tutorials
    Best regards

  • Consuming ES Workplace Web Services in CAF - ReadCustomer Example

    Hi,
    I am trying out the steps from [Consuming ES Workplace Web Services in CAF|http://help.sap.com/saphelp_nw72/helpdata/en/6d/00932cf834471789ad286986185acb/content.htm]
    Completed steps 1 through 5 successfully. For step 6 I am unable to locate the options and I guess I missed something here.
    When I am testing the development I get the error Service Mapping is missing.
    More Error info: com.sap.caf.rt.connectivity.exception.CAFWSExecException: The Service mapping is missing.
    Please let me know if I am missing something here or the configuration I might be missing in step 6.
    Environment:
    SDN_Preview_SR_5_CE71.rar
    SDN_Preview_SR_5_IDECE71.rar
    Thanks,

    solved.

  • Authentication Web Services for Java applications

    Hi All,
    We are building Java based SAP applications for mobile devices such as Blackberry, iPhone etc. The applications are browser based (thin client) to be deployed on SAP Netweaver WAS and would interface with SAP backends such as SAP ECC, SAP BW using SAP Web Services (converted from BAPIs).
    For certain reasons we do not want to use Mobile Webdynpro Java using JCO/BAPIs as we would be using a Java based middleware which is built in-house for rendering on multiple devices and it does not go well with Mobile Webdynpro with Java. We are NOT using SAP Enterprise Portal as well.
    What I would like to know is are there any standard Authentication Web Services that can be used to authenticate the user, when he tries to login to the application through the mobile browser. Also does SAP Netweaver WAS provide authentication mechanism for a Java based web application by default.
    Any pointers would be appreciated and thanks in advance for the same.
    Suresh

    Hi All,
    We are building Java based SAP applications for mobile devices such as Blackberry, iPhone etc. The applications are browser based (thin client) to be deployed on SAP Netweaver WAS and would interface with SAP backends such as SAP ECC, SAP BW using SAP Web Services (converted from BAPIs).
    For certain reasons we do not want to use Mobile Webdynpro Java using JCO/BAPIs as we would be using a Java based middleware which is built in-house for rendering on multiple devices and it does not go well with Mobile Webdynpro with Java. We are NOT using SAP Enterprise Portal as well.
    What I would like to know is are there any standard Authentication Web Services that can be used to authenticate the user, when he tries to login to the application through the mobile browser. Also does SAP Netweaver WAS provide authentication mechanism for a Java based web application by default.
    Any pointers would be appreciated and thanks in advance for the same.
    Suresh

  • Consuming an external web service with WAS 6.40

    Hi all,
    I know this thread isn’t 100% XI forum related, my apologies for that. However, I believe somebody here has experience with this subject.
    I’m trying to consume an external web service through WAS 6.40 with se80. When I try to create my proxy object <u>“package Choose Create > Enterprise Service / Web Service > Proxy Object > URL type</u>”, I receive an error message (SPRX084) -> <i>During proxy generation, an interface description in WSDL format is fetched from the integration builder or from another source and interpreted. This WSDL document must describe the whole interface correctly.</i>
    I don’t have sure, but it seams something within WSDL object/element. Nevertheless, these external web services are working well with other third party client applications, why SAP WAS can’t take this WSDL?
    Anyone has faced an issue like this one?
    Thanks in advance,
    Ricardo.

    Hi,
    some tools do not generate WSDLs correcty (not with all the standards
    or with obsolete parts) and then in ABAP you cannot generate a proxy from it
    you should be able to see the some more details in disgnosis section
    sometimes you just have to change one or two things in the WSDL
    and it will be ok for WAS but you need to find the exect cause
    of the error - it can be done by debugging
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • Authentication Web Service

    Hi Everyone,
    I am new to the Access Manager and would like to know how exactly we can authenticate a user against the Authentication Web Service. Could someone please share the sample client to get the above?
    Also, I am not clear under what scenarios one would prefer to use a web service to authenticate the user?
    Thanks in advance and really appreciate for any help.
    Thanks,
    Ranjith.

    Hi Ranjith,
    There are a couple of SDN articles that discuss this in some detail:
    [Securing Applications With Identity Services|http://developers.sun.com/identity/reference/techart/id-svcs.html]
    [Integrating Applications With OpenSSO|http://developers.sun.com/identity/reference/techart/app-integration.html]
    Cheers,
    Pat

  • Consume abap based web Service in Visual composer 7.0

    Hi All,
    Can any one provide me sample example or PDF on "consume abap based web Service in Visual 7.0 composer" not WSDL based
    Help will be appricated by awarding point.
    Thanks

    Hi,
    Try the below link.
    Consuming WebService in Visual Composer-1
    Hope it helps...
    Regards
    Basheer

  • Authenticated Web Services

    How would you build an authenticated Web Services?
    Building web services are fun. I have a JSP application running on one machine and OC4J running on the other machine where all my web services are deployed. However, I don't want just anybody hitting my web services and getting data. I have the users logging into the application but the web services are just open, kind of in public mode. How does the web service know who is authorized to talk to it? How would you design the web service for authentication?
    Thanks

    You can start by using SSL as per this writeup/tutorial jar/zip file here:
    http://otn.oracle.com/sample_code/tech/java/web_services/wssecurity/ws_security.jar
    If you are using the Oracle9iAS Web services implementation, there is full support for basic and digest authentication ... check out:
    http://otn.oracle.com/docs/products/ias/doc_library/903doc_otn/generic.903/b10004/useservices.htm#1018247
    With relatively little effort you can set up the same level of security that exists for todays HTML based Web applications.
    Mike.

  • Consume an external Web service within an orchestration

    Hi All,
    I am following this link in order to consume external wcf web service in BizTalk server.
    http://blogs.msdn.com/b/sonuarora/archive/2007/04/14/consume-wcf-service-wizard-generates-port-binding-configuration-files-for-import-into-biztalk-server.aspx
    I am following below steps to import binding
    Open BizTalk Server 2013 Administration Console
    Select a BizTalk Application.  Right click, select Import > Bindings.
    after this I am getting following error.
    ===================================
    Failed to update binding information. (mscorlib)
    ===================================
    Could not store transport type data for Primary Transport of Send Port 'WcfSendPort_EdiWcfWebService_BasicHttpBinding_IEdiWcfWeb' to config store. Object reference not set to an instance of an object. (Microsoft.BizTalk.ExplorerOM)
    For help, click:
    http://go.microsoft.com/fwlink/?LinkId=47400&ProdName=Microsoft+BizTalk+Server+2013&ProdVer=3.10.229.0&EvtSrc=Microsoft.BizTalk.ExplorerOM.Resources&EvtID=IDS_ERR_TRANSPORTINFO_SSO_SETCONFIG
    Program Location:
       at Microsoft.BizTalk.ExplorerOM.BtsCatalogExplorer.SaveChangesWithTransaction(Object transactionObj)
       at Microsoft.BizTalk.ExplorerOM.BtsCatalogExplorer.SaveChanges()
       at Microsoft.BizTalk.Deployment.Binding.BindingInfo.Update(SqlConnection sqlConnection, BindingParameters bindingParameters, String applicationName)
    Environment:
    OS:Window server 2012 R2 64 bit
    SQL:SQL Server 2012
    BizTalkServer: BizTalk Server 2013
    Please advice
    Txs,
    Ramesh singh
    Ramesh Kumar

    Hi Ramesh ,
    Enterprise Single Sign on service is used to store the receive and send port configurations of BizTalk. The error comes usually if your SSO server is not started or the SSO service is not running on the SSO server. Login to the SSO server (it is same where
    BTS is installed in a single server environment) and check the service if it is running or not from the services manager. You can type services.msc on the run command to access the services manager console. View the Enterprise Single Sign on status that it
    is started or not. If it is stopped start the service.
    If you dont find SSO service i think than you need to reconfigure your BizTalk Environment.
    Remember the service depends upon SQL Server check that the SQL Server services are running fine or not. Here is a link to explain more about SSO
    http://msdn.microsoft.com/en-us/library/aa578564(BTS.20).aspx
    Thanks
    Abhishek

  • How to set up User id and Password for Web services or authentication

    Hi ,
    I am new to web services . I have created a new Web service in SAP , and while creating Service defination , set the Authentication as LOW for server proxy .Then created End-point in SOAMANAGER with USREID/PWS requried .This WSDL i am planning to share with Third party to call from Java application.
    But my web service checks for authorization which needs to be set up to allow the user id and pws .
    So question is how do i pass my user id and pws as i do not see this WSDL with User id and pws option displayed for me when i test this using SOAP UI .I saw some of WSDL with tag "AuthHeader" with user id and pws tags in them .So how could i get them ?
    Or requirement is that my Third party should be able to access my Web service in PRD and also be able to have authorization to auth object embedded in FM inside service defination .So how is this acheived ?
    Thanks,
    Sitaraman

    Hi,
    After creation of WSDL , you will get URL lkie http://idessapdev.ad.infosys.com:8000/index.html.
    For this URL your third party system need sto add id and pwd for accessing like http://idessapdev.ad.infosys.com:8000/index.html&userid = 111&pwd= wwgw.
    this is not the exact syntax. you can check with your third party system for this URL.
    Regards,
    Lokeswari.

Maybe you are looking for

  • A problem with VBA in MS Word 2010

    Hello I hope you can help me. I am working on developing a template in MS Word 2010. My problem is to I want to when I save a new document using the template file automatically provides stored in the path C: \ Users \ Stephen Christiansen \ OneDrive

  • How to send the acknowledgement via mail adapter

    Hi Experts, I have a async scenario file to webservice here we are getting an acknowledgment from the webservice side. My requirement is - to capture the acknowledgement (application ack) which is coming to PI and then send this  acknowledgment to so

  • WRT54G wireless router and completely random disconnections

    Hey everybody! I recently bought a new desktop computer for my home and after a few weeks I started to notice my internet disconnecting at random times during the day, even when there is a good signal strength (it is only a single wall's distance awa

  • DMEE Output File missing records

    I'm trying to create a flat file to send payment information to the Bank. I create a format tree that correspond to the Bank Layout using DMEE1 tcode. The request is create a flat file in which only detail records are stored (no headers are needed).

  • 10.2.0.4 Streams Alert log message

    Good afternoon everyone, Wanted to get some input on a message that ocasionally is logged to alert log of the owning QT instance in our RAC environment. In summary we have two RAC environments and perform bi-directional replication between the two en