Change Soap Header in P2P WebService (No PI available)

Hi Experts,
I need your help with a Webservice we are building.
--Facts--
We have the requirement to build a WebService in CRM that will be consumed by an external system. (We are service Providers)
Since we have no PI available we are building it as a Function Module that will be later transformed into a WebService.
The WebService / communication will be Asynchronous. We want to use WS-Adressing to handle the asynchonous process. (Check the requirement Backgroud at the end)
We have a sample xml message in which we need to base and build the service WSDL based on:
<?xml version="1.0" encoding="utf-8" ?>
- <NS1:Envelope xmlns:NS1="http://schemas.xmlsoap.org/soap/envelope/"> 
- <NS1:Header xmlns:wsa="http://www.w3.org/2005/08/addressing"> 
- <requestHeader> 
<systemID>DEFAULT</systemID>  
<messageID>MSGID</messageID>  
<aplicativoOrigen>bizagi</aplicativoOrigen>  
<timeStamp>2014-12-06T20:24:33.839428</timeStamp>  
<operacion>crearProspecto</operacion>  
</requestHeader>
<wsa:To>http://127.0.0.1:7700/dummy</wsa:To>  
- <wsa:ReplyTo> 
<wsa:Address>http://127.0.0.1:7700/IA_asynchronousWS</wsa:Address>  
</wsa:ReplyTo>
<wsa:MessageID>414d51204d4237514d47522020202020484f835403110120</wsa:MessageID>  
<wsa:Action>crearProspecto</wsa:Action>  
</NS1:Header>
+ <NS1:Body> 
- <crearProspecto xmlns:ges="http://grupobancolombia.com/intf/GestionarProspectosCRM"> 
- <datosGenerales> 
<agenteRetencion>ac</agenteRetencion>  
</datosGenerales>
</crearProspecto>
</NS1:Body>
</NS1:Envelope>
-- Background --
1- We have a CRM system with no PI and an external system (INT) to which we need to communicate in an Asynchronous way. Simply put, we need to provide to and consume from this non SAP System.
(This INT system is the equivalent of an SAP PI system and it will be responsible to transform and reroute the messages to the corresponding legacy systems)
2- We want to allow the creation of BPs in an Asynchronous way. The way we want to achieve Asynchronous communication is by means of two Web services.
a.      CRM publishes a WS that is consumed by the INT (directly no PI)
In the header of this message we will be using WS-Adressing standard and receiving from the INT the MessageID field.
CRM receives the messages, stores the information (does not process it) and immediately sends an accepted HTTP 202 code as a response to the INT.
b.      INT also publishes a WS that is consumed by the CRM and is used to receive the response of the first message from INT to CRMAfter X amount of time (Hours or days), the CRM gets the stored data and processes it finally creating the BP in the system. Once the BP is successfully created, CRM Consumes this WS exposed by the INT and sends the information that the BP has been finally created. The RelatesTo field in the header is then matched with the MessageID field sent before in the WS-A header and this way the INT finds out to which original message this second Web Service correlates to.
3- Please consider no PI is available,
--Question--
How can we build a WSDL for this service? I am asking in specifically how do you build a WSDL with a header with 4 fields and WS-Adressing fields also. Keep in mind that we have no PI and we are using a Function Module to Build the Service.
- <requestHeader>
<systemID>DEFAULT</systemID>  
<messageID>MSGID</messageID>  
<aplicativoOrigen>bizagi</aplicativoOrigen>  
<timeStamp>2014-12-06T20:24:33.839428</timeStamp>  
<operacion>crearProspecto</operacion>  
</requestHeader>
<wsa:To>http://127.0.0.1:7700/dummy</wsa:To>
- <wsa:ReplyTo>
<wsa:Address>http://127.0.0.1:7700/IA_asynchronousWS</wsa:Address>  
</wsa:ReplyTo>
<wsa:MessageID>414d51204d4237514d47522020202020484f835403110120</wsa:MessageID>
<wsa:Action>crearProspecto</wsa:Action>
I am attaching the XML and a WSDL that was provided to us, but not generated by us in CRM. We need to create a service with a WSDL similar to that one in the CRM
Thanks!
Pablo.

Hi Ganesh,
Please go through this link.
http://www.sapag.co.in/SAP-XI-SOAP-Adapter-FAQ'S.html
I think this would be helpful for you..
Reward points if useful,
Swamy Kunche

Similar Messages

  • 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 add new custom SOAP header when generate webservice?

    Hi
    When invoke an external webservice, SOA Gateway provide a method to add new customized SOAP Header, via extending seeded java function "WebServiceInvokerSubscription".
    And in case of generating a new webservice in EBS, is there some similar method to add new customized SOAP header in the webservice?
    Thanks
    James

    Look at your Payment Process Profile. THere should be a reporting subtab and within that subtab is a Separate Remittance Advice region. I believe that is where you specify the format for the remittance advice document (which is built in XML Publisher). Take a look at that.
    John Dickey

  • Unable to add custom SOAP header to consumer webservice in CRM( without using PI)

    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

    Hello Experts,
    I have not found the solution yet.
    Can anyone provide some insight??
    BR,
    Nisha Verma

  • How to Capture Runtime SOAP Header in ABAP Webservice

    Hi All,
    I have created a WebService from a ABAP Function Module, and an external (Java Based) system is able consume to it. But while making the call, the external System enriches the SOAP header with certain values, and I need to capture these values in ABAP Function Module.
    How can read the enriched SOAP Header in my ABAP Function Module? is there any Class/Function Module which I can call to get the Runtime SOAP-HEADER or is the runtime SOAP-header available in one of the structures similar to SYST?
    Thanks,
    Ganesh

    Hi Ganesh,
    Please go through this link.
    http://www.sapag.co.in/SAP-XI-SOAP-Adapter-FAQ'S.html
    I think this would be helpful for you..
    Reward points if useful,
    Swamy Kunche

  • How to change soap header in xml

    some one know how can i change the SOAP:mustUnderstand="1" to SOAP:mustUnde

    Hi,
    you could use the below alternative solution also as some Web services do not accept the message , if Content type is application/XML in the HTTP Header, it will accept only Text/XML. So While calling the Web service, the content has to be changed, This is possible using Module of the adapter as shown in the screen shot.
    HTTP Header field values before using the module
    User-Agent: SAP-Messaging-com.sap.aii.messaging/1.0505
    content-id: [email protected]
    content-type: application/xml
    Content-Length: 1280
    Module name - localejbs/AF_Modules/MessageTranspormationBean
    Type - Local Enterprise Bean Module - This is defined by the user, but the same name should be given in the module configuration for passing the parameters. In this case “transform” In the module configuration ,
    Module key - In this case “transform”
    Parameter name - Transform.ContenType
    Parameter Value - text/xml;charset=utf-8
    Here you could use the required parameters and pass the values....:-))
    Thanks
    Swarup

  • Add SOAP header before the WebService request (Windows Forms)

    I have to add this header before my Request:
    <h:FordDealerIdentity xmlns:h="urn:ford/star/security/v1.0" xmlns="urn:ford/star/security/v1.0">
    <soapenv:Header>
    <SiteCode>SZBRA</SiteCode>
    </soapenv:Header>
    </h:FordDealerIdentity>
    My request:
    var srv = new ConsumerServiceScheduleV1();
    var a = new RetrieveScheduleRequestType();
    var b = new DealerType();
    var c = new ScheduleType();
    srv.Credentials = new System.Net.NetworkCredential("","SZBRA05168");
    //ScheduleType[] ret;
    b.Code = 05168;
    b.Name = "BraconCampos";
    a.Dealer = b;
    a.SchedulingFrom = new DateTime(10/10/2014);
    a.SchedulingTo = new DateTime(15/10/2015);
    c.SchedulingCategory = SchedulingCategoryType.Regular;
    srv.ClientCertificates.Add(new System.Security.Cryptography.X509Certificates.X509Certificate2(@"E:\Agenda Ford\Certificados Agend@Ford\BracomCampos.pfx", "qaz123"));
    textBox1.Text = srv.RetrieveSchedule(a).ToString();

    Is Windows Forms! :)
    And what forum deals with SOAP and Web services more than any other forum?  Many types of client based applications such as  Windows form, WPF, Sliverlight, Windows service classlib project like a BLL and so forth deal sith SOAP and WEB.
    How is what you are talking about a Windows forms issue?
    My Application is Windows Forms. I need to know how to insert this header before request.

  • Timestamp and Nonce value in SOAP header

    Hi, can you provide some guidance on how to handle this Oracle SOA suite 11g
    My application was calling an external web service which was just expecting the user name and password. So I was using username_token_client_policy with a csf key
    Now the external web service has changes and they are expecting TimeStamp ( Created & Expires ) and Nonce value to be sent. Below is the format of the SOAP header they are expecting.
    Can someone share what OWSM policy I have to use to build such a SOAP header or should I build the values in my bpel during bpelInputHeaderVariable
    <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">
    <wsu:Timestamp wsu:Id="TS-15">
    <wsu:Created>2013-06-06T22:03:54.397Z</wsu:Created>
    <wsu:Expires>2013-06-06T22:04:54.397Z</wsu:Expires>
    </wsu:Timestamp>
    <wsse:UsernameToken wsu:Id="UsernameToken-14">
    <wsse:Username></wsse:Username>
    <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText"></wsse:Password>
    <wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary"></wsse:Nonce>
    <wsu:Created>2013-06-06T22:03:49.384Z</wsu:Created>
    </wsse:UsernameToken>
    </wsse:Security>

    i need to get USERNAME and PWD in my Soap header for consuming Webservice using SAP PI ,
    Can be achieved by XSL Mapping or SOAP Axis Adapter. Search on SDN for further details as this has been discussed many a times on the forum.
    should i need to get some certificates from client and deploy it or should we do anything in SAP PI and send to soap header or can hard code it and send to webservice, please help me in this t
    First you need to confirm whether certificates are required or not. Might be the web service is using user id / password security (basic authorization).
    How to use certificates in PI - Search on SAP Help, this has been explained in great details over there.

  • Passing Soap Header in Web Service

    Hi Team,
    In our application, we have used web service through webservice proxy wizard using the WSDL file.  Now due to security reasons we need to pass Soap Header in the webservice call. Can you please help on how to pass soap header in the webservice call ?
    Please find the below webservice code/
    Long ll_ret
    edpmdata ll_ReturnVal
    edpmreq lnv_Request_data
    //filter lnv_filter
    Datawindowchild dwc_child
    str_pass l_str_pass
    long l_l_row_count, l_l_row
    String l_s_code, l_s_modify, l_l_ret
    String str_proxy_name = "sohedpmservice"
    String l_s_delivery_pref, l_s_email
    String ls_url, l_s_ini_file
    l_s_ini_file = g_nv_ini.fnv_get_name ()
    ls_url = ProfileString(l_s_ini_file,"External", "EDPM_URL", "")
    Soapconnection lsc_Conn
    sohedpmservice lproxy_obj
    lsc_Conn = create Soapconnection
    SetPointer (Hourglass!)
    Try
    ll_ret = lsc_Conn.CreateInstance(lproxy_obj, str_proxy_name, ls_url)
    Catch (SoapException e )
    Error.fnv_error("0001", This, "ue_process_fields","Error Creating Instance","",FALSE,1,0)
    Message.ReturnValue = -1
    RETURN -1
    end try
    IF ll_ret <> 0 THEN
    Error.fnv_error("0001", This, "ue_process_fields","Error Creating Instance","",FALSE,1,0)
    Message.ReturnValue = -1
    RETURN -1
    END IF
    Try
    lnv_Request_data = create edpmreq
    lnv_Request_data.value = l_s_party_key
    ll_ReturnVal = lproxy_obj.getcommpref(lnv_Request_data)
    If ll_ReturnVal.ws_serviceresult.resultcode = '5' Then
       Error.fnv_error("0001", This, "ue_process_fields",String(ll_returnval.ws_serviceresult.ws_resultinfo) ,"Error Response ", FALSE, 1,0)
       Message.ReturnValue = -1
    RETURN -1
    End if
    l_s_delivery_pref = ll_ReturnVal.deliverymethod
    l_s_email = ll_ReturnVal.emailaddr
    i_str_pass.s[86] =  l_s_delivery_pref
    i_str_pass.s[87] =  l_s_email
    i_str_pass.s[88] = l_s_party_key
    Catch ( SoapException a )
    Error.fnv_error("0001", This, "ue_process_fields","Error Response","Error Response",FALSE,1,0)
    Message.ReturnValue = -1
    RETURN -1
    end try
    Destroy lsc_Conn
    Return 1

    What version of PowerBuilder?
    PB.Net or Classic?
    Are you using the SOAP or .Net Engine (if using Classic)?
    What kind of header?
    There is limited support for passing custom headers in the .Net engine in Classic.  The header would need to be defined in the WSDL for the service.
    Anything beyond that (e.g., WS-Security) would need to be handled in a WCF client in PB.Net.

  • WS-security Need to Get Username and Password and time Stamp in SOAP Header

    HI ALL,
    i need to get USERNAME and PWD in my Soap header for consuming Webservice using SAP PI ,
    and my SOAP Header should look like this
    <soapenv:Header>
    <wsse:Security soapenv:mustUnderstand="1"
    xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurityutility-
    1.0.xsd"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wsswssecurity-
    secext-1.0.xsd">
    <wsu:Timestamp wsu:Id="Timestamp-296915943">
    <wsu:Created>2008-06-05T18:30:59.904Z</wsu:Created>
    <wsu:Expires>2009-06-05T18:35:59.904Z</wsu:Expires>
    </wsu:Timestamp>
    <wsse:UsernameToken wsu:Id="UsernameToken-192809888">
    <wsse:Username>midtier-service</wsse:Username>
    xxxxxxxx: Confidential Green 10
    <wsse:Password Type="http://docs.oasisopen.
    org/wss/2004/01/oasis-200401-wss-username-token-profile-
    1.0#PasswordText">password</wsse:Password>
    </wsse:UsernameToken>
    </wsse:Security>
    </soapenv:Header>
    should i need to get some certificates from client and deploy it or should we do anything in SAP PI and send to soap header or can hard code it and send to webservice, please help me in this t
    hanking you
    Sridhar

    i need to get USERNAME and PWD in my Soap header for consuming Webservice using SAP PI ,
    Can be achieved by XSL Mapping or SOAP Axis Adapter. Search on SDN for further details as this has been discussed many a times on the forum.
    should i need to get some certificates from client and deploy it or should we do anything in SAP PI and send to soap header or can hard code it and send to webservice, please help me in this t
    First you need to confirm whether certificates are required or not. Might be the web service is using user id / password security (basic authorization).
    How to use certificates in PI - Search on SAP Help, this has been explained in great details over there.

  • Calling A Secured webservice using Username and password in the Soap header

    I want to call a secured webservice.
    The Username and password should be sent with the payload in the SOAP Header
    as
    <wsse:Security S:mustunderstand="0" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
    <wsse:UsernameToken wsu:Id="SecurityToken-XXXXXXXXXXXXXXXXXXXXXXXXX" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
    <wsse:Username>uname</wsse:Username>
    <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">pwd</wsse:Password>
    </wsse:UsernameToken>
    </wsse:Security>
    Can you please send me the steps?
    I tried with giving the username and password under Service Account.
    I tried to create a wspolicy under business service. But nothing works...
    Please help me at the earliest.
    Also please give me steps in sequence.

    Now i made sure that the endpoint is available!
    Now am getting this error:
    <soapenv:Fault>
    <faultcode>soapenv:Server</faultcode>
    <faultstring>BEA-380002: localhost1</faultstring>
    <detail>
    <con:fault xmlns:con="http://www.bea.com/wli/sb/context">
    <con:errorCode>BEA-380002</con:errorCode>
    <con:reason>localhost1</con:reason>
    <con:location>
    <con:node>RouteNode1</con:node>
    <con:path>request-pipeline</con:path>
    </con:location>
    </con:fault>
    </detail>
    </soapenv:Fault>
    Also in the invocation trace i can observe the following things:
    Under Invocation Trace:-
    ========================
         Receiving request =====> Initial Message context
         ===============================================
         under added header:-
         ==================
         <soap:Header xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
         </soap:Header>
         under RouteNode1
    ================
         Route to "TargetMyService_BS"
    $header (request):-
    <soap:Header xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    </soap:Header>
    Under Message Context changes:-
    *===============================*
    I can find this element also:-
    con:security>
    *<con:doOutboundWss>false</con:doOutboundWss>*
    *</con:security>*
    eventhough we enabled ws security, how the above tag can be false?
    I think its getting failed to populate the header with the required login credentials.
    The other doubt i have is:-
    =================
    I have chosen the service account type is static...is this right?

  • How to populate the SOAP Header in JCD/BP while consuming WebService?

    Hello,
    I am trying to invoke a external webservice through both JCD/BP in JCAPS513 and as per wsdl defination we need to send user and token information in the SOAP Header. When I imported the WebService defination into the JCDP/BP, I do not see message part corresponding to SOAP Header. Can anyone help me here?
    Here is the WSDL message, operation & binding details:
    <wsdl:operation name="GetOrderID"> <wsdl:operation name="GetOrderID"> <wsdl:message name="GetOrderIDSoapIn">
    <wsdl:part name="parameters"
    element="tns:GetOrderID"/>
    </wsdl:message>
    <wsdl:message name="GetOrderIDSoapOut">
    <wsdl:part name="parameters"
    element="tns:GetOrderIDResponse"/>
    </wsdl:message>
    <wsdl:message name="GetOrderIDWebServiceCredential">
    <wsdl:part name="WebServiceCredential"
    element="tns:WebServiceCredential"/>
    </wsdl:message>
    <wsdl:input message="tns:GetOrderIDSoapIn"/>
    <wsdl:output message="tns:GetOrderIDSoapOut"/>
    </wsdl:operation>
    <soap:operation soapAction="http://xxxxxx.xxxx.xxx/V2/GetOrderID"
    style="document"/>
    <wsdl:input>
    <soap:body use="literal"/>
    {color:#ff0000} *<soap:header message="tns:GetOrderIDWebServiceCredential"*
    * part="WebServiceCredential"*
    * use="literal"></soap:header>*{color}
    </wsdl:input>
    <wsdl:output>
    <soap:body use="literal"/>
    </wsdl:output>
    </wsdl:operation>

    Hi Ganesh,
    Please go through this link.
    http://www.sapag.co.in/SAP-XI-SOAP-Adapter-FAQ'S.html
    I think this would be helpful for you..
    Reward points if useful,
    Swamy Kunche

  • Accessing Soap header in webservices

    Hi,
    My webservice needs to read a soap header "locale" and do some processing based on this soap header.
    I understand the concept of handlers..but anywhere I see examples, the handler handles it and returns the data back.
    My requirement is that once this locale is retrieved, each of the webservice method should be able to read this locale, and do some processing based on that, as they need to return the localized data.
    I am not sure if I am missing something, but not yet able to find a direct way of doing it..
    Any response would be highly appreciated..
    Thanks

    user10455639 wrote:
    Yes I can..what I still dont understand from yourr email is why are you askign this..
    "if you can get the soap header"
    Because any header we should be able to retrieve from this context...Because I saw the following statement from [JavaDoc | http://e-docs.bea.com/wls/docs103/javadocs/weblogic/wsee/jws/JwsContext.html#getInputHeaders()].
    <<<<<<<<<<
    ....The SOAP headers used by WebLogic Workshop to manage conversations are included in the list of headers returned.
    <<<<<<<<<<
    If it works, then just use it :) because it is public supported
    Edited by: LJ on Apr 23, 2009 10:04 PM
    Edited by: LJ on Apr 23, 2009 10:21 PM

  • SOAP RECEIVER: Possible to change the soap header request

    Hi
    Is it possible to change what is included in the soap header like namespaces (.. xmlns:ns="http://what.com"
    Specifically I need to have the "http://Strange.org/thisis.xsd" (see below) included in the header and the <ns:pi-create> included in SOAP-ENV
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:ns="http://Strange.org/thisis.xsd">
    <SOAP-ENV:Body>
    <ns:pi-create>
    <request>
    <request-data>...
    </request-data>
    </request>
    </ns:pi-create>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    Hope somebody can help
    Cheers

    Hi Bowie,
    1.You can change the Namespace. condition is no obj's under the namesapce then only it's possible otherwise u can't.
    2.create a new namesapce what ever u want and copy all the obj's under that namesapce.finally delete the previous one.
    XMLAnonymizerBean
    Use
    You use this module to anonymize XML elements and attributes by removing namespaces or namespace prefixes from the XML document of the main payload.
    You can define a particular namespace prefix for each namespace. You can also change the encoding attribute of the XML declaration.
    Integration
    You can use the module in adapters that can be extended in the module processor.
    Activities
    Entries in the Processing Sequence
    ●      Insert the module before the adapter module.
    If the adapter comprises multiple modules, for information about the position of the module, see: Extending the Module Chain in the Module Processor
    ●      Enter the module name AF_Modules/XMLAnonymizerBean.
    ●      Select the Module Type Local Enterprise Bean.
    ●      The system proposes a module key.
    Entries in the Module Configuration
    ●      anonymizer.acceptNamespaces
    Enter a list of namespaces and their prefixes that are to be kept in the XML document as follows: namespace1 n1 namespace2 n2 u2026
    To enter a namespace without a prefix, enter '' (two single quotation marks).
    Any namespaces you do not specify are removed from the XML document.
    ●      anonymizer.quote
    Specify the character to be used to enclose the attribute values.
    The default value is '. The parameter is optional.
    ●      anonymizer.encoding
    To use a code page other than UTF-8, enter it.  The parameter is optional.
    For example, enter ISO-8859-1.
    Example
    The anonymizer.acceptNamespaces parameter has the following value:
    urn:sap-com:document:sap:rfc:functions rfc urn:sap-com:document:sap:soap:functions:mc-style rfc
    ●      Payload before using the XMLAnonymizerBean:
    <Z_PAYMITEM_GET_LIST
      xmlns="urn:sap-com:document:sap:rfc:functions"
      xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/"
      xmlns:xsd="http://www.w3.org/2001/XMLSchema"
      xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <I_ACCOUNTIDENT xmlns="">
        <ACCOUNT_NUMBER>0080000094</ACCOUNT_NUMBER>
        <BANK_COUNTRY>DE</BANK_COUNTRY>
        <BANK_COUNTRY_ISO>DE</BANK_COUNTRY_ISO>
      </I_ACCOUNTIDENT>
    </Z_PAYMITEM_GET_LIST>
    ●      Payload after using the XMLAnonymizerBean:
    <?xml version='1.0' encoding='utf-8'?>
    <rfc:Z_PAYMITEM_GET_LIST
      xmlns:rfc='urn:sap-com:document:sap:rfc:functions'>
      <I_ACCOUNTIDENT>
        <ACCOUNT_NUMBER>0080000094</ACCOUNT_NUMBER>
        <BANK_COUNTRY>DE</BANK_COUNTRY>
        <BANK_COUNTRY_ISO>DE</BANK_COUNTRY_ISO>
      </I_ACCOUNTIDENT>
    </rfc:Z_PAYMITEM_GET_LIST>
    with rgds,
    MFH

  • WebService Error: SoapFaultCode:3 SOAP header To was not understood

    Hello All,
    I am trying to consume a webservice. I have created a client proxy and a logical port for the webserive.
    But when i try to test the service consumer in SE80, i get the following error.
    SoapFaultCode:3 SOAP header To was not understood.
    Could you please help me out here.
    Thanks & regards
    Kassin

    >
    kassindro wrote:
    > Hello All,
    >
    > I am trying to consume a webservice. I have created a client proxy and a logical port for the webserive.
    > But when i try to test the service consumer in SE80, i get the following error.
    >
    > SoapFaultCode:3 SOAP header To was not understood.
    >
    > Could you please help me out here.
    >
    > Thanks & regards
    > Kassin
    Hallo Kassin,
    I do not know how you added the webservice hearder.
    Please refer the thread here with similar problem [Web Services Security using ABAP Proxies|Web Services Security using ABAP Proxies]
    Still not working then post your WDSL ,<SOAP-ENV:Header> tag
    Try to use XMLSpy or SOAP UI to test as alternative.

Maybe you are looking for

  • Script to batch export multiple Books (.indb) to PDF

    I have multiple InDesign Book files that I would like to batch export to PDFs, respectively. (Not looking to combine multiple books into a single PDF. Just a 1 to 1 PDF export for each Book file.) In googling for an answer, I found Peter Kahrel's scr

  • GRC AC5.3 CUP Requests Transaction Data Migration to 10.1

    Hi, We are starting a new upgrade from AC5.3 to AC 10.1 project. In migration document it mentioned that we can migrate CUP requests transactional data to 10.1. our management is asking to maintain the CUP transaction data in AC10.1 application for f

  • Dreamweaver and Indesign won't open, Adobe Creative Suite 6 Design & Web Premium

    Installed Adobe Creative Suite 6 Design & Premium on MacBook Pro which uses OS X Version 10.9.5 with Intel Core i7. The Dreamweaver won't open at all, click on icon and nothing happens no response. InDesign Keeps showing an error code message when tr

  • Solution Manager Error in phase 18 of 45

    Hi Friends, I am getting following error during fresh installation of Solution Manager 4.0 on my 32 bit machine. My os is windows 2003 and database is oracle 20.2. WARNING 2007-02-15 21:47:46 Execution of the command "C:\j2sdk1.4.2_11\bin\java.exe -c

  • IMac screen looks yellow/orange from 45 degree angle

    Hi, yesterday I bought a 20" iMac 2.4 Ghz and the screen looks yellow/orange from a 45 degree viewing angle (as if looking through yellow glasses). I don't remember seeing this in the shop and am heading down this morning to check it out. Are other p