on 04-30-2012 4:31 PM
Hi there,
i write an function where i want to call an webservice.
********************************************************************************
* Proxy
********************************************************************************
clear: ls_request, ls_response.
TRY.
CREATE OBJECT wsproxy
EXPORTING logical_port_name = 'LP_SRM_CM'.
CATCH cx_ai_system_fault into lo_sys_exception.
ENDTRY.
********************************************************************************
* Request-Strukture
********************************************************************************
ls_request-model-keys-CONFIGURATION_ITEM-content = 'H054152'.
TRY.
CALL METHOD wsproxy->retrieve_device
EXPORTING
input = ls_request
IMPORTING
output = ls_response.
CATCH cx_ai_system_fault into lo_sys_exception .
CATCH cx_ai_application_fault .
ENDTRY.
In the framework i will be asked for User/PW for the called method of the SAP generated Proxy-Class I? 😞
I found these definition in the Enterprise Service definition.
...but i can't fill in the User/PW information.
Thanks in advance...
--Bernward Henkel
Hi Bernward,
Can u tell me what is " Ressource : CASM " in your first screen shot (In first Post).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jitendra,
i got it.
when i defined the logical port in SOAMANAGER as a "manual configuration" i was possible to fill in an User/PW. The transport-binding was the same as the transport-binding from the wsdl-generated logical port.
So, now it works fine.
Thanks for your questions... they motivite me to continue 🙂
--Bernward
Hi Bernward,
Please check below link..
http://boardreader.com/thread/Popup_for_logon_data_in_proxy_to_webserv_6w6qnX13z19.html
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jitendra,
thanks for the link. It guides me to an example working with PI. I want to connect to a NoneSAP System. There must be a place in SAP definition, where i can define User/PW. I found neither nothing in SICF nor in SM59. In SOAMANAGER, where i defined the logical port... i can't fill in logon credential in edit mode !?
.
There must be a place for the logon credentials. But where to find it ?
--Bernward
Hi Bernward,
Right now I do not have access to SOMANAGER so unable to give you snapshots.. you can check two things.
1.In logical port definition there is check box "Username/Password" ,have u checked it ?
2.Some times we have to maintain proxy credentials in SM59 in Extras->Http Proxy Configuration
->Http/Https log tab.
Many Thanks,
Jitendra soni
Hi Jitendra,
on logical port definition with SOAMANAGER i found these...
...but that didn't work. Than, there is another tab for USer/PW...
... it doesn't work too... because it's only for defining the proxy-server himself.
But the logical port definition creates automatically an proxy entry in SM59 unter http log tab.
But here i can't edit the login credentials. I think it's because it was automatically generated.
Any suggestions where to find/create User/PW to access the wsdl in ABAP program without to ask for User/PW !?
Thanks and regards
--Bernward
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.