How to access SOAP header without using SOAP message handler
I have a requirement to retrieve SOAP header information within each web services operation. So I can't use SOAP message handler. Is there any way to do that? BTW, I am not using workshop.
Thanks.
Howeve how can I put data into soap header in UDF? DynamicConfiguration won't work for soap header, right?
Which data do you want ot put into the Header section.
ASMA or Dynamic Configuration is used to read/ put the details from/ into the header elements.....
Refer: http://help.sap.com/saphelp_nw04/helpdata/en/43/0a7d1be4e622f3e10000000a1553f7/frameset.htm
From the help section:
This information is not located in the payload of the message, but in additional message header fields.
Regards,
Abhishek.
Similar Messages
-
SOAP to SOAP scenario without using ccBPM(PI 7.3)
Hi experts,
We have a requirement.
SOAP1-> SAP PI->SOAP2 (Synchronous), and after getting the response from SOAP2 we need to do a lookup in SOAP3(Using values from both SOAP1 request and SOAP2 response).
We don't have ABAP stack in PI 7.3
Any idea, how can we achieve this without using ccBPM?.Any help is appreciated.
Thankis,
DhanishWe have achieved this using SOAP lookup in response message mapping.
But storing of dynamic variables during snynchronous calls is not possible .
Thanks,
Dhanish -
Error in soap header when use webservice consumer proxy
Hi all,
I create a webservice consumer proxy to external server. the webservice provider is .Net and it required a message level security.
The soap message should include a soap header, like this:
<SOAP-ENV:Header>
<m:AuthHeader xmlns:m="http://tempuri.org/">
<m:Username>test1</m:Username>
<m:Password>test</m:Password>
</m:AuthHeader>
</SOAP-ENV:Header>
I have found many information from here. Now I used IF_WSPROTOCOL_WS_HEADER in my program, like this:
REPORT zws_jp_test01.
DATA: lo_zws_jp_co_service_soap TYPE REF TO zws_jp_co_service_soap .
DATA: lo_fault TYPE REF TO cx_ai_system_fault.
DATA: lo_appl_fault TYPE REF TO cx_ai_application_fault.
TRY.
CREATE OBJECT lo_zws_jp_co_service_soap
EXPORTING
logical_port_name = 'ZWS_JP_LP4'.
CATCH cx_ai_system_fault INTO lo_fault.
MESSAGE lo_fault TYPE 'I'.
ENDTRY.
DATA: output TYPE zws_jp_create_job_ad_soap_out .
DATA: input TYPE zws_jp_create_job_ad_soap_in .
DATA: lr_ws_header TYPE REF TO if_wsprotocol_ws_header.
DATA: lv_name TYPE string,
lv_namespace TYPE string.
DATA l_xstring TYPE xstring.
DATA l_string TYPE string.
DATA: ixml TYPE REF TO if_ixml,
xml_document TYPE REF TO if_ixml_document,
xml_root TYPE REF TO if_ixml_element,
xml_element TYPE REF TO if_ixml_element,
xml_node TYPE REF TO if_ixml_node.
lr_ws_header ?= lo_zws_jp_co_service_soap->get_protocol(
if_wsprotocol=>ws_header ).
CONCATENATE
'<SOAP-ENV:Header>'
'<m:AuthHeader xmlns:m="http://tempuri.org/">'
'<m:Username>test1</m:Username>'
'<m:Password>test</m:Password>'
'</m:AuthHeader>'
'</SOAP-ENV:Header>'
INTO l_string.
l_xstring = cl_proxy_service=>cstring2xstring( l_string ).
CALL FUNCTION 'SDIXML_XML_TO_DOM'
EXPORTING
xml = l_xstring
IMPORTING
document = xml_document
EXCEPTIONS
invalid_input = 1
OTHERS = 2.
IF sy-subrc = 0 AND NOT xml_document IS INITIAL.
xml_root = xml_document->get_root_element( ).
xml_element ?= xml_root->get_first_child( ).
WHILE NOT xml_element IS INITIAL.
lv_name = xml_element->get_name( ).
lv_namespace = xml_element->get_namespace_uri( ).
lr_ws_header->set_request_header(
name = lv_name
namespace = lv_namespace
dom = xml_element
must_understand = SPACE
xml_element ?= xml_element->get_next( ).
ENDWHILE.
ENDIF.
input-job_ad-id = 0.
input-job_ad_text-id = 0.
input-job_ad-publish_location = 1.
TRY.
CALL METHOD lo_zws_jp_co_service_soap->create_job_ad
EXPORTING
input = input
IMPORTING
output = output.
CATCH cx_ai_system_fault INTO lo_fault .
MESSAGE lo_fault TYPE 'I'.
CATCH cx_ai_application_fault INTO lo_appl_fault.
MESSAGE lo_appl_fault TYPE 'I'.
WRITE: output-create_job_ad_result-id.
ENDTRY.
But there is error when I run this program. the error is "SoapFaultCode:1"
In tcode ST11, I see this log:
E SOAP_RUNTIME 20100624004837.9280000 : CL_SOAP_RUNTIME_CLIENT
->EXEC_PROCESSING SOAP Fault Exception caught: : SOAP header To
was not understood.
btw the release is 701.
Any one can navigate me to solved the problem?Hi,
I have the same problem as you did before and I posted my code in this [thread|Change SOAP Header: Consuming Webservice;.
In order to to solve your problem, I need to know what is the header that you want to add into the header, what is WSDL, and have you try testing that web service using other tool such as SOAPUI or XMLSPY and what is the result of testing tool?
Regards,
Chaiphon -
How to send images through PI using SOAP adapter
hi,
Can anybody tell me how to send images through PI using SOAP adapter.
Regards ,
LoveenaHi Loveena,
only as attachments of a SOAP message.
Regards,
Udo -
Access to SOAP header in synchronous SOAP response?
Hi,
Scenario: message received via synchronous SOAP adapter call.
In the response which is sent back to the sender i can influence the SOAP body but not the SOAP header.
Is there a possibility to manipulate/add/map the SOAP header in synchronous response messages?
Thank you very much in advance for your hints.
Greetings
MichaelHi Christophe,
per default PI is sending back something like this
<SOAP:Envelope xmlns:SOAP='http://schemas.xmlsoap.org/soap/envelope/'>
<SOAP:Header/>
<SOAP:Body>
Payload, which can be accessed via mapping
</SOAP:Body>
</SOAP:Envelope>
but required are some fields in the Header tag like:
<SOAP:Envelope xmlns:SOAP='http://schemas.xmlsoap.org/soap/envelope/'>
<SOAP:Header>
<SOAP:ABC>date</SOAP:ABC>
</SOAP:Header>
<SOAP:Body>
Payload, which can be accessed via mapping
</SOAP:Body>
</SOAP:Envelope>
Greetings
Michael -
SOAP to RFC using fault message
Hi All,
I get a request from Web-service by using the SOAP adapter and pass the same to the SAP ECC for geting the response. I do not need a message mapping as i am passing the same data to SAP ECC. I need to track the errors in fault messages.
Q1. Can i use the fault message handling without using the message mapping.
Q2. If web-service is down and i can't send the response back then do i need to using the fault messageing concept or is there any other way i can get the details back in XI.
If we can use the fault message without using message mapping concept, can someone help me out.
Thanks,
JGDYou are using SOAP sender and Proxy receiver synchronous
>>Q1. Can i use the fault message handling without using the message mapping.
Request mapping, Response mapping and fault message mapping - all these three constitutes message mapping.
>>Q2. If web-service is down and i can't send the response back then do i need to using the fault messageing concept or is there any other way i can get the details back in XI.
If the webservice is down , you dont get message, then you dont need fault message. Fault message is used only for business exceptions and more. If your ECC is down due to some exceptions or errors, you can trace those messages in proxy coding and pass it up to soap as fault message as response.
In this case, you dont need at all. -
How do i install opensolaris without using the virtual box??
hi.
i am new to solaris
i am currently using a windows XP OS
i got down the opensolaris cd from SUN
how do i install opensolaris without using a virtual box ?The OpenSolaris CD is a "Live CD". You can boot off of the CD, and either run the OpenSolaris operating system directly, or you can select the "Install" icon on the LiveCD desktop. You can find full instructions here: http://dlc.sun.com/osol/docs/content/IPS/getst1.html
Do you want to keep your Windows OS on the disk? If so, then you want to follow the instructions for partitioning your disk (unless you already have a spare partition).
-- Alan -
How to connect to AD without using ADWS?
How to connect to AD without using ADWS? Is it possible to do it? If yes, can teach me how to connect to AD and find their attributed?
Hi Noobycy,
There are few tools to find AD attributes without ADWS. See options you have below
1.ADFIND -
http://www.joeware.net/freetools/tools/adfind/ This is a command Line tool
2.
The ADSIEDIT tool
from the Windows Support Tools is a great tool to "explore" the AD.
http://technet.microsoft.com/en-us/library/cc731547.aspx
3. ADUC -
http://www.boostsolutions.com/blog/how-to-find-attributes-of-objects-in-active-directory/
Regards, MassonTech -
Hello! I'm out of the country and all my iWeb information is on my computer at home. Now I need to make changes on the webpage... how can i do that without using the computer i made the page on? Thank you!!
iWeb uses the domain.sites2 files to store its assets.
You'll find it here :
~/Library/Application Support/iWeb/
where ~ is your Home directory.
If you take a computer with you, you have to store that file in the same location.
It's not different from taking documents with you if you want to edit them.
A solution is to remotely control your computer at home.
TeamViewer, LogMeIn, Apple Remote Desktop or any VNC application you can use, like "Chicken of the VNC". -
Note:304522.1 How to Move Queue Tables without using export import
Trying to use the pkg available in Metalink "Note:304522.1 How to Move Queue Tables without using export import"
Using the 10.1.0.x and upwards Package, I'm getting the following error on a single consumer queue table with an xmltype payload:
SQL> exec move_aqt.move('XFORM_TEST_INT','INTERFACE_XML_QUEUE','SMALLBLOCK');
BEGIN move_aqt.move('XFORM_TEST_INT','INTERFACE_XML_QUEUE','SMALLBLOCK'); END;
ERROR at line 1:
ORA-20000: ORA-06502: PL/SQL: numeric or value error
ORA-06512: at "SYS.MOVE_AQT", line 652
ORA-06512: at line 1
We've tried in multiple environments, always with the same results.
Trace file shows:
*** 2006-11-08 10:06:47.154
*** SERVICE NAME:(SYS$USERS) 2006-11-08 10:06:47.147
*** SESSION ID:(379.954) 2006-11-08 10:06:47.147
qtable move procedure starting execution at 08-11-2006 10:06:47 for queue table XFORM_TEST_INT.INTERFACE_XML_QUEUE
qtable move procedure experienced an exception at 08-11-2006 10:06:47
qtable move error message ORA-06502: PL/SQL: numeric or value error
qtable move procedure ended execution at 08-11-2006 10:06:47
Can anyone help with this? Has anyone used this before successfully (or not successfully). We urgently need this working today to test moving our queue table into a tablespace with a smaller block size for performance reasons in production.
Thanks for the help!
TonyThank you,
Yes we've done that. They've confirmed a problem with the links/scripts on the note. The 10.1 and up version was not really 10.1 and up.
As they would not have a new version available in time for the move we needed to perform, we switched our approach to using dbms_redefinition instead.
Thanks for the reply,
Tony -
How we generate Surrogate Keys without using identify column
Hi All,
How we generate Surrogate Keys without using identify column.
Regards,
ManishThere are various options
1.IDENTITY columns - simplest to implement
2. Using NEWID(), NEWSEQUENTIALID() functions (if you want to use GUID values as surrogate keys)
3. SEQUENCE object (if SQL 2012 and above)
4. Using custom functions to generate keys yourself
This is an good article which compares use of GUIDs against integers as surrogate keys
http://blog.jonathanoliver.com/integers-vs-guids-and-natural-vs-surrogate-keys/
Please Mark This As Answer if it solved your issue
Please Vote This As Helpful if it helps to solve your issue
Visakh
My Wiki User Page
My MSDN Page
My Personal Blog
My Facebook Page -
getting error message could not activate cellular data network when trying to access the internet without using wifi. what do i need to do? i have already restore the phone.
contact your phone carrier as they handle cellular network.
-
HT4993 how to unlock my passcode without using itunes
how to unlock my passcode without using itunes
cannot be done without itunes
http://support.apple.com/kb/ht1212 -
How to connect from java without using oracle client installation
hi ,
Please tell me how to connect from java without using oracle client
Thanks & Regarshttp://www.orafaq.com/wiki/JDBC#Thin_driver
-
I bought my mom an iPad for Christmas this year. We can't use it as it will not recognize her passwords. How do I reset it without using passwords. I want this thing wiped clean, just like it came from the store so that I might start over. This is very frustrating!
How can I unlock my iPad if I forgot the passcode?
http://www.everymac.com/systems/apple/ipad/ipad-troubleshooting-repair-faq/ipad- how-to-unlock-open-forgot-code-passcode-password-login.html
iOS: Device disabled after entering wrong passcode
http://support.apple.com/kb/ht1212
How can I unlock my iPad if I forgot the passcode?
http://tinyurl.com/7ndy8tb
How to Reset a Forgotten Password for an iOS Device
http://www.wikihow.com/Reset-a-Forgotten-Password-for-an-iOS-Device
Using iPhone/iPad Recovery Mode
http://ipod.about.com/od/iphonetroubleshooting/a/Iphone-Recovery-Mode.htm
You may have to do this several times.
Cheers, Tom
Maybe you are looking for
-
What is a client certificate and how do I use it?
I am trying to pay a traffic fine on a municipal website. I keep getting a drop-down box saying the site requires a client certificate to verify my identity. I am given a choice of two certificates, both of which are listed as valid. However, when I
-
How to find specs by serial number
Hello, A few weeks ago Apple Specs web pages where changed. 9 out of 10 of my attemp to find specs by serial number lead to nothing or wrong model specs. What is the proper method to find accurates specs by serial number. Example? I have in front of
-
My standby ASA 5512 won't sync.
I have a primary and standby pair of 5512's. This is a new configuration. The primary and standby are using 8.6(1)12. The primary is operational. When I attempt to sync the standby, I get these: ERROR: <acl-global> element cannot be created ERROR: <a
-
Hello all: I live in Utah, and I am going to purchase an iPhone in the next few days - w00t! I just have an important question that I'm hoping someone here can answer. The area I'm living in now has no AT&T service, but the area I'm moving to in a fe
-
SOP flexible planning calender
Hi Experts, Plz light on the issue, we are going with SOP flexible planning - client want planning result for only 6 days/week but we maintained calendar for work center for 7 days, How assign 6 days calendar for only for SOP planning purpose, Thanks