Webservice logical port

Hello,
I have a webservice that reads information out of a device connected to a PC.
When a function is called, I want to execute the webservice located at the PC who called the function.
Is it possible to change the url parameter of the logical port at runtime or do I have to create a Logical port for all my (300) destinations ?
kr,
Joachim

This is for webdynpro for java...
I need a solution for the ABAP Part.
this is how I create my proxy object:
TRY.
CREATE OBJECT proxy
   EXPORTING
     logical_port_name  = 'LP00'
CATCH cx_ai_system_fault .
ENDTRY.
LP00 is going to a predefiened URL, I want to change this at runtime....
Is it possible?
gr,
Joachim

Similar Messages

  • DUETE - Logical Port for OBAfielReciever

    Hi
    Following the Duet Deployment guide, on page 88 it states :
    To update the RFC destination with the login details:
    1. In the details view of the proxy, go to the Configurations tab.
    2. Select the logical port you have created and click Display.
    The details of the logical port are displayed.
    3. Go to the Additional Information tab. and note down the value displayed in the HTTP
    Destination field. This is the name of the RFC destination.
    I should ,according to the documentation, go to SM59 and update the generated HTTP destination with the user and password for calling this service. It seems that the HTTP destination field the SOAMANAGER of Netweaver 7.02 is missing.
    Does anyone know what happend to the http destination field in SOAMANAGER, and wether this step is still required for DUETE on NW 7.02 SP08??
    I do realize that the fact that the http destination field in the SOAMANAGER is not DUET specific, however the DUET documentation has led me to this pioint.
    Kind Regards
    Adam

    Hi Sven,
    If you are using LCM configuration wizard to configure the webservice logical port in SCL system, then you need not update the HTTP destination in SM59. The wizard will do all configuration by itself.
    If you are not using LCM wizard then:
    1. If your SCL BASIS version is SP06 then you can modify HTTP destination deails in SM59.
    2. If your SCL BASIS version is SP08 then you will not be able to modify HTTP destination in SM59. THis is because from SOAMANAGER you will not be able to find the HTTP destination created for the logical port.
    So its always recomented to use LCM wizard for this configuration.
    Regards,
    Binson

  • [WebService-CONSUMER] ERROR_WEBSERVICE_RUNTIME_INIT No logical port...

    Hi Guys,
    I have a big problem when instantiating PROXY object in ABAP for sending data through my Web Service.
    Context:
    A Program calls a Mondule Function that calls afterwards a Webservice.
    Realization:
    in SE80, I created my Webservice correctly.
    and my PORT is defined correctly:
    When I go to SE80 and test my WEBSERVICE in TEST Mode, SAP got me all information needed via the Matchcode to test it properly .
    Also, my methods are displayed via the PORT defined:
    But unfortunately, when I do some codes in the MF for calling the Webservice, I got an Exception Message when executing the program during "CREATE OBJECT PROXY" statement.
    " ERROR_WEBSERVICE_RUNTIME_INIT No logical port 'LP_WOLOAD' exists for the proxy class 'ZWOLOADCO_ISERVICE' "
    Have you got any idea?
    Thank you all.
    Rachid.

    I found note 1543696 about generating a logical port in the local client.
    The error occurs because the logical port for the monitored system cannot be found. As of logical ports are client dependent they need to be regenerated in the client in case the setup was made in a different one. Normally this could be done via RZ21 Menu Technical Infrastructure -> Reorganize segment table.
    http://sap-note.com/1543696.htm

  • Cerate Logical port for Webservice

    HI,
    I create abap WS in one backend and i want to call him in different backend , i generate proxy via se80 .
    I want to create logical port but i don't know how.
    Do i need to create it via SM59 or via LPCONFIG.
    Please guide me step by step i new to this topic.
    Best Regards
    Michael

    HI Venu,
    I want to use Abap program/method  to call this proxy ,you have an idea ?
    i saw this for calling the proxy from LPconfig :
    CALL METHOD cl_srt_lp_maintenance=>get_default_port_by_proxy
      EXPORTING
        proxyclass = lc_proxy
      RECEIVING
        lp_name    = lv_port_name.
    But i didn't find any method for calling the LP from Soamanger.
    Best Regards
    Michael

  • How to change a Logical Port URL-Destination/Endpoint at Runtime

    Hi,
    i am looking for a way to change the endpoint for a webservice-call without redeploying my application. (I am using a standalone-proxy).
    In the SAP-Help from NetWeaver 2004s I found the following hint:
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/c487d701c7214db8ca7a741ba3c9d0/frameset.htm
    Configuring Logical Ports:
    Logical ports (LPs) contain the configuration of the client-side SOAP runtime, such as the access URL or security settings. These are required if Web service calls are executed using proxies.
    The Web service port is part of the WSDL description. This defines a URL where the service is to be called. As a rule, this URL is generated directly into the proxy object. However, this can cause problems whenever the proxy is transported into a system landscape (for example, from the test system into the productive system). In this case, the proxy would still attempt to call the Web service on the test server although the proxy should point to the productive system. The proxy could be re-generated or the coding could be changed manually. Due to the risk of errors with this method, the configuration data in the SAP Web Service Framework is separated from the implementation. After transport or re-deployment of the proxy, the URL and other important parameters can be adapted using a simple editor. 
    The LPs provided correspond to the Web service configurations created for the Web service.
    My Question:
    Where can I change the URL of the corresponding logical port at runtime?
    I don't want to redeploy my application !!!
    I want to change the endpoint-destination at runtime!!!
    In the Visual Administrator I can see the webservice in the "Web Services Container Service Administration". I also can see the different ports from the WebService-Configuration I made.
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/c487d701c7214db8ca7a741ba3c9d0/frameset.htm
    But it is not possible to change the "target adresses"!
    Can anybody help me finding a solution concerning my question?
    Regards
    Steffen

    You can include below method in your code and call it.
    private void UpdateConfig(string key, string value, string fileName)
    var cFile = ConfigurationManager.OpenExeConfiguration(fileName);
    cFile.AppSettings.Settings[key].Value = value;
    cFile.Save();
    Here fileName is the full path + application name (eg: c:\project\WinApp.exe)
    Adnan Amin MCT, SharePoint Architect | If you find this post useful kindly please mark it as an answer :)

  • Error while creating logical port from WSDL in SOAMANAGER

    Hi,
    I am trying to create a logical port for the webservice TerritoryCRMBasicDataByIDQueryResponse_In with the WSDL
    http://usciq9e.wdf.sap.corp:50077/sap/bc/srt/wsdl/sdef_TERRITORYCRMBASICDATABYIDQUERY/wsdl11/ws_policy/document?sap-client=506
    In SOA Manager, I selected the proxy object and clicked on 'Create Logical Port' ,
    gave the name and description for the port and set it as default.
    The other settings are :
    Configuration type : WSDL based configuration
    WSDL base is : Via HTTP Access 
    Then I gave the address of the WSDL in  the URL and the proper username and password. When I clicked on 'Apply Settings' I get the following error:
    "Error when building binding view: Uninstantiated object "subject sidl service" in method IF_SRT_WSP_CONFIG_SIDL~CREATE_CLNT_CFG_FROM_WSDL_D of class CL_SRT_WSP_CONFIG_SIDL "
    Please advise me on how to approach the problem.
    Thanks,
    Sashi

    Creating logical ports is done here:
    http://help.sap.com/saphelp_nwpi71/helpdata/en/44/cc8fd368c873dfe10000000a11466f/frameset.htm

  • Error while creating logical port in SOAMANAGER

    Hi,
    Im consuming the webservice.While creating the new logical .Im getting the following error.
    Error: Error in WSDL access: Exception occurred in communication framework:Error in HTTP Framework:401Unauthorizedhttp://vmtmasterdev.rune2emaster.rune2e.com:1080/sap/bc/srt/wsdl/sdef_Z_NUMBER/wsdl11/ws_poli
    I have entered logical port name,description, URL for WSDL access.When i press enter i got the above eeror.
    Please help me.
    Regards,
    Brahmaji

    Hi,
    tell me please wenn you run SOAMANAGER you have to apply an user Authentication or not?
    If yes If the service that you want to configure is an Enterprise Service or Self-Modelled Service.
    In case of Web Services Please Check again in The ICF Services under
    sap/bc/srt/SAP and Check if your Service activated or not.
    If you don´t have Access to SOAmanagement you can see the specified Roles hier
    http://help.sap.com/saphelp_nw04s/helpdata/en/2b/07074155bcf26fe10000000a1550b0/frameset.htm
    Regards
    A.Labrache

  • Logical port problem

    Hi All
    I create logical port in LPCONFIG for a WS and i put the proxy class and logcal port (just variable like abc ) i choose defult port
    and in runtime i choose webservice and in in call parameters in URL i put the WSDl of the WS i create via se37 .
    when i activate it i get message : Web service requires state management
    What i need to do to overcome this issue?
    Best Regards
    Nina

    Hi Nina,
    Purpose
    The options for error handling depend on the type of communication chosen:
    ·        Asynchronous Communication: On the sender side, the application can only handle errors that occur when the message is being sent (for example,  the outbound queue is full). You can catch and persist these errors by using the exception class CX_AI_SYSTEM_FAULT. On the receiver side, as in the synchronous case, you can define fault messages, which are then only forwarded to monitoring (and not to the sender).
    If you want to define how the sender is to process asynchronous errors, see the Acknowledgments section. The Web service runtime only supports synchronous communication.
    ·        Synchronous Communication: You can use fault messages to handle errors that have occurred on the receiver side. To confirm an error, the proxy runtime sends the fault message from the receiver back to the sender, which can then respond to it.
    Process Flow
    The example used here works with the XI runtime standardized structure. When using the Web service runtime, follow the same procedure to trigger an exception on the receiver side and handle it on the sender side (indicated in the source text by the comments with a hash symbol (#)). The fault message structure is defined by the WSDL description in both cases and is found in the exception class.
        1.      If an application on the receiver side triggers an error, the ABAP proxy runtime converts the corresponding exception class to a fault message and transfers it to the sender system.
           2.      In the sender system, the ABAP proxy runtime interprets the fault message and triggers the exception for the client proxy.
           3.      In the sender system, the application can catch and handle the exception using a Try/Catch block. Using the super exception class CX_AI_APPLICATION_FAULT you can - in a similar way to the statement WHEN OTHERS in a CASE statement - catch all remaining application errors.
    see the following links for Possible ...
    http://help.sap.com/saphelp_nw70/helpdata/EN/75/a55c3cff8ca92be10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/25/a45c3cff8ca92be10000000a114084/frameset.htm
    Regards,
    Prabhudas

  • Creating new logical ports for WSDL with several port types not working

    Hi all,
    I am trying to integrate some BODS webservice into the BPM. I am using CE 7.2 Kernel Version:     7.20.3710. When I am trying to assign a provider system in the application configuration I get following error:
    The provider system successfully found the needed service, but its wsdl is without webservice policy. Thus the generated client configuration might not work because of different configurations between service and client (most probable a difference in the security settings). Either assign a provider system with access to wsdl with policy or manually create the client configuration.
    The regarding provider system is using a communication profil where the authentication method is set to "none". Normally this configuration should work, but it isn't.
    So I started to create new logical ports for each port type. But then I get the error:
    Port type name of loaded WSDL does not match the port type name of the Service Reference.
    I checked already the port type names in the WSDL but they are 100% the same. What I found was that the configuration is always trying to use the first port type in the WSDL. So I am not able to configure the other port types in the service group.
    I also tried to do the same thing using a WSDL with just one port type and surprise it is working...
    I hope somebody can help me out
    Thanks in advance
    Andy

    Hi Andy,
    Please check this Link: https://cw.sdn.sap.com/cw/docs/DOC-45012
    Regards,
    Naresh B

  • Logical port for client proxy

    Hi,
    when consuming a webservice i have to create a logical port and this port will be used when i create an instance of the proxy class e.g.
    DATA: lo_proxy  TYPE REF TO /ipro/co_bbp_cms_ibf_metadata.
    CREATE OBJECT lo_proxy EXPORTING logical_port_name = 'E6S_300'.
    The question is how could i know how the customer will name the logical port?
    Is there a way to get a list of logial ports for a give proxy class?
    Regards,
    Christoph

    the following table holds all the logical port for a given proxy class
    SRT_LP
    Regards
    Raja

  • How to Transport Logical Port in SOAMANAGER

    Hi Guys,
    I have created logical port in Developement system, so while moving my proxy class to staging system, do I need to create logical port again in staging by using SOAMANAGER or is there any way to transport Logical ports created with SOAMANAGER to different systems like Staging/ Production.
    Thanks,
    Santosh

    Hi,
    you need to create manually. As of standards no configuration information (url, password, transport protocol) etc transported because not necessary parameters supplied on DEV system are identical on QA or PROD system.
    You can transport webservice definition and configuration need to done again using SOAMANAGER.
    Regards,
    Gourav

  • Connection to ByDesign with a ODP Source system: Logical port creation on CO_RSDSPX_ODP_IN

    Hello,
    I am trying to connect my ByDesign Could server to the our BW Server by an ODP Source system.
    I tried applying what SAP recommend:
    http://help.sap.com/saphelp_nw73/helpdata/en/46/b9297716c94e509fcbe62d3c795e85/content.htm?frameset=/en/c6/afacb707764885a6fb62f511c24f34/frameset.htm
    http://help.sap.com/saphelp_nw73/helpdata/en/ca/14c0899cb04f16929b5d88e147fc8f/content.htm
    http://help.sap.com/saphelp_nw73/helpdata/en/9e/c7a3591dc74a679bbc9716354e42af/frameset.htm
    When trying to create a Logical Port on CO_RSDSPX_ODP_IN from SOA Manager with a WSDL Based configuration (downloaded from a Webservice of our ByD), this error is thrown:
    SRT Framework exception: The WSDL document is not compatible with proxy class "CO_RSDSPX_ODP_IN": "Unsupported Operation(s):GetList, CloseSubscription, CloseSubscription, CloseSubscription, CloseSubscription, CloseSubscripti
    Do you have any idea ?
    Also, i was unable to use any Consumer Service directly ... I am not a Basis and don't understand what configuration needs to be done.
    Thank you very much.

    Hi,
    Did you create consumer proxy for the service you like to consume ?
    It looks like your WSDL and Consumer proxy are not the same ?
    Or you could create Logical Port Manually, but it will fail on provider side because the message you are sending and the provider of the service are not the same.
    Manual Configuration
    The system uses a user-specified binding URL to create a logical port. You need to specify a unique name for the logical port.
    Thank You
    Regards
    Gov

  • Logical Port for Digest Authentication

    Hello,
    I want to connect to a webservice which is running at an IIS with Digest Authentication. I created a Consumer Proxy and added a Logical Port in SAO Management (Java-Stack) to this Consumer Proxy, but I can't find a digest authetification in Configuration of the Logical Port. Is it possible to connect from a SAP System to a webservice with Digest Authentification?
    Thanks and best regards
    Iris

    Hello Gourav,
    Thank you for your answer.
    I tried to create a Logical Port with HTTP Access to the WSDL, but the WSDl needs digest authetication as well. So I get the error
    Error: Error in WSDL access: Exception occurred in communication framework:Error in HTTP Framework:401Unauthorizedhttps://itnts2371/SecurityWebService.asmx?WSDL
    though I logged in with right credentials.
    Then I tried to read the WSDl from a file then, but I get the error
    Error: Error in WSDL parsing: Exception occurred in library handler
    So I created a manual Logical Port for SSL-Access. I get only "User ID/Password" and "SAP Authenticatoin Assertion Ticket", but no "Digest Authentication". "User ID/Password" doesn't work, I get a dialog to put in User ID and password, but I'm never authorized.
    Any other suggestions?
    Thanks
    With best regards
    Iris

  • Creation of logical port

    hi,
    Can any one tell us creation of logical port for publishing a webservice.
    While creating we are facing following exception:
    SRT Framework exception: Initial value "operation table" in method IF_SRT_WSP_SUBJECT_CONTEXT~IS_COMPATIBLE_TO_PROXY_ of class CL_SRT_WSP_SUBJECT_CONTEXT
    While testing with web navigater it is working fine

    Mr. Snehasish Das
    Thanks for your reply.
    Actually we are trying to create a web service using BAPI. We have created the webserive and tested the WSDL in SOAmanager. It is working fine.
    And when we are trying create a logical port for CO_ESREGISTRY_WSSI in SOAmanager to publish the webservice we are getting the following error.
    SRT Framework exception: Initial value "operation table" in method IF_SRT_WSP_SUBJECT_CONTEXT~IS_COMPATIBLE_TO_PROXY_ of class CL_SRT_WSP_SUBJECT_CONTEXT
    We had specified the Open porttype WSDL document in URL for WSDL Access

  • Errors by creating new logical Port

    Hy experts,
    i have a Problem with creating a logical port for an SAP standard Web- service.
    We need to use a web- service in our Projekt.
    Because this, i try to create a test-system, using webservice.
    The real webservice, i have to use, is still under construction. So i use first an standard- service from SAP.
    I use an ERP R3 Release 700 sp18 for the consumer, an a CRM Release 701 sp3 as the service provider.
    The crm provides a service called calculator_in.
    I create a Client Proxi called ZCO_CALCULATOR_IN in ERP. Then i start the Soamanager, picked the service and try to create a logical port.
    new service name : zco_calculator_in
    name logical port : LP_ZCO_CALCULATOR_IN
    Port ist standard
    1. Error:
    WSDL-Zugriffseinstellungen: via http with an URL
    --> SRT Framework Ausnahme. Fehler bei WSDL-Zugriff: Ausnahme in Kommunikationsframework aufgetreten:Fehler in HTTP-Framework:401Unauthorizedhttp://"<<ip-Address>>":8080/sap/bc/srt/wsdl/sdef_CALCULATOR_IN/wsdl11/ws_policy/document?s
    The url works, i tried it with my explorer.
    2. Error
    WSDL-Zugriffseinstellungen: via local file
    --> SRT Framework Ausnahme. Uninstanziertes Objekt "subject sidl service" in Methode IF_SRT_WSP_CONFIG_SIDL~CREATE_CLNT_CFG_FROM_WSDL_D der Klasse CL_SRT_WSP_CONFIG_SIDL.
    Can anyone tell me, what i can do?
    Are theire 'Hinweise', that can solve the Problem?
    I hope for an fast answer, because this is critical for our projekt.
    Regards
    Torsten

    Hy experts,
    know i have another error.
    I create a new wsdl-file with the Soamanager in CRM and use this to create the logical port.
    Error:
    SXML Reader/Writer Exception
    Die Abbruchart war: RABAX_STATE
    Die ABAP-Aufrufhierarchie war:
    Method: IF_SXMLP_FRAGMENT~SET_UNPARSED_FRAGMENT of program CL_SXMLP_FRAGMENT=============CP
    Method: DOM_TO_PART of program CL_SXMLP_UTILS================CP
    Method: ALTTO_FRAGMENTS of program CL_SIDL_DESERIALIZER==========CP
    Method: ALTERNATIVESTO_FRAGMENTS of program CL_SIDL_DESERIALIZER==========CP
    Method: DESERIALIZE_CONFIG_DEFINITION of program CL_SIDL_DESERIALIZER==========CP
    Method: DESERIALIZE_WSDL11 of program CL_SIDL_DESERIALIZER==========CP
    Method: IF_SIDL_DESERIALIZER~DESERIALIZE of program CL_SIDL_DESERIALIZER==========CP
    The Dump is:
    Error in 'CX_SXMLP'.
    'CL_SXMLP_FRAGMENT=============CP'
    'CL_SXMLP_FRAGMENT=============CP'
    I hope for more help.
    Torsten

Maybe you are looking for

  • MacBook Pro odd display issue, won't run anymore

    This is a 2006 MacBook Pro 15" A1211  Intel core 2 duo 2.16 model.  Diagnostics says nothing is wrong.  The computer is no longer functional as it won't go beyond this screen.  Any ideas what failed on this?    Initially the odd video pattern was int

  • [SOLVED] mpd: Failed to stat /var/lib/mpd/music: Permission denied

    I've set up mpd according to the wiki. /etc/mpd.conf: music_directory "/var/lib/mpd/music" playlist_directory "/var/lib/mpd/playlists" db_file "/var/lib/mpd/mpd.db" log_file "/var/log/mpd/mpd.log" pid_file "/run/mpd/mpd.pid state_file "/var/lib/mpd/m

  • ITUNES only sees ipod if plugged in at system bootup time

    Anyone have and ideas? Up until 6:00PMish last night I was running ITUNES 4 without any problems. I had difficulty upgrading to version 6 awhile ago so I decided to stay on 4 for now. When I wanted to buy a song last night, the ITUNES store forced me

  • Flash player is and isn't working!!

    Ok here are the specifics Running Windows 7 x64 IE 9 with 10.3.181.26 (unsure whether its 32/64) & Firefow 5 with 10.3.181.26  (unsure whether its 32/64). Ok A while back I got the usual popup to say that there was an update and proceeded to use the

  • Doubts in  CSAP_BOM_ITEM_MAINTAIN

    Dear Friends,             Now Iam Struggle with the Function Module of  CSAP_BOM_ITEM_MAINTAIN I passed the parameter like.. Item_category = 'L' item             = 'A278'  (Changed Material-new Materia) comp_qty     = '0.178' UOM            = 'LTR' I