does the same request work if you test it from soap ui?
Re: Webservice timeout
Re: Error ME 816: CL_API_MASTER_CONDITION_MM=>PROCESS
Dear Alif,
I am getting the same issue in my system. You have found the solution.Plz help me to resolve it..
Regards,
Tamil.
Re: Problem using webservice method consumer proxy with rawdata from abap
Anyone? Any clue would be appreciated.
Custom SOAP header payload issue for consumer webservice proxy
Hello Experts,
We have a requirement to consume webservice proxy in CRM without involving PI. We have WSDL file which has many services as depicted in the first screenshot.After checking old posts, I could add custom SOAP header by using if_wsprotocol_ws_header and there is no xml parsing error for ws_header.Have used if_ixml_stream_factory to check xml parsing error for header.
'<soapenv:Header>'
'<wsse:Security soapenv:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">'
'<wsse:UsernameToken wsu:Id="UsernameToken-2">'
'<wsse:Username>user id</wsse:Username>'
'<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">paswd</wsse:Password>'
'<wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">MT0B9XFzsZJXXKmVKOsj/Q==</wsse:Nonce>'
'<wsu:Created>2015-03-30T06:29:17.407Z</wsu:Created>'
'</wsse:UsernameToken>'
'</wsse:Security>'
'</soapenv:Header>' INTO l_string.
But when my ABAP program as a whole gets executed where consumer proxy is called, then it still throws XML parsing error - undeclared namespace prefix. As mentioned, there is no parsing error for header and WSDL file as a whole in SOAP UI tool works fine,by manually adding SOAP header.
Have configured SOAMANAGER with logical port.Or any wrong setting in SOAMANAGER can cause this issue? When I tested webservice ping, it gave me attached error but I read in a SAP note that such error can be ignored.
I want to know if some more setting/coding is required if we manually add custom header to a payload? Is PI really required to implement this requirement? Payload mapping has to be done to add custom header and if that can be taken care by ABAP coding and how?
Can you please help?
BR,
Nisha Verma
Error in logical port while connecting to SAP CRM cloud
Dear Members,
I have created a logical port manually to connect to SAP CRM cloud system. But when I ping the web service I am getting below error. Please let me know how to solve this error.
SRT Framework exception: Service Ping ERROR: Error when calling SOAP Runtime functions: SRT: Couldn't create Object: ("ICF Error when creating HTTP client object by Config for URL <WSDL URL>
Re: Calling a SharePoint Web Service from SAP??
If it's a SOAP based web service, try importing the WSDL into SOAPUI and access it from there too.
Re: Consuming Webservices Exception occurred in communication framework:Error in HTTP Framework:404conn
Hi,
Check with your service provider as per basis team.It might resolve your issue.
Thanks
KH
Re: Error in logical port while connecting to SAP CRM cloud
Hello Nihar,
The error message indicates the HTTP client object cannot be created by the given URL. Please check if your URL is correct.
You also need to check what protocol is used, HTTP or HTTPS, and ensure the protocol is active in your local ABAP system as well. You can check them by t-code SMICM->Goto->Services.
Regards,
Robert
Webservices return error NosuchMethod
Hi Masters.
I am very new in WebServices and WEBDYNPROS on Java.
I generated an Webservices to connect to MDM repository that generation finished OK .
the problem is when I trying to executes that WS since SOAIU editor always return the next message of error
the xlsd I am testing is :
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:ZWS_VENDOR_MDMVi" xmlns:urn1="urn:com.sap.mdm.ws.beans.zws_vendor_mdm" xmlns:urn2="urn:com.sap.mdm.ws.beans" xmlns:urn3="urn:com.sap.mdm.core.beans">
<soapenv:Header/>
<soapenv:Body>
<urn:searchMDM_VENDORS>
<urn:query>
<!--Optional:-->
<urn1:criteria>
<!--Zero or more repetitions:-->
<urn1:namedSearchCriteria></urn1:namedSearchCriteria>
<!--Zero or more repetitions:-->
<urn1:maskCriteria>1</urn1:maskCriteria>
<!--Optional:-->
<urn1:logicalOperator>1</urn1:logicalOperator>
<!--Optional:-->
<urn1:keywordCriteria>
<!--Optional:-->
<urn2:value>1</urn2:value>
<!--Optional:-->
<urn2:expressionOperator>1</urn2:expressionOperator>
</urn1:keywordCriteria>
<!--Optional:-->
<urn1:mDM_VENDOR_NUMBER>
<!--Optional:-->
<urn2:logicalOperator></urn2:logicalOperator>
<!--Zero or more repetitions:-->
<urn2:constraint>
<!--Optional:-->
<urn2:value>4300024</urn2:value>
<!--Optional:-->
<urn2:expressionOperator>EQUALS</urn2:expressionOperator>
</urn2:constraint>
</urn1:mDM_VENDOR_NUMBER>
</urn1:criteria>
<!--Optional:-->
<urn1:resultDefinition>
<urn2:fieldListType>ALL</urn2:fieldListType>
<urn2:retrieveKeyMapping>false</urn2:retrieveKeyMapping>
<urn2:loadAttributes>false</urn2:loadAttributes>
<urn2:pageNumber>1</urn2:pageNumber>
<urn2:pageSize>100</urn2:pageSize>
</urn1:resultDefinition>
</urn:query>
<urn:reposInfo>
<!--Optional:-->
<urn3:dataLang>English [US]</urn3:dataLang>
<!--Optional:-->
<urn3:destinationName>MDM_Destination</urn3:destinationName>
<!--Optional:-->
<urn3:repositoryName>VENDOR_CATALOG</urn3:repositoryName>
<!--Optional:-->
<urn3:secureConnection>false</urn3:secureConnection>
<!--Optional:-->
<urn3:serverName>led1.la.holcim.net</urn3:serverName>
</urn:reposInfo>
</urn:searchMDM_VENDORS>
</soapenv:Body>
</soapenv:Envelope>
the error WS is returned .
<SOAP-ENV:Body xmlns:rpl="urn:ZWS_VENDOR_MDMVi">
<rpl:searchMDM_VENDORSResponse xmlns:rn0="java:sap/standard" xmlns:rn1="urn:com.sap.mdm.ws.beans" xmlns:rn2="http://schemas.xmlsoap.org/soap/encoding/" xmlns:rn3="urn:com.sap.mdm.core.base" xmlns:rn4="urn:com.sap.mdm.ws.beans.zws_vendor_mdm" xmlns:rn5="urn:com.sap.mdm.core.beans">
<Response>
<rn1:executionStatus>
<rn1:status>Fault</rn1:status>
<rn1:description>com.sap.mdm.extension.session.ConnectionManagerEx.getMdmDestinationProperties(Ljava/lang/String;)Lcom/sap/mdm/session/NetWeaverMdmDestinationProperties;</rn1:description>
<rn1:fault>
<rn1:severity>Error</rn1:severity>
<rn1:text>java.lang.NoSuchMethodError: com.sap.mdm.extension.session.ConnectionManagerEx.getMdmDestinationProperties(Ljava/lang/String;)Lcom/sap/mdm/session/NetWeaverMdmDestinationProperties;
at com.sap.mdm.ws.data.connection.AbstractWSConnectionManager.createUserSessionContextFromDestination(AbstractWSConnectionManager.java:101)
at com.sap.mdm.ws.data.connection.BasicAuthenticationConnectionManagerImpl.createAuthenticatedSessionCtx(BasicAuthenticationConnectionManagerImpl.java:72)
at com.sap.mdm.ws.data.EJBGateWay.createConnection(EJBGateWay.java:404)
at com.sap.mdm.ws.data.EJBGateWay.executeOperation(EJBGateWay.java:210)
at com.sap.mdm.ws.data.EJBGateWay.executeOperation(EJBGateWay.java:147)
at com.sap.mdm.ws.gen.ejbs.ZWS_VENDOR_MDMBean.searchMDM_VENDORS(ZWS_VENDOR_MDMBean.java:47)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
any idea which is the problem . thanks in advaned.
Can universe connect to restful web service which is not soap based
Can universe connect to restful webservice? I know it is allowed to connect to SOAP webservice. Currently is using WSDL1.1.
How about restful web service which does not have any wsdl file?
Error while Consuming webservies : incorrect value: unknown namespace http://www.w3.org/2001/xmlschema
Hi guys,
I am trying to consume External web services url http://172.31.3.48:8717/?wsdl from se80 - enterprise services - client proxy etc, which is located on our local server , but it giving me a error "liberary haldler exception" " incorrect value: unknown namespace http://www.w3.org/2001/xmlschema" I AM trying to solve this issue from last one week but failed to fix it,
please help me
here is my wsdl url http://172.31.3.48:8717/?wsdl (located locally)
Re: Webservices return error NosuchMethod
Hi,
Are you testing it through SOAP UI, check if MDM Destination values are provided during invoke.
You can test the MDM Web Service you generated through Web Service Navigator also as per the below url (Replace host and port as per ur configuration), where passing values is easy.
http://<server>:<port>/wsnavigator
Re: Unable to add custom SOAP header to consumer webservice in CRM( without using PI)
Hello Experts,
I have not found the solution yet.
Can anyone provide some insight??
BR,
Nisha Verma
Re: Webservices return error NosuchMethod
Hi Ravi. thanks for you support.
I made the test On WebService Navigator but the result was the same nosuchMethot. I am really doubing if componets are the currect version.
Do you Know a guide over currect versions MDM componets are compatibility acorde My Netweaber 7.2 I have the next componets Installed right Now.
MDM_EP | 1000.710.711.7.0.20110411202139 |
MDM_JAVA_API | 1000.710.0.13.109.20141123194400 |
MDM_WEB_SERVICES | 1000.710.710.13.0.20141201183346 |
MDM_CONNECTOR | 1000.710.711.8.47.20130404190252 |
MDM_WEB_SERVICES_RUNTIME | 1000.710.711.13.0.20141201183341 |
MDM_JAVA_WD_FRAMEWORK | 1000.710.711.7.39.20130226190744 |
Thanks in Advances
Re: Webservices return error NosuchMethod
Hi,
What is the type of WebService? Is it custom developed one or developed using MDM WebsService Generator. Through Web Service Navigator, whenever you select WebService deployed, you will be able to see all operation/method provided under it. Only, then you can select Operation and Provide Inputs for Web Service.
If you are not able to see the Operation in WebService, re-generate or check your code, if it custom built webservice.
Re: Webservices return error NosuchMethod
SOAMANAGER Monitoring
Hi Expert,
Can you please help me how to monitor message flow using SOAMANAGER.
We are designing interfaces which will connect SAP ECC and TIBCO using webservice using SOAMANAGER.
I need to know what all places in SAP ECC and SOAMANAGER we can monitor the flow of messages.
These are places where I know to monitor.
In SOAMANAGER we two tabs for monitoring : Logs & Traces and Monitoring
1. I have done configuration and can see logs in Logs & Traces->Web Service Configuration Log .
But could not find any traces in SOA Runtime Log/Trace Viewer
2. In monitoring tab, we have Message Monitoring and Sequence Monitoring
But i could not find anything. It logs into SAP system but i don't know which transaction i should go.
I checked in SXMB_MONI but could not find anything.
Please let me know the monitoring process when we design interfaces in SOAMANAGER.
Regards,
Vicky
Unable to connect to Salesforce using webservices (SOAP protocol)
Hi Team,
Our requirement is to consume Sales force WSDL (SOAP) with out PI involvement. We are having two WSDL's, one for Login to Salesforce and second one to exchange data.
We have created consumer service and logical port's. A proxy class with few methods is generated as expected.
The first consumer service for login is working fine. When we login, it returns the session ID which is valid for 2 hours. We tried to pass the session ID using the below code and then call the second service. It then gives error 'INVALID_SESSION_ID: Invalid Session ID found in SessionHeader: Illegal Session'.
Could you please let us know what am I missing? Is my approach correct?
Thanks in advance!
I have gone through the below links:
Web Services Security using ABAP Proxies
Consume SOAP WebService by SAP and add custom Header - Java Development - SCN Wiki
DATA: lr_login TYPE REF TO zlogin,
lr_action TYPE REF TO zexc,
ls_request TYPE zlogin_request,
ls_response TYPE zlogin_response,
ls_header TYPE REF TO if_wsprotocol_ws_header,
lr_system_fault TYPE REF TO cx_ai_system_fault,
lr_flight_not_found TYPE REF TO cx_sxidag_flight_not_found,
lv_name TYPE string,
lv_namespace TYPE string,
lr_ixml TYPE REF TO if_ixml,
lr_xml_document TYPE REF TO if_ixml_document,
lr_xml_root TYPE REF TO if_ixml_element,
lr_xml_element TYPE REF TO if_ixml_element,
lr_xml_node TYPE REF TO if_ixml_node,
lv_xstring TYPE xstring,
lv_string TYPE string,
ls_disp_req TYPE zexc_reque,
ls_disp_resp TYPE zexc_respo.
TRY.
CREATE OBJECT lr_login
EXPORTING
logical_port_name = 'ZLOGIN_PORT'.
CATCH cx_ai_system_fault INTO lr_system_fault.
ENDTRY.
ls_request-username = 'zzz.abc.com'.
ls_request-password = 'abcde123'.
TRY.
CALL METHOD lr_login->login
EXPORTING
input = ls_request
IMPORTING
output = ls_response.
CATCH cx_ai_system_fault INTO lr_system_fault.
WRITE:/ 'System Fault'(sye). WRITE:/ lr_system_fault->errortext. EXIT.
CATCH zsfcx_login_fault .
WRITE:/ 'Login Fault'. EXIT.
CATCH zsfcx_unexpected_error_fault .
WRITE:/ 'Unexpected Error'. EXIT.
CATCH zsfcx_invalid_id_fault .
WRITE:/ 'Invalid Fault'. EXIT.
CATCH cx_ai_application_fault .
WRITE:/
'Application fault'(apf).
EXIT.
ENDTRY.
IF ls_response-result-session_id IS NOT INITIAL.
TRY.
* create instance
CREATE OBJECT lr_action
EXPORTING
logical_port_name = 'ZEXC_PORT'.
* get ws_header protocol
ls_header ?= lr_action->get_protocol('IF_WSPROTOCOL_WS_HEADER').
CONCATENATE
'<Soap:Header>'
'<ns2:session xmlns:ns2="https://salesforce.com/services/Soap/c/00Dc0000003ue9S">'
'<SessionID>'ls_response-result-session_id'</SessionID>'
'</ns2:session>'
'</Soap:Header>'
INTO lv_string.
* convert to xstring
lv_xstring = cl_proxy_service=>cstring2xstring( lv_string ).
IF NOT lv_xstring IS INITIAL.
* create ixml dom document from xml xstring
CALL FUNCTION 'SDIXML_XML_TO_DOM'
EXPORTING
xml = lv_xstring
IMPORTING
document = lr_xml_document
EXCEPTIONS
invalid_input = 1
OTHERS = 2.
IF sy-subrc = 0 AND NOT lr_xml_document IS INITIAL.
lr_xml_root = lr_xml_document->get_root_element( ).
lr_xml_element ?= lr_xml_root->get_first_child( ).
* add header element by element to soap header
WHILE NOT lr_xml_element IS INITIAL.
lv_name = lr_xml_element->get_name( ).
lv_namespace = lr_xml_element->get_namespace_uri( ).
ls_header->set_request_header( name = lv_name namespace = lv_namespace dom = lr_xml_element ).
lr_xml_element ?= lr_xml_element->get_next( ).
ENDWHILE.
ENDIF.
ENDIF.
* call outbound
ls_disp_req-data-account_phone = '123-456-7890'.
ls_disp_req-data-billing_city = 'HOUSTON'.
ls_disp_req-data-billing_postal_code = '77070'.
ls_disp_req-data-billing_state = 'TX'.
ls_disp_req-data-billing_street = 'Willow Chase'.
ls_disp_req-data-check = '34567'.
ls_disp_req-data-reason_code = 'Test'.
ls_disp_req-data-salutation = 'Mr.'.
ls_disp_req-data-subject = 'Amount not received'.
TRY.
CALL METHOD lr_action->insert_apdispute_case
EXPORTING
input = ls_disp_req
IMPORTING
output = ls_disp_resp.
CATCH cx_ai_system_fault INTO lr_system_fault.
WRITE:/ 'System Fault'(sye). WRITE:/ lr_system_fault->errortext. EXIT.
CATCH cx_ai_application_fault .
WRITE:/
'Application fault'(apf).
EXIT.
ENDTRY.
CATCH cx_ai_system_fault INTO lr_system_fault.
WRITE:/ 'System Fault'(sye). WRITE:/ lr_system_fault->errortext. EXIT.
CATCH cx_ai_application_fault .
WRITE:/
'Application fault'(apf).
EXIT.
ENDTRY.
ENDIF.
Regards,
Aravind
Re: incorrect value: unknown namespace http://www.w3.org/2001/xmlschema
Re: incorrect value: unknown namespace http://www.w3.org/2001/xmlschema
I removed this statement and proxy generated successfully but this statement might be referencing another XMl file because i have to get data after giving user name password, so please give me way to correct this statement.
Secondly after creating the logical port from soamanger tcode, WHEN I test this webs service from se80 it giving me this error "SoapFaultCode:3 SOAP header To was not" .
please help to solve both of these problems as i got stuck.
Thanks