Configure EndPoint URL in WebService DataControl and Proxy

I have created application using webservices based DataControl and WebService Proxy. I want to use config file to change the host and port for these webserviceDC and webServiceProxy.
I have referred the following link -http://blogs.oracle.com/adf/2011/02/changing_endpoint_url_for_a_web_service_data_control.html
Any links or pointers , how to do that ?
Thanks,
Rajdeep

I have created the ADF WebServiceConnection for the webproxy class generated. Then I have used the following code to use the URL's from Connections.xml -
Context ctx;
try {
ctx = ADFContext.getCurrent().getConnectionsContext();
WebServiceConnection wsc = (WebServiceConnection) ctx.lookup("GetPaymentTypesService");
getPaymentTypesPort = wsc.getJaxWSPort(GetPaymentTypesPort.class);
Issue - when i run this with in same application It works fine. But try to use this project in another application as ADF Library , it is not able to pick the connections and wsc object is comming as null.
Thanks,
Rajdeep

Similar Messages

  • Local URL in WebService address and WSDL file

    Hi everyone,
    I developed, built and deployed my webservice on a machine. To reach the webservice from the web it has a specific IP (binded to point to a local IP) , but when i access to it the URL inside the webservice address, the reference to the wsdl file and the SOAP:ADDRESS property inside WSDL refer to my local network IP instead of "external" url ..... how is it possible? how can i change things to make Web Service always refere to the external url from which has been invoked?
    Thanks in advance for help ... it's quite urgent ... thank you

    just a little precisation : i deployed the webservice on tomcat, simply putting dist war file ... not using the ant deploy task.

  • How to access the URL on page load and open it in the new tab of browser

    Hi All,
    I am using Jdeveloper 11.1.1.5 and i have one page "Hello.jspx" and one data control consist of two attributes :-one is "id" and other is "url".
    The datacontrol has been created from the WebService.
    Now my requirement is : -
    whenever i run the page "Hello.jspx" , then on page load the url attribute should get accessed and should be opened in a new window or tab of the browser.As the url contains the information about the document.
    Hello.jspx page doesn't contain any bindings of the url attribute.
    I had thought of using the PhaseListener class and use the onPageLoad method .But how do i get the url from the dataControl and open it in the other tab of the browser on page load.
    Please suggest!!!!
    Thanks.

    Hi,
    I don't think this can be done this way. I would think that you need to execute JavaScript upon Hello.jspx load to open a new window and pass the URL to it
    Frank

  • Webservice Datacontrol Java files

    Hi,
    Is it possible to generate Java files for my Webservice DataControl? I want to have more control over it.
    I tried to generate Webservice client and proxy (also in JDeveloper 10 that doesn't use annotations), but that doesn't work in Java ME 1.4.
    Thanks

    We're looking into this but currently there is no support for generating proxy classes. There will be some helper methods available soon to make this type of work easier.

  • Sender Agreement endpoints URL - is it configurable?

    Hello All
    I have two PI servers: DEV and QA. DEV works ok, but after transporting objects from DEV I've noticed, that SOAP Sender Agreement gives WSDL which contains service endpoint url from DEV system. Main WSDL Url is correct - from QA.
    Are those endpoinds somehow configurable? How to make this WSDL correct, that QA serves those services?
    TIA
    Best Regards
    Maciej

    Hi Maciej,
    answering your question indirectly
    it's not PI that you're looking for right now but your sender application
    it's the sender application that needs to be able to determine the URL (server) correctly (for dev,qa, prd)
    as you only generate a proxy for it once (on the dev system), right ?
    so it should be possible to change it in the sender app and not in the receiver I believe - at least that's how it works in simplest cases (no SR etc.)
    Regards,
    Michal Krawczyk

  • How to configure service endpoints of custom webservice in SharePoint 2013?

    Hi,
    I have created a custom webservice in SharePoint 2013. I placed it in a sub folder under the ISAPI folder. I followed the instructions of this article: http://msdn.microsoft.com/en-us/library/office/ff521581(v=office.14).aspx. The webservice works
    great, however when I try to send a large file I get the message "413 Request entity is too large".
    After some searching I found out that you can create a web.config in the subfolder and define the endpoints and bindings, after which I get an error that there is already an endpoint defined for the specified URI. I believe this has something to do with
    the BasicHttpBindingServiceMetadataExchangeEndpointAttribute but I'm not sure.
    Can anyone help me solve this issue?
    Regards,
    Sander

    Hi,
    According to your post, my understanding is that you want to configure service endpoints of custom webservice in SharePoint 2013.
    Per my knowleadge, after you add a reference to Microsoft.SharePoint.Client.ServerRuntime, you can use the BasicHttpBindingServiceMetadataExchangeEndpointAttribute.
    In VS  go to the add reference and paste the following: C:\Windows\assembly\GAC_MSIL\Microsoft.SharePoint.Client.ServerRuntime.
    In addition, please make sure you create the custom web service correctly.
    For more information, you can refer to:
    SharePoint 2013: Create a Custom WCF REST Service Hosted in SharePoint and Deployed
    in a WSP
    How to create Custom Web Service WCF (REST) in SharePoint 2013
      Adding custom WCF services to a SharePoint 2013 farm solution using Visual Studio 2012
    "BasicHttpBindingServiceMetadataExchangeEndpointAttribute" could not be found
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Webservices endpoint url

    hi,
    I have a following scenario:
    Webclient-->PI 7.0--
    > SAP ECC
    Using Sender Soap Adapter for connecting webclient
    Between PI 7.0 & sap ecc system it is proxies.
    A webclient sending a request details of customer number and Cutomer Description through PI to SAP ECC system.
    In turn SAP ECC SYSTEM giving the response details to webclient through PI 7.0.
    i am creating the webserivce in Integration Directory  based on message interface of Customer Reponse_Outbound.
    How can see the webservices by the following enpoint url
    http://host:port/XISOAPAdapter/MessageServlet?channel=:sample_all:RetrievecustomerRecord_SOAP_Sender
    I hope the above is the endpoint url....
    What i will see in WS Navigator.
    I need ur help friends

    By the URL ,data will be posted from 3rd party web client.
    You just need to provide the wsdl(which you have already done), the url which I have given above and the userId/pwd(xi) for connecting to XI server.
    A Guide to Using SAP XI SOAP Adapter
    http://www.riyaz.net/blog/index.php/2008/03/16/xipi-a-guide-to-using-sap-xi-soap-adapter/
    Invoke Webservices using SAPXI
    Using the SOAP inbound channel of the Integration Engine
    Debugging WebServices in a SOAP Receiver Scenario
    Testing XI exposed Web-Services
    How to use Client Authentication with SOAP Adapter
    Walkthrough - SOAP  XI  RFC/BAPI
    Achieving ASBO-GBO-ASBO scenario using SOAP Adapter
    Handling Web Service SOAP Fault Responses in SAP NetWeaver XI

  • Webservice Endpoint URL

    Hello,
    I have developed a Webservice Client in Netbeans 5.5 It al works perfect, but how do i change the URL for the ENDpoint or the URL from the webservice?
    Greetings

    I recently has the same problem and needed to change the webservice endpoint URL. I tried the above solution, it has one problem.. to get the port, we need to create an instance of service object. The service class generated by jax-ws (2.1rc1) contains code that tries to access wsdl which was used during build done using wsimport. This URL gets hardcoded in class file and if this hardcoded URL is not accessible from the machine on which app is running, the app throws an Exception.
    I figured a better solution is to use service constructor that accepts wsdl url as a parameter. The new URL may be loaded from a Properties file.
    You may still need BindingProvider if the service location needs to be changed later and you want to reuse the same service object.
    If anyone knows any better way to change webservice endpoint as the application move from dev to test to prod.. I will like to know.

  • Can I change the URL for WebService proxy?

    Hi All,
    I have a case. I have made my service running on SOAP UI and generated a proxy after appending the endpoint URL of WSDL to SOAP URL. Now if my service deploys at any other location can i change my URL of proxy to that location without regenerating the proxy again??

    You can do this it you use a wrapper around the original code and e.g. supply a new endpoint and use this.
    Take a look into the class which implements the service. There you find the 'wsdlLocationURL' and how it is build (normally static). You can use this code as a template and build your own new endpoint.
    Timo

  • Idoc Communication Configurations and Proxy Runtime Configurations for PI

    We have a fresh PI 7.1 system, fresh ECC6 system, and an existing 4.6C system.
    is there any blog/doc with step-by-step instructioins/screenshots for following tasks:
    1. Configuring Abap proxy runtime between ECC6 and PI 7.1 Systems, for using sproxy from ECC6.
    2. Configuring for IDOC communication between ECC6 and PI 7.1
    3. Configuring for IDOC communication between 4.6C system and PI 7.1
    It involves creating of sm59 rfc destination creations, usage of idoc related transactions on PI system and the other system.. I searched on sdn/forum, but it seems to be addressing specific issues faced.
    Pls suggest any step-by-step instructions docs/blogs available.
    thanks in advance.
    Madhu.

    Madhu,
    Refer the links below:
    1. /people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies
    2& 3 :
    https://wiki.sdn.sap.com/wiki/display/XI/SAPR3%28Idocs%29ToXI--Steps+Summarized
    http://www.riyaz.net/blog/xipi-settings-in-r3-partner-system-to-receive-idocs/
    /people/swaroopa.vishwanath/blog/2007/01/22/ale-configuration-for-pushing-idocs-from-sap-to-xi
    https://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/877c0d53-0801-0010-3bb0-e38d5ecd352c&overridelayout=true
    http://www.riyaz.net/blog/beginners-guide-to-ale-and-idocs-a-step-by-step-approach/
    Also, I  think u hv just started learning XI ..so following link might help:
    http://wiki.sdn.sap.com/wiki/display/NWTech/QAforPI-Onestopforall%28Part-1%29

  • Webservice from WSDL - Endpoint URL unchanged

    Hi all,
    I'm following the JDeveloper tutorial here....
    http://www.oracle.com/technology/products/jdev/11/cuecards111/j2ee_set_17/ccset17_ALL.html
    ...in this the endpoint URL is left as http://www.example.com - this gets transformed into....
    http://localhost:7101/ServiceFromWsdl-Project1-context-root/RatingServicePort
    ...I believe at the point the webservice is generated from the WSDL.
    I have a couple of questions....
    1. Where does it get the localhost & 7101 from - at the point of generating the webservice how does it know where I want to deploy it ?
    2. When I generate my webservice from WSDL my URL is left unchanged - it deploys ok to my SOAServer (not the JDeveloper integrated one) but not with the endpoint I used in the WSDL - how do I find this endpoint ?
    Thanks
    MarkF

    OK, I managed to find the endpoint by hacking a few bits of information together....I assumed the port number because I knew the HTTP port number for my SOAServer, the context root is displayed in the deployment log, I then tagged on the Port Name from my WSDL .... et voila !
    Still begs the questions....
    1. Is it supposed to overwrite the URL in my original WSDL ?
    2. Is there no easier way of finding out the endpoint for a deployed WS ?
    Thanks
    MarkPF

  • I have configured bowser url in about:config from there onwords i am unable to find orange box on left corner and menu on the right corner as well as navigation

    i have configured browser URL at about:config from there onwords i am not able to find orange box,menu,navigation every thing and before opening firefox it is asking permission every time

    What kind of permission do you mean?
    Do you mean about making changes?
    A possible cause of this error is that Firefox is set to run as Administrator.
    Check that Firefox isn't set to run as Administrator.
    Right-click the Firefox desktop shortcut and choose "Properties".
    Make sure that all items are deselected in the "Compatibility" tab of the Properties window.
    * Privilege Level: "Run this program as Administrator" should not be selected
    * "Run this program in compatibility mode for:" should not be selected
    Make sure that you do not run Firefox in full screen mode (press F11 or Fn + F11 to toggle; Mac: Command+Shift+F).
    *https://support.mozilla.org/kb/how-to-use-full-screen
    You can use one of these to set which toolbars to show.
    *"3-bar" Firefox menu button > Customize > Show/Hide Toolbars
    *View > Toolbars (press F10 to show the Menu bar)
    *Right-click empty toolbar area

  • Create WSDL from SOAP request, response and endpoint URL

    We have a program that does not create WSDL for us but we do have a SOAP request, response XML file and the endpoint URL as well.
    How can I create WSDL file from these?
    If that is not possible, how can I create a Java web service client (JEE 5.0) when I have only the SOAP request and response XML and the endpoint URL? Some tutorial or any explanation to point me to the right direction would be highly appreciated.
    Thank you very much,
    Genti

    The endpoint is:
    http://servername/appname/service/rpcrouter
    and we have SOAP request and repsonse that we can build from the application but also the documentation that is provided
    The documentation says about the web service:
    Built on top of a pre-Axis version of Apache SOAP
    No WSDL support
    Uses literal encoding for Web Service calls
    Adding WSDL at the end of the endpoint does nothing at this point.
    Thank you for the reply though,

  • SMP endpoint url rewrite in kapsel project

    Hello SAP expert community,
    I have developed the cordova hybrid app using Kapsel plugin. SMP registration, login is working fine. I have configured GW server url as endpoint url and selected the URL Rewriting option as shown below. Since this app is going to be used over internet, we have necessary infrascature in place like MDM(MOBILE IRON) solution that would do reverse proxy to SMP ( which is also working fine). But when app reaches to make a gateway service call, it is directly calling the service url instead of going through SMP. How can I make service call through SMP? I am looking something like http://SMPURL:8080/<gateway service name>.
    If it works, then I can directly make gateway service call using the below code by not hitting the actual gateway service url as shown below
    var oModel = newsap.ui.model.odata.ODataModel("/sap/opu/odata/sap/Z_SERVICE_NAME", {json: true,loadMetadataAsync: true});
                      oModel.attachMetadataFailed(function(){
                                                  alert("err");
                                                  },this);
                      oModel.attachRequestCompleted(function(context) {
                                                    alert(context);
                                                    alert("succ");
    Tags edited by: Jitendra Kansal (Moderator)

    Hi Saira,
    You should not use end point url inside your app directly. You should use the application connection ID to register and then append the Odata collection name with it to get the data.
    Ex.
    function read() {
    updateStatus2("read request started");
    startTime = new Date();
    clearTable();
    if (!haveAppId()) {
    return;
    var sURL = applicationContext.applicationEndpointURL + "/Products?$orderby=Name desc";
    var oHeaders = {};
    oHeaders['Authorization'] = authStr;
    //oHeaders['X-SMP-APPCID'] = applicationContext.applicationConnectionId; //this header is provided by the logon plugin
    var request = {
    headers : oHeaders,
    requestUri : sURL,
    method : "GET"
    console.log("read using " + sURL);
    OData.read(request, readSuccessCallback, errorCallback);
    Ref:
    http://scn.sap.com/docs/DOC-58063
    http://scn.sap.com/docs/DOC-49524
    Regards,Midhun
    SAP Technology RIG

  • How to change the endpoint url of the siebel service ?

    Hi All,
    JDev : 11.1.1.5
    I am fetching data from the siebel webservice. I created the proxy client from the Siebel WSDL in the JDeveloper. It was working fine.
    Now the endpoint URL(Server) is changed. This service fails to connect to that server. The service name is same.
    I want to fetch the end point urls from a property file, so that, even again if the server is changed, i have to change it in my property file.
    How to change the End point URL at runtime before calling the service ?
    This is my endpoint URL.
    http://oa8181.us.oracle.com:10800/eai_enu/start.swe/#%7Bhttp%3A%2F%2Fpolicing.oracle.com%2F%7DPolicing_spcQuery_spcIncidents_spcWF?wsdl?SWEExtSource=WebService&SWEExtCmd=Execute&UserName=AUSTINP&Password=AUSTINP
    Now it is pointing to this
    http://oa8023.us.oracle.com:7777/eai_enu/start.swe/#%7Bhttp%3A%2F%2Fpolicing.oracle.com%2F%7DPolicing_spcQuery_spcIncidents_spcWF?wsdl?SWEExtSource=WebService&SWEExtCmd=Execute&UserName=AUSTINP&Password=AUSTINP
    Give me some solution.

    See if this helps:
    http://kingsfleet.blogspot.co.uk/2008/12/controlling-what-service-proxy-uses-at.html

Maybe you are looking for

  • External Hard Drive Partitioned to boot both Intel and PowerPC -and backup

    Have been remiss backing up drives, do it sporadically and have had a few close calls and am now trying to upgrade my skills. I work with 3 computers - 2 intel MBP Core Duo (one Leopard, one Tiger, difference Ghz, screen size, generation) and PowerPC

  • Is it possible to manage FrameMaker files using adobe bridge?

    I see that there is the option to add file info to a FrameMaker file in FM9, but this is not visible or usable in Adobe Bridge. Is there a way that this is in fact possible? Cheers.

  • File Renaming-Invasion of Privacy

    Greetings, Trying to determine how to revert my music file names back to their original naming convention. After installing Itunes, the software rename and re-orgranized my music library without my persmission into their format. I would also like to

  • Is there a way to save a conversation on iMessage?

    I have a specific conversation in iMessage that I would like to save...or at least prevent it from being accidentally deleted.  Is there any way to save or archive this conversation on my iPhone 4S?

  • Use HTML5 and FMS server 3.5 to share/play videos

    Hi! We use FMIS (3.5) to distribute our videos, but how can I use HTML5 to view them without duplicating the video to the HTTP VOD directory. Can I point to the application FMS file location like I can with RTMP in some way? Thanks