How to programmatically create a logical port to consume external webservic
Hi All,
I have created a logical port in soamanager transaction manually to consume a web service.
I have a requirement where I need to create this logical port programmatically,so that i can release the proxy class
of that web service and port will be automatically get created in all systems when the user uses it for first time in each system.
It will be helpful if you provide any method or function module which can do that.
Thanks in advance..
Hello,
Creation of Logical Port using LPCONFIG is explained in this link [http://help.sap.com/saphelp_nw04/helpdata/en/16/285d32996b25428dc2eedf2b0eadd8/content.htm]. It can also be created using SOAMANAGER.
Thanks,
Venu
Similar Messages
-
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
AndyHi Andy,
Please check this Link: https://cw.sdn.sap.com/cw/docs/DOC-45012
Regards,
Naresh B -
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
TorstenHy 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 -
Error creating a logical port from a WSDL in tx SOAMANAGER
I created a client proxy successfully in SE80, using a WSDL. I then run tx SOAMANAGER to create the logical port.
I type the service name, logical port name, and specify "WSDL Based Configuration". I select to load the WSDL from a file on my pc. I use the same WSDL I used to (successfully) define the client proxy. I get the error message:
SRT Framework exception: Error in WSDL parsing: Exception occurred in library handler
Any ideas?
thanks
mattIF possible can u type in ur WSDL, it might be the WSDL def itself. Also can u tell me what u r trying to do, SOAMANAGER has been super tricky for me, try binding it with the third option if u trying to test ur service
Edited by: Gokul Muthuswamy on Apr 24, 2009 7:08 PM -
Hi ,
I am newbie here . Now I have problem while creating a logical port
I got a error " Es fehlt die Berechtigung für diese Funktion" in German.
It means that I 'm not allowed to perform this function.
Does anybody have the similar experience ?
Thanks a lot
YANGhi
good
go through this link
http://help.sap.com/saphelp_nw04/helpdata/en/16/285d32996b25428dc2eedf2b0eadd8/content.htm
http://help.sap.com/saphelp_nw70/helpdata/en/45/f9f02cf3e41ecce10000000a1553f7/content.htm
reward point if helpful.
thanks
mrutyun^ -
Example wsdl and logical port for consumer proxy anyone ?
Hi,
Could please somebody give me an example of external WSDL file and logcial port created for the WSDL file in SOAMANAGER ?
I need to create manually logical port for my consumer proxy and I am missing something because my logical port is not active.
Any example is more than welcome.
I need to know how to populate fields manually on the following tabs based on the info in a WSDL file:
Consumer Security Additional Information Web Service Addressing Messaging Transport settings Message Attachments Operation specifi
Thanks and Regards
Agnieszka
The message, I am getting, when creating logical port is:
Operation 'SrtFmStatefulTf' not found [NS: 'urn:sap-com:document:sap:soap:functions:mc-style']
I think that maybe something is wrong with my wsdl.
Edited by: Agnieszka Domanska on Nov 17, 2010 5:41 PMHi Milan,
this kind of error occurs when there is no service and end point description in the WSDL of provider who's service you are trying to consume using Consumer Proxy.
Just open the provider's WSDL URL that you have given while creating Logical port for the consumer proxy and check if service and end point exists there.
Thanks
Sunil Singh -
Error in Logical port for Consumer proxy in SOAMANAGER
HI Experts,
While creating Logical port for Consumer proxy in SOAMANAGER I am facing problem
"SRT Framework exception: 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 ".
Kindly suggest.Hi Milan,
this kind of error occurs when there is no service and end point description in the WSDL of provider who's service you are trying to consume using Consumer Proxy.
Just open the provider's WSDL URL that you have given while creating Logical port for the consumer proxy and check if service and end point exists there.
Thanks
Sunil Singh -
How can I create a new folder in an external disk that is connected via USB to my Mac?
How can I create a new folder in an external disk that is connected via USB to my Mac?
Just like you would create a new folder anywhere. Open the drive's icon from your desktop or the Finder, and click shift-command-N. (Or use the Finder menu if you prefer - File - New Folder).
If you can't create a folder, your drive may be the wrong format (you can't write to a Windows/NTFS formatted drive, for example). You'll have to back up any files you have on there, and then use Disk Utility to reformat it to Mac Extended (if it will only be used on a Mac) or MS-DOS format (if you want to share it with a PC).
Matt -
Error while creating logical port for Consumer Proxy in SOAMANGER
Hi,
While creating logical port for my consumer proxy in SOAMANGER, I am getting the error shown below
SRT Framework exception: HTTP: Current user does not have the required authorization to access the HTTP destination
I have searched in the forums but none of the answers helped me.
I have specifed my PI user ID and password and the user has the followwing roles assigned to it.
SAP_BC_WEBSERVICE_SERVICE_USER
SAP_BC_WEBSERVICE_ADMIN_TEC
SAP_BC_WEBSERVICE_CONSUMER
SAP_BC_WEBSERVICE_ADMIN
Current user in the error message refers to the PI user that i have specified or the user with which i have logged in the backend ABAP system?
Please help me reslove this issue.
Thanks and regards
Sreehari NambiarHi,
Please add the following roles as well.
SAP_BC_WEBSERVICE_ADMIN_BIZ
SAP_BC_WEBSERVICE_DEBUGGER
SAP_BC_WEBSERVICE_OBSERVER
Also make sure that you are doing the role comparison after adding all SAP* roles in your profile.
Let me know if this works?
Thanks,
Sridhar -
How to Programmatically Create and Activate an ABAP Class
Hi,
I have a requirement to programmatically create and activate an ABAP class that implements a 'pre-defined' interface.
Do you have any ideas how this can be done?
Thanks,
Shreevathsa SHi,
Try if GENRATE SUBROUTINE POOL keyword can be of your help.
See the below example,
DATA itab TYPE TABLE OF string.
DATA prog TYPE string.
DATA class TYPE string.
APPEND `program.` TO itab.
APPEND `class main definition.` TO itab.
APPEND ` public section.` TO itab.
APPEND ` class-methods meth.` TO itab.
APPEND `endclass.` TO itab.
APPEND `class main implementation.` TO itab.
APPEND ` method meth.` TO itab.
APPEND ` message 'Test' type 'I'.` TO itab.
APPEND ` endmethod.` TO itab.
APPEND `endclass.` TO itab.
GENERATE SUBROUTINE POOL itab NAME prog.
CONCATENATE `\PROGRAM=` prog `\CLASS=MAIN` INTO class.
CALL METHOD (class)=>meth.
Regards,
Sesh -
How to check web service (logical port) accessibility
Before call some web services, a check needs to be done to make sure the web service connection is accessible. In fact, a logical port is used; and its accessibility needs to be checked in ABAP code.
Besides calling the web service method itself and catching the exception, is there any other general way to check whether the web service connection available?
more details in respect of this question:
The executing of web services will take a relative long time while sometimes only the availability checking for web services is needed. So I'm finding other ways to check that.
In the code, the logical port will be used for accessing web services. Any way to check whether a logical port works OK in code?
Thanks!
Said
Message was edited by:
Sayid TongHi Prashant,
Thanks for your attention.
Do you mean give the web service url and check it? Neither do I know which method can be used in this regarding from program RSDEMO_HTML_VIEWER.
I'd like to give more details in respect of this question:
The executing of web services will take a relative long time while sometimes only the availability checking for web services is needed. So I'm finding other ways to check that.
In the code, the logical port will be used for accessing web services. Any way to check whether a logical port works OK in code?
Thanks.
Said -
How to programmatically create an employee with BAPI
Is there a BAPI to programmatically create an employee number? What parameters must be provided?
HI Chris,
You can check the follwing links
Re: BAPI for creating a BP in Employee role
http://www.sapbapi.com/bapi-list/
Regards,
Sandip -
How do I move existing Logic projects to an external hard drive?
My internal hdd is getting close to capacity on my iMac so i've purchased an external 500GB USB hdd.
I have about 10 existing projects that i'd like to move to my new drive.
These projects consist of WAV files imported from a portable digital recorder, fresh recorded tracks using my audio interface, and midi tracks. Most of my tracks are at the 'final mix' stage and are sounding pretty sweet
Would it benefit me to move my Logic projects to my external drive, or should I scrap the idea and move my huge itunes library instead? If it is worth moving my Logic projects - what is the best way to do it? I really don't want to have to remix, re-record anything. I also don't want to get lost in Finder.
I'm quite new to Logic but I intend to 'use best practice' if possible. I get the impression that using an external hard drive with Logic may offer performance gains. My audio interface is firewire (M-Audio FW 410). The USB external hdd was brought to avoid firewire conflicts.
Any tips would be most welcome.
Thanks in advance. RichIn theory, you should be able to copy all of your projects to the external and open and use them exactly as before with no problems and no need to re-mix anything...
BUT, and its a big BUT...
Are you sure all of your projects were started AS projects with all the audio files, instrument samples etc. stored in the relevant folders in the project's folder?
Before doing anything, go through all of your "projects", make sure they ARE projects (there should be a project folder, the song file stored in the project folder, with audio, undo etc. folders within the main project folder for each one) - if they are not, do a "save as project" - it should give you a number of options to copy any external audio files etc. to the project folder. If for any reason it doesn't I would then choose "project - consolidate" from the main file menu, which will give you the same options. Even if you are SURE that all your projects ARE projects, I would choose "consolidate project" just to be sure...
You should then be able to proceed... but don't delete the originals until you are sure everything is working fine. I would even suggest backing up the originals in another location (it could even be a back-up folder on the same external), so you can just move them straight back to the original location if there are any problems.
When I first started using Logic many years ago there was no option to save projects, and I learnt the hard way to create the folder structure that logic now does for you. But even so, unless you started out knowing how to use this function, its possible some of your audio files are still stored in the wrong location. "Consolidate project" should solve this.
As for the USB HD - I would avoid using a USB drive for audio. It is said that USB 2 is faster than firewire 400, but I don't know any musician or film maker that would use one.
You can daisy chain firewire devices with no problems in my experience. If you do experience problems I might suggest you search up on any posts to do with M-Audio interfaces and Macs...
Good Luck! -
Hello,
I'm trying to use a Prologix USB GPIB controller to control GPIB
instruments, and I would like to have a virtual serial (VISA) port for
*each instrument*, as is the case with a normal GPIB controller with a
standard NI driver. However this is not what the Prologix driver
provides -- it provides a single VISA virtual serial port for the
entire controller. To address the instrument with GPIB address 11,
you first send "++addr 11" to the serial port, and then you're talking
to instrument 11. However, this means I have to change all old
Labview programs.
Is it possible to create a "wrapper" function of some kind that will
define a virtual serial (VISA) port for each *instrument* on the
controller? For example, to talk to GPIB instrument 11, call it
ASRL3::11::INSTR, each time it is written to it would have to write to
the virtual serial port of the controller, say ASRL3::INSTR, first "+
+addr 11" and then the command that is sent to it.
A clearer explanation of the difference (i.e. incompatibility), and of
my objective:
1) A normal GPIB controller with NI driver: I go to the NI
Measurement & Instrumentation Panel, under GPIB, and Scan for
Instruments; all the live instruments show up; subsequently when I
want to use Labview programs that use VISA ports, the VISA drop boxes
allow me to choose a different port for each instrument, e.g.
"GPIB0::11::INSTR", "GPIB0::12::INSTR" would be instruments at
addresses GPIB 11 and GPIB 12.
2) The Prologix GPIB controller that plugs into a USB port: In
Labview you get a *single* VISA virtual serial port, ASRL3::INSTR, for
the entire GPIB0 controller. Therefore to address GPIB instrument 11,
you write "++addr 11" to the virtual serial port ASRL3::INSTR, and
then you are communicating with device 11, so you can write and read
ASRL3::INSTR to talk to that device. Then to talk to device GPIB 12,
you write "++addr 12" to the same VISA port, and then you are talking
to that device. The problem is that this requires recoding all
Labview code, whereas I would like to be able to use the same program
either with a normal or with a Prologix GPIB controller. Therefore, I
would like to create code that scans the controller for all GPIB
attached devices and creates VISA ports for all. Such ports, when
written to, would have to first write "++addr DEVICENUM" to
ASRL3::INSTR (i.e. the port of the GPIB-USB controller) where
DEVICENUM is the GPIB address of the instrument corresponding to that
port, and then would have to do a write or read or whatever function
is being done on that instrument VISA port.
I haven't figured out if it is possible to do this easily. Help and
pointers on where to look for hints would be much appreciated. Many
thanks!
MilosMy first impression is that if you don't want to make any changes at all to existing programs is that the wrapper you need is one around VISA. You would need to intercept all of the calls into the NI VISA driver. If you create your own visa32.dll and in there, change the addressing and then call the real VISA driver, you might (repeat, might) get something to work. If this would even work, you still might find that you have to make significant changes anyway. The serial connection is going to be considerably slower, and interface specific functions such as service request handling, bus triggering of multiple instruments, etc., would be difficult to impossible. This would be a lot of work, imho, to just save a couple of hundred dollars over a real GPIB controller. I've seen this Prologix device before and have even used NI's RS-232->GPIB controller. The Prologix intended use to me seems to me more for a hobbyist or very casual user. Of course, I'm used to having multiple GPIB instruments worth 10s/100s of thousands of dollars and the cost of an fully compliant GPIB controller is just lost in the noise.
-
How to programmatically create a site column and a content type
Hello,
I'd like to create a site column (let's say a field text) and a content type, only using c# -i.e. I don't want to add new item/column and then xml. This code will be added to a FeatureActivated.My code is :
public override void FeatureActivated(SPFeatureReceiverProperties properties) {SPWeb rootweb = (SPWeb) properties.Feature.Parent;
SPFieldText field = new SPFieldText(SPfiledscollection???, "field1");
if (field != null)
rootweb.Fields.Add(field)
rootweb.Update();
} SPContentType newContentType = new SPContentType(spcntenttypeId??, SPContentTypeCollection ??, "content1");
rootweb.ContentTypes.Add(newContentType);
rootweb.Update();
Are there any sample codes out there? I've only found samples using xml - which has an irritating "feature"
Thank you
ChristosNice code and it helped me understand. Some small questions. I'm trying to make all the "data" for a (sub)web site.
So, I think, my steps are:
1. create site columns+content type
2. create list
3. create a lookup site column that uses the list on <2>
4. create content type that uses the site column on <3>
5. Create the list for the content type on <4>
My confusion is: should I use one feature for everything? Your code is using scope=site, so i need to "hardcode" the web site's name. I don't mind doing that , I just don't know how to use scopes in features for creating data.
Thank you
Christos
Maybe you are looking for
-
Firefox window will not move across the desktop
I am running F.F. version 34.0.5 on a iMac with Retina display (32 GB RAM) and Mac OS X 10.10.1 I can resize the Mozilla window but I cannot move it around the screen. I have tried resetting Firefox and also turned off hardware acceleration. I've tri
-
Reserved ip address for vpn client ?
I need to find a way to have the 10.8 server vpn service give the same ip address when a vpn client connects, is this possible? By default, every time a client connects, then disconnects and connects again they will get the next incremental ip addr
-
Loadjava versus DBMS_JAVA
Is there any difference wich method to use when loading java to a database - loadjava utility or DBMS_JAVA package? When it is better to put all the jars to the server, and use DBMS_JAVA instead of loading directly from a client PC using loadjava uti
-
Hii, I have a require to modify a report layout. But in report i coulbn't see the layout of the report in layout model. Only i can see the output to run by Ctrl+R and the result display directly in Live previewer. How can solve it.??
-
Photoshop Elements 13 installion error Exit Code 7 on Windows 8
I just bought Photoshop Elements 13 for my laptop. I have Windows 8, which I purchase before I was told Windows 8 is terrible. Now when I try to install, it gives me an error that says Exit Code 7: "This installer does not support installation on a 6