Request response as xml

I have been given an xsd file and asked to create a web service whose request/response is based on this provided xsd.
and the requirement is to have request/response of web service in xml doc. This complete XML cannot be a sent as string.
So, please let me know how to acheive this. i.e how to inject the required xml structure in the web service response.
Edited by: jumst on Nov 2, 2009 2:58 AM

jumst wrote:
how would i pass on the request on to web service -From jaxb classes i can send the resquest in an xml doc to the web service? or how? and likewise the result ftom web service to jaxb classes?Answer of your question is XML Marshaling and Unmarshalling will be used for the above purpose.
The Java Architecture for XML Binding (JAXB) provides a fast and convenient way to bind between XML schemas and Java representations, making it easy for Java developers to incorporate XML data and processing functions in Java applications. As part of this process, JAXB provides methods for unmarshalling XML instance documents into Java content trees, and then marshalling Java content trees back into XML instance documents. JAXB also provides a way to generate XML schema from Java objects.
-- From [Java™ EE 5 Tutorial - Binding between XML Schema and Java Classes|http://java.sun.com/javaee/5/docs/tutorial/doc/bnazf.html]
Other Ref:
[JAXB Architecture|http://java.sun.com/javaee/5/docs/tutorial/doc/bnazg.html]
[NetBeans.org - Binding WSDL to Java with JAXB|http://www.netbeans.org/kb/docs/websvc/jaxb.html]
JAX-WS Client App                                                    JAX_WS Server App
                                                                     JAS-WS Web Service
Consume JAX-WS Web            <--------------------------            Deployed here
Service here using WSDL
of the deployed Web
Service. This is JAX-WS
Client with all proxy and
schema(JAXB) classes.       
Client sends request to                                             
server with JAXB                                                         
classes. At the end JAX-WS                                          
Client proxy classes will                                           
marshal request to XML          
and send to server.           -------------------------->            On request arrival JAX-WS Server
                                                                     classes will unmarshal incoming
                                                                     XML Request to JAXB Classes and
                                                                     invoke web service and web method.
                                                                     As web service response server
                                                                     prepares response using JAXB
                                                                     classes,and sends back to client.
                                                                     JAX-WS Web Service will marshal
                                                                     the response to XML and sends to
Client receives XML response   <--------------------------           client.
and JAX-WS client proxy
classes will unmarshal the
response to JAXB classes.
Client app. will use these
as response.Developing web service with JAX-WS, Server and client will do marshaling and unmarshaling of SOAP XML requests and response for you.
Just go through tutorial given in my previous and current post. Use any good IDE to develop, I prefer NetBeans first and then Eclipse.
Below two links will help you to build and consume a web service using NetBenas IDE.
[Getting Started with JAX-WS Web Services|http://www.netbeans.org/kb/docs/websvc/jax-ws.html]
[Advanced Web Service Interoperability|http://www.netbeans.org/kb/docs/websvc/wsit.html]
Disclaimer: I am not an professional technical author so please forgive my English and Grammar.+ *:-))*
*Cheers,
typurohit* (Tejas Purohit)

Similar Messages

  • How to send a request and get a response through xml

    How to send a request and get a response through xml files?

    This is the code that works for me. Hope you find it useful.
         public static String sendHttpGetRequest(String endpoint, String requestParameters){
              String result = null;
              // Send a GET request to the servlet
              try{
                   // Send data
                   String urlStr = endpoint;
                   if (requestParameters != null && requestParameters.length () > 0){
                        urlStr += "?" + requestParameters;
                   URL url = new URL(urlStr);
                   HttpURLConnection conn = (HttpURLConnection) url.openConnection();
                   conn.setRequestProperty("Accept", "application/xml");
                   // Get the response
                   BufferedReader rd = new BufferedReader(new InputStreamReader(conn.getInputStream()));
                   StringBuffer sb = new StringBuffer();
                   String line;
                   while ((line = rd.readLine()) != null){
                        sb.append(line);
                   rd.close();
                   result = sb.toString();
              } catch (Exception e){
                   e.printStackTrace();
              return result;
         }

  • XML Namespace in WebService Request/Response

    Hi all,
    I have a question regarding xml namespace usage in wsdl and the corresponding request/response messages.
    I have already browsed quite some articles about xml namespaces as well as some forum threads, but I am still not sure.
    I have the following part of a wsdl document (generated by Integration Directory), defining a targetnamespace.
    u2026
    <wsdl:types>
        <xsd:schema targetNamespace="http://www.dorma.com/sap/xi/finance"
                             xmlns="http://www.dorma.com/sap/xi/finance"
                             xmlns:xsd="http://www.w3.org/2001/XMLSchema">
            <xsd:element name="DebtorGetDetailResponse" type="Z_BAPI_DEBTOR_GETDETAIL_Response"></xsd:element>
            u2026
            <xsd:complexType name="Z_BAPI_DEBTOR_GETDETAIL_Response">
                <xsd:sequence>
                    <xsd:element name="DEBITOR_COMPANY_DETAIL" type="BAPI1007_5" minOccurs="0">
                    </xsd:element> u2026
                </xsd:sequence>
            </xsd:complexType>
            u2026
        </xsd:schema>
        u2026
    </wsdl:types>
    u2026
    In my understanding, all types defined in the schema section of a wsdl document will be in the targetnamespace, if defined.
    Therefore the element DEBITOR_COMPANY_DETAIL would be in the namesapce
    http://www.dorma.com/sap/xi/finance
    However, the ABAP proxy generates a response message like follows,
    where only the root element is in this namespace and the child elements are in the global namespace:
    <?xml version="1.0" encoding="utf-8"?>
    <ns1:DebtorGetDetailResponse xmlns:ns1="http://www.dorma.com/sap/xi/finance"
                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <DEBITOR_COMPANY_DETAIL>
            u2026
        </DEBITOR_COMPANY_DETAIL>
        u2026
    </ns1:DebtorGetDetailResponse>
    Do I have a wrong understand of the wsdl (xml schema) or is this an erroneous behavior?
    The problem is that some 3rd-party software web service module does not accept
    the response message as not complient with the respective wsdl document.
    Any input is appreciated.
    Thanks
    Hans
    Edited by: Hans-Jürgen Schwippert on Oct 1, 2008 12:02 PM

    I have the same problem. I am trying to connect to a webservice running on IBM websphere but it doesn't accept the xml in my request. It appears to be the same namespace issue.
    Did you ever find a solution for this?
    Is it a valid webservice call if you omit the namespace for an element or is this a bug in the Adaptive WS implementation?
    Web Dynpro web service model generated request:
    <?xml version="1.0" encoding="UTF-8"?>
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <SOAP-ENV:Header>
    <sapsess:Session xmlns:sapsess="http://www.sap.com/webas/630/soap/features/session/">
    <enableSession>true</enableSession>
    </sapsess:Session>
    </SOAP-ENV:Header>
    <SOAP-ENV:Body>
    look between these lines -
    <ns1:tamKontrolleraKontoLastAnrop xmlns:ns1="http://schemas.fora.se/modell/tam/1.0/TAM_Data">
    <AnvandarNamn>30039647</AnvandarNamn>
    </ns1:tamKontrolleraKontoLastAnrop>
    look between these lines -
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    As you can see the tag
    <AnvandarNamn>30039647</AnvandarNamn>
    is missing a namespace.
    It should be
    <ns1:AnvandarNamn>30039647</ns1:AnvandarNamn>
    Using a third part tool called Soapui i generate this request that works:
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tam="http://schemas.fora.se/modell/tam/1.0/TAM_Data">
       <soapenv:Header/>
       <soapenv:Body>
          <tam:tamKontrolleraKontoLastAnrop>
             <tam:AnvandarNamn>30039647</tam:AnvandarNamn>
          </tam:tamKontrolleraKontoLastAnrop>
       </soapenv:Body>
    </soapenv:Envelope>

  • Workbench freezes on call to BAPI_PRODORDCONF_GETLIST Request/Response XML

    I have created a simple transaction in MII 12.0.6 with three JRA actions: Start Session, Function Call, and End Session.  From the configuration dialog of the Function Call action, I confirmed the existance of BAPI_PRODORDCONF_GETLIST via a BAPI search. I attempted to select this BAPI only to have the Workbench freeze up.  This BAPI works flawlessly in SE37. I checked the logs and saw that the following error message was thrown:
    com.sap.mw.jco.jra.JRA$ResourceException: Couldn't execute interaction. Transaction rolledback due to connection interruption...
    I am using the same JRA connection to call BAPIs in other transactions without any issues.
    Has someone ran into a similar issue before that could assist me in resolving this?
    FYI...my objective is to obtain a list of confirmations, including the confirmation number and confirmation counters, from the output of this BAPI which will be inputted into BAPI_PROCORDCONF_GETDETAIL to maintain a count of the yield and scrap already confirmed for that particular operation/phase.
    Thanks,
    Michael Teti
    Senior Solutions Consultant
    SeeIT Solutions, LLC

    Michael,
    It was my understanding (via customer confirmation) that the returned Yield and Scrap located in the Phase tables of the BAPI_PROCORD_GET_DETAIL Bapi are the Planned Operation Yield and Scrap for that operation and not the Yield and Scrap already confirmed.  The Help documentation in the BAPI Explorer does not verify this one way or another.
    Also, after numerous attempts of trying to pull down the BAPI_PROCORDCONF_GETLIST Request/Response XML, the configuration dialog actually closed.  It tooke quite a long time to complete.  My guess is that it timed out because when I look at the BAPI structure, there was none.
    I did see the other thread prior to my submission but since that thread was referring to a JCO connection and a timeout wasn't actually confirmed on my end, I decided to creat a new one.
    Thanks,
    Michael Teti

  • Is there a way to attach request/response handlers in BEA Weblogic Workshop similar to Axis?

    Apache Axis allows developers to attach Request/Response handlers to do
    stuff like logging, authorization check etc.
    Something like...
    public class MyHandler extends org.apache.axis.handlers.BasicHandler {
    public void invoke(org.apache.axis.MessageContext msgContext) throws
    AxisFault
    Does BEA Weblogic Workshop has a similar capability?
    Thanks.
    Best Regards
    Hitesh

    Hi Hitesh,
    The logging in Workshop user log4j and is configured in the
    <WL-HOME>/weblogic700/server/lib/workshopLogConfig.xml file.
    To log the SOAP responses, add the following lines in the xml file:
    <category name="knex.SoapJwsReq"> <priority value="debug" /> <appender-ref
    ref="MYLOGFILE" /> </category>
    <category name="knex.SoapJwsResp"> <priority value="debug" /> <appender-ref
    ref="MYLOGFILE" /> </category>
    The MYLOGFILE can be configured by copying from the already defined
    appenders. The file location is relative to the domain directory.
    <appender name="MYLOGFILE" class="org.apache.log4j.RollingFileAppender">
    <param name="File" value="mylog.log" />
    <param name="Append" value="true" />
    <param name="MaxFileSize" value="3000KB" />
    <layout class="org.apache.log4j.PatternLayout">
    <param name="ConversionPattern" value="%d{DATE} %-5p %-15c{1}: %m%n"/>
    </layout>
    </appender>
    As of now, the SOAP request message is not logged, only the responses are
    getting logged. This will be corrected within the next few days. Please also
    note that if you are using the Test View for running the web service, you
    should use the 'Test XML' tab for seeing the SOAP requests/responses. The
    'Test Form' tab uses HTTP GET, and hence you will not see any SOAP messages.
    Do let me know if you have any further queries.
    Regards,
    Anurag
    Workshop Support
    "Hitesh Seth" <[email protected]> wrote in message
    news:[email protected]...
    Thanks Anurag. What is the best recommended way in BEA Weblogic Workshop
    today to implement a logger which will log all SOAP Requests & Responses
    into a custom logging system.
    Best Regards
    Hitesh
    "Anurag Pareek" <[email protected]> wrote in message
    news:[email protected]...
    Hitesh,
    You can modify the SOAP request and response payload by using ECMA
    Script
    and XMLMaps.
    In the current release, Workshop does not support 'handlers' for SOAP
    messages.
    Regards,
    Anurag
    Workshop Support
    "Hitesh Seth" <[email protected]> wrote in message
    news:[email protected]...
    Apache Axis allows developers to attach Request/Response handlers to
    do
    stuff like logging, authorization check etc.
    Something like...
    public class MyHandler extends org.apache.axis.handlers.BasicHandler {
    public void invoke(org.apache.axis.MessageContext msgContext)throws
    AxisFault
    Does BEA Weblogic Workshop has a similar capability?
    Thanks.
    Best Regards
    Hitesh

  • WEB SERVICE + REQUEST RESPONSE TRACK

    Hello Friends,
    I have a issue, I have to consume the webservice made in .NET environment. The web service uses oasis security. so I have to set the SOAP HEADER with user name and passwrod. Unfortunately its not working. My question is , is there any way that one can track the request response... Can I see, how my request packet looks like when it reaches to server ?
    Any help will be gr8.
    Regards,

    Hi Raja,
    Okey, now I will first paste the request formate which web service is expecting, and then I will paste my code, might be you have hint for me.....
    POST /alertservice.asmx HTTP/1.1
            Host: desktopalert
            Content-Type: text/xml; charset=utf-8
            Content-Length: length
            SOAPAction: "http://service.desktopalert.net/AlertService.asmx/CreateAlert"
            <?xml version="1.0" encoding="utf-8"?>
            <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
              <soapenv:Header>
                <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
                  <wsse:UsernameToken xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="UsernameToken-386451">
                    <wsse:Username>someuser</wsse:Username>
                    <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">ILReFb7Uz57eNwgJXjj9S086aAw=</wsse:Password>
                    <wsse:Nonce>jHgxoLOr9RzHpALQRark7Q==</wsse:Nonce>
                    <wsu:Created>2007-02-11T23:34:23.027Z</wsu:Created>
                  </wsse:UsernameToken>
                  <wsu:Timestamp xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="Timestamp-24470798">
                    <wsu:Created>2007-02-11T23:34:22.996Z</wsu:Created>
                    <wsu:Expires>2007-02-11T23:39:22.996Z</wsu:Expires>
                  </wsu:Timestamp>
                </wsse:Security>
              </soapenv:Header>
              <soap:Body>
                <CreateAlert xmlns="http://service.desktopalert.net/AlertService.asmx">
                  <content>string</content>
                  <title>string</title>
                  <height>int</height>
                  <width>int</width>
                  <PublishDate>dateTime</PublishDate>
                  <ExpireDate>dateTime</ExpireDate>
                  <groupids>
                    <int>int</int>
                    <int>int</int>
                  </groupids>
                </CreateAlert>
              </soap:Body>
            </soap:Envelope>
            HTTP/1.1 200 OK
            Content-Type: text/xml; charset=utf-8
            Content-Length: length
    My code ( SOAP HEADER AND SOAP BODY ):
    CONCATENATE
    '<?xml version="1.0" encoding="UTF-8"?>'
    '<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">'
    '  <soapenv:Header>'
    '    <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">'
    '      <wsse:UsernameToken xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="UsernameToken-11072909">'
    '        <wsse:Username>admin</wsse:Username>'
    '        <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">ISMvKXpXpadDiUoOSoAfww==</wsse:Password>'
    '        <wsse:Nonce>WL4S/89uFlsVZ+Ys73fTNQ==</wsse:Nonce>'
    '        <wsu:Created>2007-03-27T14:34:23.199Z</wsu:Created>'
    '      </wsse:UsernameToken>'
    '      <wsu:Timestamp xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="Timestamp-12203633">'
    '        <wsu:Created>2007-03-27T14:34:23.184Z</wsu:Created>'
    '        <wsu:Expires>2007-03-27T14:39:23.184Z</wsu:Expires>'
    '      </wsu:Timestamp>'
    '    </wsse:Security>'
    '  </soapenv:Header>'
    '<soap:Body>'
    '   <CreateAlert xmlns="http://service.desktopalert.net/AlertService.asmx" /> '
    '    <content>teststring</content>'
    '    <title>teststring</title>'
    '    <height>300</height>'
    '    <width>300</width>'
    '    <PublishDate> 27.03.2007 16:08:18</PublishDate>'
    '    <ExpireDate>30.03.2007 10:00:18</ExpireDate>'
    '    <groupids>'
    '      <int>1</int>'
    '      <int>1</int>'
    '    </groupids>'
    '    </CreateAlert>'
    '    </soap:Body>'
    '</soapenv:Envelope>'
    INTO WF_STRING.
    And if any one of the parameter is wrong, still I am expecting that, my data reached till database, or if I am doing something wrong, then some exception, error, has to come ? right...
    Regards,

  • Messaging only: WCF-BasicHTTP adapter Request-Response correlation

    Hi,
    we have a solution where we make a soap web service call to a third party.
    we do not want to use orchestrations.
    we are in need to pass a value to the third party service and we would
    like to have that value passed back to us in the response.
    However, the third party is not guaranteeing this.
    as an alternative, i tried promoting  a property into the context
    before the outbound call and check if this is still available in the context when the response come thru.. but no luck here.
    IS there any other way to achieve this?
    regards,
    MS

    Hi MS,
    What is your question? When you use Request-Response (Receive) port and solicit-Response (send) port, the correlation would happen out-ob-box with the help of EpmRRCorrelationToken, CorrelationToken and RouteDirectToTP
    properties.
    Are your not using the solicit-Response (send) which would take care of the correlation to  Request-Response (Receive) port. Ensure you're using the XML-Transit (on send) and XML-Receive (on receive) pipelines on these two way ports (in both Request-Response
    (Receive) port and solicit-Response (send) port)
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • View the webservice soap request/response

    Hi,
    I am in wls81sp4. I have some webservice developed in workshop. And I created webservice controls for them. When the webservice is called in jsp, I couldn't see the request/response soap message on wls console even though I set -Dweblogic.debug.webservice=true -Dweblogic.webservice.verbose=true. I have another webservice, the client is the proxy, and I can see the message on console.
    How can I see the message from calling the control? Thanks

    HI Ronald,
    To get the SOAP Fault into your orchestration:
    1) On the Send port in BizTalk:
       a) WCF Adapter Properties, Messages tab: Propagate Fault Message = true
       b) WCF Adapter Properties, Messages tab: Inbound message body: Either use "soap:Body" or use a path that extracts your message OR /*[local-name()='Fault'] to get the SOAP fault
       c) "Enable routing for failed messages" - this has no impact on the SOAP Fault. So you probably want it set to true to handle real transmission errors (non SOAP faults).
    2) On the Send port within your orchestration
       - Select the operation & then "New Fault Message"
       - Set the message name to SoapFault (or whatever)
       - Set the message type to be the referenced schema: BTS.soap_envelope_1__2.Fault. (If this was a SOAP 1.1 operation you would use BTS.soap_envelope_1__1.Fault).
    3) In the Scope around your Send operation
       - Add new exception handler
       - Select "Exception Object Type" to the port-name.operation-name.SoapFault you created in step 2
       - Specify the object name, e.g. Fault
       - Fault is now the XML of the SOAP Fault & you can use XPath to get the Fault Reason and Message elements.
    Refer:
    How to catch and process SOAP faults
    MSDN has explained the process in detail:
    Using BizTalk Server Exception Handling. You can blindly follow it.
    Please mark as answer or vote as helpful if my reply does

  • CDATA section ignored at request-response port

    Hi Friends,
    I am calling a request-response service from BizTalk WCF-Basic Http port.
    The request consists of CDATA section and service behavior is defined to return a response with similar structure.
    <Request>
    <![CDATA[<RequestID>123</RequestID>]]>
    </Request>
    The expected response is -
    <Response>
    <![CDATA[<ResponseID>789</ResponseID> <ServiceID>963</ServiceID>]]>
    </Response>
    I tested the service with SOAP UI and it gives desired results as above.
    But, when same service is invoked through BizTalk WCF-Basic Http port, response received is -
    <Response>
    &lt;ResponseID&gt;789&lt;ResponseID&gt;&lt;ServiceID&gt;963&lt;ServiceID&gt;
    </Response>
    But why BizTalk is behaving like this? Looks like BizTalk is ignoring CDATA section and returning string.
    Is it possible to apply some configuration at port something similar to 
    disable-output-escaping=”yes” , so that port does not convert CDATA to string?
    Hope someone can help!

    So where is the problem in this behavior? The reason the service is expecting the request and response as CDATA elements is because it saves them from having to change the endpoint schema every time they release a new request response.
    When you create the schemas generated by consuming the service promote the "Request" and "Response" elements. Then in the construct shape you can populate these using the promoted elements and assign the xml.OuterXml.
    Similarly while processing the response you can load it into the xml using the XmlDocument.LoadXml(serviceMessage.Response);
    Regards.

  • Create WSDL from SOAP request, response and endpoint URL

    We have a program that does not create WSDL for us but we do have a SOAP request, response XML file and the endpoint URL as well.
    How can I create WSDL file from these?
    If that is not possible, how can I create a Java web service client (JEE 5.0) when I have only the SOAP request and response XML and the endpoint URL? Some tutorial or any explanation to point me to the right direction would be highly appreciated.
    Thank you very much,
    Genti

    The endpoint is:
    http://servername/appname/service/rpcrouter
    and we have SOAP request and repsonse that we can build from the application but also the documentation that is provided
    The documentation says about the web service:
    Built on top of a pre-Axis version of Apache SOAP
    No WSDL support
    Uses literal encoding for Web Service calls
    Adding WSDL at the end of the endpoint does nothing at this point.
    Thank you for the reply though,

  • How to change the HTTP Response as XML (Content Type "text\xml") ?

    Hi Friends ,
                     I have created one RFC Destination TYPE H . When i am trying to post some XML Message to that particular HTTP Service using POST method . It succesfully accepted the XML File but , it is returning the String as  " OK" . In the connection test trace i have seen the Content Type as "text/html" but *  I need to get as "text\xml" .* 
                     I need to get response back as XML not plain text . 
            1  Any Configuration setting  do we need to do on Service (SICF )  ?
             2. Or any other place we need to modify to get the HTTP Response as XML not plain text
                  Can you please help to solve the problem . Any clue ?
    Thanks & Regards.,
    V.Rangarajan
    Edited by: ranga rajan on Jan 2, 2008 2:07 PM

    Dear users,
    we have requirement sending SMS to the customers mobiles. I am successfully sending the messages to the customers mobiles by using the above method. Facing issues with response message. The response messages is in plain text fromat in single line like...Sent
    Using HTTP_AAE Receiver adapter.
    The response message was failed while excution of the message mapping with the error
    Mapping failed in runtimeRuntime Exception when executing application mapping program com/sap/xi/tf/_MM_SMS_CUST_RES_; Details: com.sap.aii.utilxi.misc.api.BaseRuntimeException; Content is not allowed in prolog.
    please share the comments how to pass the Status of the message to SAP ECC from SAP HTTP adapter
    Regards,
    Sudir.

  • How to change the HTTP Response as XML (Content Type "text\xml")  When Post

    Hi Friends ,
    I have created one RFC Destination TYPE H . When i am trying to post some XML Message to that particular HTTP Service using POST method . It succesfully accepted the XML File but , it is returning the String as " OK" . In the connection test trace i have seen the Content Type as "text/html" but * I need to get as XML format no Srting    ( Type "text\xml" . ) *
    I need to get response back as XML not plain text .
    1 Any Configuration setting do we need to do on Service (SICF ) ?
    2. Or any other place we need to modify to get the HTTP Response as XML not plain text
    Can you please help to solve the problem . Any clue ?
    Thanks & Regards.,
    V.Rangarajan

    Dear users,
    we have requirement sending SMS to the customers mobiles. I am successfully sending the messages to the customers mobiles by using the above method. Facing issues with response message. The response messages is in plain text fromat in single line like...Sent
    Using HTTP_AAE Receiver adapter.
    The response message was failed while excution of the message mapping with the error
    Mapping failed in runtimeRuntime Exception when executing application mapping program com/sap/xi/tf/_MM_SMS_CUST_RES_; Details: com.sap.aii.utilxi.misc.api.BaseRuntimeException; Content is not allowed in prolog.
    please share the comments how to pass the Status of the message to SAP ECC from SAP HTTP adapter
    Regards,
    Sudir.

  • Sender adapter request response bean not working for calling a webservice

    Hi All,
    In PI 7.31, My scenario :  SOAP sender Asynch-> PI -> HTTP Receiver Sync ->take response to call another webservice  (SOAP)
    I have configured request response bean and response one way bean in the sender adapter to make this work.
    Attached the screenshot of the module config in  the sender soap adapter. The final response from HTTP has to be used to call another webservice (not sender webservice)
    This giving an error "couldn't retrieve binding values for sender to receiver etc etc ----------"
    Has anyone configured response one way bean to call a webservice to submit? If so, please share the configuration details. And let me know if I am doing anything wrong
    thx
    mike

    Hi Michael,
    I think the adapter type is for the receiver channel looking at the documentation SAP Library - SAP Exchange Infrastructure
    Have you checked your receiver channel doesn't belong to a party?
    I havent tried this bridge with the http_aae but looks to be problematic according with Michal comment here http://scn.sap.com/community/pi-and-soa-middleware/blog/2014/01/28/generic-pi-async-sync-bridge-configuration-for-any-adapters#comment-454463
    Regards.

  • Using Request Response Bean Module in FILE Adapter

    Hi Experts,
    Can we use Request Response Bean Module in FILE Adapter in reverse way. That is can we configure thses adapter modules in Reciever file channel and call a sender file channel in it?
    My case is RFC to File synchronous case? How do we do this?
    Thanks & Regards,
    priyanka

    Can we use Request Response Bean Module in FILE Adapter in reverse way. That is can we configure thses adapter
    modules in Reciever file channel and call a sender file channel in it?
    My case is RFC to File synchronous case? How do we do this?
    The above is not possible....Bean works only for Sender channel and not for Receiver.....requirement not possible using even a BPM as FILE does not support SYNC communication in receiver end......max you can do is split the scenario into SYNC-ASYNC bridge.
    Regards,
    Abhishek.

  • ESB Console turns Request/Response message into One Way message

    Hi folks,
    have come across a strange situation and wondered if anyone else had come across this. Maybe it's fixed as part of a patch set.
    I'm running SOA Suite 10.1.3.1.0 on Windows.
    After I've created and deployed a Request/Response service (either RS or SOAP Invocation Service) if I go to the ESB Console and click on "Apply" in say the Definition tab, my service turns into a One Way service.
    This then causes null pointer exceptions when I run my process, as you might expect.
    If I redeploy from JDev and leave the "Apply" button alone I'm back in business.
    Is this something that anyone else has had a problem with?

    Hi.
    I would recommend you to install version 10.1.3.3 of SOA Suite
    http://download.oracle.com/otn/nt/ias/10133/ias_windows_x86_101330.zip
    http://download.oracle.com/otn/linux/ias/10133/ias_linux_x86_101330.zip
    Also, use the JDev 10.1.3.3
    http://www.oracle.com/technology/software/products/jdev/htdocs/soft10133.html
    They are supposed to be much more stable.
    After using the new release, let us know if you still run into this problem.
    Denis

Maybe you are looking for

  • Attempting to install Creative Cloud Installer crashes my computer

    I am attempting to install Adobe products from Creative Cloud using Creative Cloud installer. I am on a Macbook Pro version 10.6.8 Build 10K459 if that helps at all. When I try to install, the authentication window asking for the admin password crash

  • Report for MRP list(MD05/MD06)

    Hello, I am looking for a Report that can give me the details of the MRP list(MD05 or MD06). Basically I need the report to give me the following details. Material Number Material Description Date Opening Date Rec/Reqd qty MRP element If you see all

  • Converting from Actuate Reports to Oracle BI Publisher fails

    Hi, I'm trying to convert a Actuate report to BIP. The below mentioned error is being displayed. "2009/09/29 21:09:312 Begin conversion of Report name 'STARSRPT', Path 'D:\BIP\STARSRPT.bas'. java.lang.NullPointerException      at oracle.reports.actua

  • Is CTSS will take care of Day light Saving changes

    Hello, In our enviornemt we used CTSS(cluster time synchronization service) in 2 node RAC,NTP services is stopped on Linux nodes. DST will going to happens on 27-Mar-2015, so is CTSS will take care of DST changes automatically,if not what needs do to

  • I think the hardrive died on me... (Can anyone help confirm)

    I think the Hardrive (80Gb) in my 17inch G4 1,5Ghz powerbook died on me. When I try to restart it doesn´t go beyond the grey screen, then it shuts off again. There is no sound of the disk starting up either. And when I start it from the OSX Start-up