Hello Experts,
I have to consume a BOBJ Web Service Session in SAP Netweawer.
Hello,
We have SAP NetWeaver 2004s and BusinessObjects Enterprise 12.0.
I've created an proxy object on the SAP Netweaver side in the following way :
se80->Create->Enterprice Service->Service-Consumer->URL/HTTP Destination-> URL = http://<host>:8080/dswsbobje/services/Session?wsdl
Then I've created an Port using soamanager.
I't seems to be working, becouse methods like : getServerInfo, getServerInfoDetails are working ok.
Now I have a problem with the method Login. As parameter for this method I see only structure CREDENTIAL, which have only one field CONTROLLER (PRXCTRLTAB).
I've expected to have in the Parameters for this method a structure EnterpriceCredential with fields like username, password and so on - but its not.
Could You help me ?
Greetings
Wojciech
Here my coding :
REPORT ztest.
DATA text TYPE string.
DATA : lr_proxy TYPE REF TO zsco_session_port. " its my session proxy object
DATA : oref TYPE REF TO cx_root.
TRY.
CREATE OBJECT lr_proxy
EXPORTING
logical_port_name = 'LP1'.
CATCH cx_ai_system_fault INTO oref.
text = oref->get_text( ).
ENDTRY.
DATA get_server_info_in TYPE zsget_server_info_soap_in.
DATA get_server_info_out TYPE zsget_server_info_soap_out.
THIS IS WORKING WELL
TRY.
CALL METHOD lr_proxy->get_server_info
EXPORTING
input = get_server_info_in
IMPORTING
output = get_server_info_out.
CATCH cx_ai_system_fault INTO oref..
CATCH zscx_dswsexception INTO oref..
CATCH cx_ai_application_fault INTO oref..
ENDTRY.
break-point.
AND THIS IS ENDINNG WITH EXCEPTION
TRY.
CALL METHOD lr_proxy->login
EXPORTING
input = login_in
IMPORTING
output = login_out.
CATCH cx_ai_system_fault INTO oref.
text = oref->get_text( ).
_ CATCH zscx_dswsexception INTO oref. this exeption is being called_
text = oref->get_text( ).
CATCH cx_ai_application_fault INTO oref.
text = oref->get_text( ).
ENDTRY.
Credential is base type, that ExterpriseCredential extends.
You need to specify for the Credential the EnterpriseCredential message, that has the logon properties you want.
Sincerely,
Ted Ueda
Hello,
I struggle with exactly the same problem accessing the login webservice of the BOE server. Unfortunately the previous answer did not help me since I don't understand it ![]()
Anyone able to enlighten me?
Edit: Nevermind, I just found out by myself.
Thanks,
Sebastian
Edited by: Sebastian Solzbacher on Nov 25, 2011 9:43 AM
OK, now I have the fields of the EnterpriseCredentials available in my ABAP structure, but when I call the login method, I get an exception from the BOE server:
com.businessobjects.dsws.session.impl.CredentialImpl cannot be cast to com.businessobjects.dsws.session.EnterpriseCredential
Hi Sebastian,
why not let others know what you did to get working.
I'm also stuck with credentials and enterprise_credentials. I can not assign the login_in-credentials value.
Please advice.
Thank you very much in advance!
...
Thorsten
Hi,
finally where are u passing text from text = oref->get_text( ) ? and how to pass?
I am calling outbound proxy inside inbound proxy. I am not sure how to pass the final error string which is text in ur case.