SOAP request and response message

Hi,everyone:
I am working on one jaxrpc project.
I would like to get a concrete SOAP request and response message.
Do somebody know how and where i can get these two message?
thanks in advance
Hui
[email protected]

I am also interested in the sample. Please post, any examples, I just finished the tutorial looking for further resources too.
R

Similar Messages

  • Relating request and response messages

    Hello,
    Concerning how to relate messages. I have a jpd putting messages 'send' queue, and a responses arrive on a 'receive' queue. Both queues may be remote. Several jpd’s will run at the same time. The message correlation id appears to be intended for this purpose. Does anyone know some way to listen to the queue, only listening for a message with the desired correlation id? It would be pretty slow if I read every message, and reject it if the correlation id is wrong. A 'Message Selector' appears to be the way to do this.
    Does anyone know of a good way to do this, maybe using Message Broker ?
    thanks!
    -JM

    Hi Dmitri,
              Thanks for you reply.
              >>What are you planning to put into correlation id field?
              I can put the id of the job being processed. This exists in the application. Alternatively, I could use the process id of the jpd. (It is a wli jpd).
              >>Why not redesign it slightly so message sender would set 'response queue' field in the message
              If I understand your suggestion correctly, I would need a dedicated queue for each running process. There could be many running at the same time, so I'm not sure I can do that.
              thanks anyway!

  • Relate request and response messages

    Hello,
    Concerning how to relate messages. I have a jpd putting messages 'send' queue, and a responses arrive on a 'receive' queue. Both queues may be remote. Several jpd’s will run at the same time. The message correlation id appears to be intended for this purpose. Does anyone know some way to listen to the queue, only listening for a message with the desired correlation id? It would be pretty slow if I read every message, and reject it if the correlation id is wrong. A 'Message Selector' appears to be the way to do this.
    Does anyone know of a good way to do this, maybe using Message Broker ?
    thanks!
    -JM

    Hi Dmitri,
              Thanks for you reply.
              >>What are you planning to put into correlation id field?
              I can put the id of the job being processed. This exists in the application. Alternatively, I could use the process id of the jpd. (It is a wli jpd).
              >>Why not redesign it slightly so message sender would set 'response queue' field in the message
              If I understand your suggestion correctly, I would need a dedicated queue for each running process. There could be many running at the same time, so I'm not sure I can do that.
              thanks anyway!

  • How to retrieve SOAP Original Header from request and response

    Hi,
    Does anyone know how to retrieve SOAP original header from SOAP request and response? I surfed but I'm able to see only the retrieval of SOAP custom headers via BPM mediator. Can anyone please help me regarding this? Also Please tell me how to check the headers in the Enterprise Manager.

    HI Chandra,
    Thanks for your suggestions.
    But i think in my case we do not want to get the complete list. We still want to get only 100 items initially and then if the user would scroll down he/she would see more items. But we already need to know the total number of items for the purpose of showing a message to the user. For e.g. Total issues (515),  but the table would initially show only 100 and then another 100 after scroll. So setting the size litmit to max would not help.
    And to be able to use the $count you mentioned, we have to still make another oData service call which we do not want.
    But as i mentioned there is already a property named "__count" in the response of the bindItems() method call and i see that it has correct count but not sure how to retrieve it inside the controller. Thanks.
    Regards,
    Ashish

  • Associating SOAP Request with Response in Handlers

    Hi,
    In the handler framework, there are handleRequest(MessageContext) and handleResponse(MessageContext) methods, which allow processing of the SOAP Request and Response envelopes, respectively.
    Is there a way to know which request belongs to which response?
    I would like to log these request and response envelopes together.
    Thanks,
    Puny Sen

    Hi,
    I guess you could create a property in the MessageContext while processing the request to keep a message id, and then access the same property in the response.
    Best regards,
    Miguel Pardal

  • Need to get SOAP request and SOAP response message.

    Hi All,
    I need to know that how can I get the SOAP request and SOAP response message. Now I am using WSDL2Java tool from Axis to generate the stub classes (such as ServiceLocator, SoapBindingStub, and soapPort ) and applying the classes to make the SOAP request. I have seen the solution for getting the SOAP request with Dynamic invocation interface (DII) style (http://mail-archives.apache.org/mod_mbox/ws-soap-user/200310.mbox/%[email protected]%3e), but not Static stub like what I did. Could anyone suggest me how to do it please ( I can't run tcpcom on the linux server, because x-window is not allowed to install ). Thank you for any help in advance.

    You can try writing a client-side handler.
    Handler gets called before the actual request is sent, and you can get the SOAP
    message in it.
    You have to deploy the handler in client-config.wsdd.
    Handler is just like Servlet Filter.
    I think there might be a simpler solution, but I dont know.

  • Use Sign.xml and Encrypt.xml for both request AND response within WSDL?

    Hi,
    ALSB: 2.6
    I was wandering if it's possible to use abstract outof the box WS-Policy file within WSDL file to specify encryption
    (Encrypt.xml) and digital signature(Sign.xml) with X509 for both request and response???
    So far, it only works for either request or response BUT not both. i.e. within WSDL file
    <!-- following WSDL works for encrypting and signing request with X509 in test console -->.....
    <wsdl:binding name="DexService2Soap" type="tns:DexService2Soap">
        <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
        <wsdl:operation name="Message">
                <soap:operation soapAction="urn:moe:dex:dexservice:2.0.0/Message" style="document" />
                              <wsdl:input>
                               <!-- WS-Policy file applied here -->
                             <wsp:Policy>
                                            <wsp:PolicyReference URI="policy:Sign.xml"/>
                                            <wsp:PolicyReference URI="policy:Encrypt.xml"/>
                                       </wsp:Policy>
                                     <soap:body use="literal" />
                               </wsdl:input>
                             <wsdl:output>
                                  <soap:body use="literal" />
                               </wsdl:output>
        </wsdl:operation>
      </wsdl:binding>
               Or
    <!-- following WSDL works for encrypting and signing response with X509 in test console -->
    <wsdl:binding name="DexService2Soap" type="tns:DexService2Soap">
        <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
        <wsdl:operation name="Message">
                <soap:operation soapAction="urn:moe:dex:dexservice:2.0.0/Message" style="document" />
                              <wsdl:input>
                                     <soap:body use="literal" />
                               </wsdl:input>
                             <wsdl:output>
                                       <!-- WS-Policy file applied here -->
                                       <wsp:Policy>
                                            <wsp:PolicyReference URI="policy:Sign.xml"/>
                                            <wsp:PolicyReference URI="policy:Encrypt.xml"/>
                                       </wsp:Policy>
                                  <soap:body use="literal" />
                               </wsdl:output>
        </wsdl:operation>
      </wsdl:binding>
    But not both
    <!-- following WSDL doesn't work for encrypting and signing both response and request with X509 in test console -->
    <wsdl:binding name="DexService2Soap" type="tns:DexService2Soap">
        <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
        <wsdl:operation name="Message">
                <soap:operation soapAction="urn:moe:dex:dexservice:2.0.0/Message" style="document" />
                              <wsdl:input>
                                        <!-- WS-Policy file applied here -->
                                       <wsp:Policy>
                                            <wsp:PolicyReference URI="policy:Sign.xml"/>
                                            <wsp:PolicyReference URI="policy:Encrypt.xml"/>
                                       </wsp:Policy>
                                     <soap:body use="literal" />
                               </wsdl:input>
                             <wsdl:output>
                                       <!-- WS-Policy file applied here -->
                                       <wsp:Policy>
                                            <wsp:PolicyReference URI="policy:Sign.xml"/>
                                            <wsp:PolicyReference URI="policy:Encrypt.xml"/>
                                       </wsp:Policy>
                                  <soap:body use="literal" />
                               </wsdl:output>
        </wsdl:operation>
      </wsdl:binding>
    ...      Instead, I got error message like
    <15/01/2008 10:15:04 AM NZDT> <Error> <ALSB Security> <BEA-387023> <An error ocurred during web service security inbound response processing [error-code: Fault
    , message-id: 3917705281899426819-4368b1eb.117762cff6e.-7fdb, proxy: DexServiceX509-Stub/Proxy Services/DexServiceX509-ProxyService, operation: Message]
    --- Error message:
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header/><soapenv:Body><soapenv:Fault><faultcode>soapenv:Server</faultcode>
    <faultstring>Failed to get token for tokenType: http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3</faultstring></soapenv:Fa
    ult></soapenv:Body></soapenv:Envelope>
    weblogic.xml.crypto.wss.WSSecurityException: Failed to get token for tokenType: http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#
    X509v3
    at weblogic.xml.crypto.wss.SecurityBuilderImpl.addEncryption(SecurityBuilderImpl.java:308)
    at weblogic.wsee.security.wss.SecurityPolicyDriver.processConfidentiality(SecurityPolicyDriver.java:280)
    at weblogic.wsee.security.wss.SecurityPolicyDriver.processOutbound(SecurityPolicyDriver.java:75)
    at weblogic.wsee.security.wss.SecurityPolicyDriver.processOutbound(SecurityPolicyDriver.java:64)
    at weblogic.wsee.security.WssServerHandler.processOutbound(WssServerHandler.java:86)
    Truncated. see log file for complete stacktrace
    >
    <15/01/2008 10:15:24 AM NZDT> <Error> <com.bea.weblogic.kernel> <000000> <Failed to build CertPath
    java.security.cert.CertPathBuilderException: [Security:090603]The certificate chain is invalid because it could not be completed. The trusted CAs did not inclu
    de CN=x509,OU=x509,O=x509,L=Wellington,ST=Wellington,C=NZ.
    at weblogic.security.providers.pk.WebLogicCertPathProviderRuntimeImpl$JDKCertPathBuilder.engineBuild(WebLogicCertPathProviderRuntimeImpl.java:669)
    at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:194)
    at com.bea.common.security.internal.legacy.service.CertPathBuilderImpl$CertPathBuilderProviderImpl.build(CertPathBuilderImpl.java:67)
    at com.bea.common.security.internal.service.CertPathBuilderServiceImpl.build(CertPathBuilderServiceImpl.java:86)
    at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
            Truncated. see log file for complete stacktrace
    >
    <15/01/2008 10:15:24 AM NZDT> <Error> <ALSB Security> <BEA-387022> <An error ocurred during web service security inbound request processing [error-code: Fault,
    message-id: 3917705281899426819-4368b1eb.117762cff6e.-7fd8, proxy: DexServiceX509-Stub/Proxy Services/DexServiceX509-ProxyService, operation: null]
    --- Error message:
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header/><soapenv:Body><soapenv:Fault xmlns:wsse="http://docs.oasis-open.or
    g/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"><faultcode>wsse:InvalidSecurityToken</faultcode><faultstring>Security token failed to validate. weblo
    gic.xml.crypto.wss.SecurityTokenValidateResult@3c5347b[status: false][msg [
      Version: V1
      Subject: CN=x509, OU=x509, O=x509, L=Wellington, ST=Wellington, C=NZ
      Signature Algorithm: MD5withRSA, OID = 1.2.840.113549.1.1.4
      Key:  Sun RSA public key, 1024 bits
      modulus: 13052787793731294943682394984664645854838424340012907077330623....
      The 'System Error Handler' from 'Invocation Trace' in ALSB test console is something like
    [pre]     
    $fault:
    <con:fault xmlns:con="http://www.bea.com/wli/sb/context">
         <con:errorCode>BEA-386201</con:errorCode>
         <con:reason>
              A web service security fault
              occurred[{http://schemas.xmlsoap.org/soap/envelope/}Server][Failed
              to get token for tokenType:
              http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3]
         </con:reason>
         <con:details>
              <err:WebServiceSecurityFault
                   xmlns:err="http://www.bea.com/wli/sb/errors">
                   <err:faultcode
                        xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
                        soapenv:Server
                   </err:faultcode>
                   <err:faultstring>
                        Failed to get token for tokenType:
                        http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3
                   </err:faultstring>
              </err:WebServiceSecurityFault>
         </con:details>
         <con:location>
              <con:path>response-pipeline</con:path>
         </con:location>
    </con:fault>
    So is this a feature not supported in ALSB 2.6 yet or am I missing something dead simple?
    Thanks in advance
    Sam

    Instead of specifying policies for input and output separately you could place the policy reference only once in the operation element. Maybe will this solve your problem...
    http://e-docs.bea.com/alsb/docs26/security/ws_policy.html#wp1061166

  • How to restrict the Request and Response process in that cookies should be Secure way SAP Portal 7.0 ?

    Dear Experts,
    Please any one can help me i am getting one security issue.Some third party tools using and hacking the Request and Response of the Server.That time there taking one successfully Request (GET http://1.1 302 found)   and Response (http://1.1 200 ok).In this request based on again there giving some invalidate credential in that time server giving request replacing for success fully Request that time there login in to portal successfully(Bypassing).In this Request level only getting the information for URL and set-cookies only.Here any process is there to restrict the set cookies.like JSESSIONMARKID and JSESSIONID SAP_LB.
    We are using 7.0 Version and SP 12. Please share you are solutions because of this is very high problem here.
    Thanks for Advance
    Thanks and regrades,
    Durga Rao. 

    Dear Samuli,
    Thanks for the Replay,
    We are using HTTPS and SSL confined but man in the middle types of attack is happening here there using one tool based one there taking the Request and Response.The below given cookie are available in that request.
    According to this , set-cookie: JSESSIONMARKID , JSESSIONID and MYSAPSSO2 values are user login time it will change every time  are not.
    After  capturing above response HTTP/1.1 302 etc , when user gives valid credentials and logs in ,
    and now ill give wrong password and wrong user id and on click of log on button, i can intercept the request and response coming from the server and when i replace this valid response stil i am able to loggin in to the portal , which should not happen as JESSIONMARKID is changed , server should not allow , but it is loggin in.Standard Login page also allowing to login in this case.
    My server version is EP 7.0 SP 12.
    Please suggest a solution so that if we restric the hacker at this stage , no matter he can never hijack the sesiona and login  with invalid username and  password.
    Thanks for Advance
    Thanks and regrades,
    Durga Rao.

  • Request and Response Objects

    Hi,
    I was told that there is a limit for the request and response object sizes and crossing them will throw IllegalStateException. Could some one explain whether this is true and what is the maximum size of the object allowed?
    Thanks,
    Des

    As far as I know no such limit is defined by the API. There will always be a limit due to implementation and underlying architecture. Which particular implementation of request/response are you concerned about?

  • How to trap SOAP request and SOAP responce

    Hello,
    I want to trap all soap messages send by WS client.
    I am using jdeveloper. How could i do that. please help me.
    I want to directly see all soap request(Whole xml document)

    Hi All,
    SOAP Framework AXIS provided the tool TCPMONITOR to monitor the SOAPRequest,SOAPResponse which is passing between ServiceConsumer and ServiceProvider.To do this just follow the below steps.
    Step1:Set axis.jar in the classpath and then Run the java class(it will open a window)
    java org.apache.axis.utils.tcpmon [listenPort targetHost targetPort]
    For suppose you are running webservice at port number 8888.
    Here listenPort is some port number which is not using by anyother give number like 7070 and targetHost is IP address of System where the Webservice is running,targetPort is portnumber where the Webservice is running.
    For example java org.apache.axis.utils.tcpmon 7070 127.0.0.1 8888
    i.e In client application you have to modify the portnumber to 7070,once user submitted the request that request going to portnumber at 7070 where TcpMonitor is listening,SOAPRequest will come in Request Box and and select submit button then request going to service at port numer 8888,then you can view the response in Response Box.you can get more details in the following url
    http://ws.apache.org/axis/java/user-guide.html#AppendixUsingTheAxisTCPMonitorTcpmon
    Thanks&Regards,
    M.Kumaraswamy.

  • SOAP sender Adapter - response message missing in adapter engine level

    Hi,
    We have a synchronous scenario SOAP<-> P I <--->Proxy .Request comes from  web service get the response from ECC.
    Issue reported that response message not reached the web service .
    I am able to see the request & response messages in SXMB_MONI. To check the status in message monitoring through RWB synch message are not existing more than a day.
    Is there any possibility of failure of messages at adapter engine level in this case? If so How can I get error log?
    what are the settings required to make the synchronous messages available in RWB?
    Thanks in advance,
    Regards,
    Kartikeya

    what are the settings required to make the synchronous messages available in RWB?
    Set messaging.syncMessageRemover.removeBody = false in NWA / Visual Admin. Have a look at the below link for details -
    /people/william.li/blog/2008/02/07/display-adapter-synchronous-message-content-in-rwb-of-pi-71
    Regards,
    TK

  • Web Service Usage Discussion - Both for request and response.

    Hi,
    I have some discussion questions ( by the way i have done my search in the forums )
    1) How would you solve the problem of registering user from iphone application without making the user to enter a security code to prevent spam?
    ( We use graphical captchas to minimize the risk in web.. but what would you do or what are you doing to make a proper registration from iphone directly to the web server? ) I can request, user, pass,email and register the user, but i can not want him to click on the confirmation code that i've sent to his/her email.. He'll leave my application, click the link,... safari will open.. etc etc...
    2) How would you authenticate the user and send commands according to that session?
    Would you send user and pass in plaintext, like many web pages' login system..?
    And after that would you just get a session id from response and after that, would you use only that code to send new commands according to that authenticated user? like ( http://myserver.com/?cmd=message&text=hi&session_id=34524534 ) ? How would you implement, or you are implementing this in iphone application?
    3)What would you use to send commands to server? You use simple url request? ( maybe somewhat REST ) or would you send xml to the server? And how would you get the response? As an XML? as comma seperated simple mode, as JSON to parse? Or would you return property list recognized by iphone? Or.... Or?? What would you use, or what are you using? What's your idea to do it in a proper way? (I know that this can change from people to people, but at least we can see what everyone is telling.. )..
    What response type you prefer and why do you prefer it? For example, you are trying to avoid xml to stay away from parsing it without standard libraries... OR... ?
    I'll be glad if you share your ideas/experiences with us? We may learn new things/we may improve our selves/we may change the way we do these things, we may be happy together (:

    Hi MaxLeyton,
    Thank you for posting in the MSDN forum.
    >>I am trying create a webmethod in a webservice, this webmethod must to have two different headers, one for request and one for response.
    Since it is related to the Web, to help you resolve this issue as soon as possible, you could post this issue to the ASP.NET forum.
    http://forums.asp.net/28.aspx/1?WCF+ASMX+and+other+Web+Services
    Best Regards,
    Jack
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Request and Response Scenario for JMS adapter

    Hi,
    I am working on IDOC-XI-JMS, JMS(sender)- XI - JMS (receiver)scenario and this is going to be real time. If any record is update in customer master then that record will be sent to JMS provider MQ series and lock the record in the legacy system and then legacy system unlock and send back a message that this has been unlocked.
    This would be request response message, anyone tell me how this can be achived. I think I may have to use BPM for this kind of processing. Can anyone tell me the steps to achive the BPM for such processing.
    Regards
    Please reply back
    Edited by: hema Mehta  on May 23, 2008 2:05 AM

    Hi Hema,
    Reward points if this helps
    Step by Step Porcess of JMS Synchronous Scenario without BPM: Correlation Settings and Transactional JMS Session
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b028f6f6-7da5-2a10-19bd-cf322cf5ae7b
    How To Correlate JMS Messages
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8060448a-e56e-2910-f588-9af459e7ce21
    Async/Sync Communication using JMS adapter without BPM
    /people/sudheer.babu2/blog/2007/01/18/asyncsync-communication-using-jms-adapter-without-bpm-sp-19
    STEPS in BPM for synchornous.
    Reward points if this helps
    Regards
    Pragathi.

  • Synchronous interface udf to remember value between request and response

    Hello,
    I have two synchronous message interfaces bundled in an operation mapping and a message mapping for the request and one for the response.
    I need to remember a value obtained during request message mapping so that I can access it in the response message mapping.
    Is there any place where I can put a value and then access it later on the way back?
    I tried global container in udf, but the scope of that object seems to be just the current message mapping.
    Any ideas appreciated!
    Thanks
    Matthias

    Hi Matthias,
    the fact is that the Integration Engine is stateless and not statefull, hence it cannot remember anything between two messages.
    Perhaps, the correct way for this needs could be to use a BPM.
    At any rate, when I need of this persistence I write the data on ABAP stack via UDF/Lookup function.
    If you choose this way, remember to clean the table when you used it and forecast a way to manage the exceptions that could leave dirty in your temporary table.
    Ciao.
    Nicola

  • SOAP APIs needed to extract SOAP request arguments for message handler implementation

    1. I am facing problem in using the Message Handler approach for the implementation
    of webservices using SOAP on BEA weblogic 8.1. A SOAP request(XML format) can
    be interrupted using the message handler and hence can be modified before it invokes
    the webservice method. I have been able to successfully extract the SOAP Name
    space xml format as a part of the SOAP request using the APIs given below
    APIs:
    SOAPBody body = env.getBody();
    Name Spaces format:
    <m:sayHello xmlns:m="http://www.bea.com/servers/wls70/samples/examples/webservices/basic/statelessSession">
    <intVal xsi:type="xsd:int">100</intVal>
    <string xsi:type="xsd:string">vikas</string>
    </m:sayHello>
    The above is a Hello world example which invokes the sayHello method with arguments
    as an integer and a string. I have not been able to find the SOAP APIs to extract
    these arguments from the SOAP Body.
    2. But there are XML apis which can extract the tag data from the SOAPBody e.g
    NodeList nl = body.getChildNodes();
    for(int i = 0; i < nl.getLength(); i++)
    Node node = (Node)nl.item(i);
    if(node instanceof SOAPElement){
    SOAPElement se = (SOAPElement)node;
    String operationName = se.getLocalName();
    String value = se.getValue();
    The SOAPBody interface implements the following interfaces (Ref : http://java.sun.com/j2ee/1.4/docs/api/index.html
    javax.xml.soap > SOAPBody )javax.xml.soap.Node, javax.xml.soap.SOAPElement(SOAP APIs)
    org.w3c.dom.Node, org.w3c.dom.Element (XML Parser APis)
    3. But webservice implementation of Weblogic Application server 8.1(webservice.jar)
    doesn't support the XML parser APIs and only supports the SOAP APIs.
    i.e. The SOAPBody Interface of Weblogic Application Server only implements the
    javax.xml.soap.Node, javax.xml.soap.SOAPElement (SOAP APIs) and not the XML APIs
    (org.w3c.dom.Node, org.w3c.dom.Element)
    So the code snippet written as a part of point 2 will not be compiled(give compilation
    error) using the webservice.jar of Weblogic 8.1.
    4. I have tried to compile the same code using the saaj-1_2-fr-api.jar (SOAP 1.2
    apis jar) which I have downloaded from java.sun site. And the code got successfully
    compiled.
    In this latest version of SOAP APIs jar the SOAPBody interface implements both
    the SOAP as well as XML parser Apis.
    5. I was not able to run this code on the Weblogic server , bcoz at the runtime
    weblogic 8.1 is using its webservice.jar instead of saaj-1_2-fr-api.jar. And
    this code was giving me runtime error as
    java.lang.NoSuchMethodError: javax.xml.soap.SOAPBody.getChildNodes()Lorg/w3c/dom/NodeList;
    (see Fault Detail for stacktrace)</faultstring>
    So now I need to find out the version of the webservice.jar of Weblogic 8.1 which
    supports SOAP Apis as well as XML parser apis.
    Otherwise I have to find out the SOAP apis which can extract the tag data from
    the SOAP body.
    Please Help.

    You can use the SAAJ APIs to get the child nodes.
    Example here:
    http://manojc.com/tutorial/sample4/ServerHandler.java
    so instead of using body.getChildNodes(), you have to use
    body.getChildElements() which returns an iterator of SOAPElements.
    Regards,
    -manoj
    http://manojc.com
    "Vikas Garg" <[email protected]> wrote in message
    news:40dfb5e0$1@mktnews1...
    >
    1. I am facing problem in using the Message Handler approach for theimplementation
    of webservices using SOAP on BEA weblogic 8.1. A SOAP request(XML format)can
    be interrupted using the message handler and hence can be modified beforeit invokes
    the webservice method. I have been able to successfully extract the SOAPName
    space xml format as a part of the SOAP request using the APIs given below
    APIs:
    SOAPBody body = env.getBody();
    Name Spaces format:
    <m:sayHelloxmlns:m="http://www.bea.com/servers/wls70/samples/examples/webservices/basic
    /statelessSession">
    <intVal xsi:type="xsd:int">100</intVal>
    <string xsi:type="xsd:string">vikas</string>
    </m:sayHello>
    The above is a Hello world example which invokes the sayHello method witharguments
    as an integer and a string. I have not been able to find the SOAP APIs toextract
    these arguments from the SOAP Body.
    2. But there are XML apis which can extract the tag data from the SOAPBodye.g
    >
    NodeList nl = body.getChildNodes();
    for(int i = 0; i < nl.getLength(); i++)
    Node node = (Node)nl.item(i);
    if(node instanceof SOAPElement){
    SOAPElement se = (SOAPElement)node;
    String operationName = se.getLocalName();
    String value = se.getValue();
    The SOAPBody interface implements the following interfaces (Ref :http://java.sun.com/j2ee/1.4/docs/api/index.html
    javax.xml.soap > SOAPBody )javax.xml.soap.Node, javax.xml.soap.SOAPElement(SOAP APIs)
    org.w3c.dom.Node, org.w3c.dom.Element (XML Parser APis)
    3. But webservice implementation of Weblogic Application server8.1(webservice.jar)
    doesn't support the XML parser APIs and only supports the SOAP APIs.
    i.e. The SOAPBody Interface of Weblogic Application Server only implementsthe
    javax.xml.soap.Node, javax.xml.soap.SOAPElement (SOAP APIs) and not theXML APIs
    (org.w3c.dom.Node, org.w3c.dom.Element)
    So the code snippet written as a part of point 2 will not be compiled(givecompilation
    error) using the webservice.jar of Weblogic 8.1.
    4. I have tried to compile the same code using the saaj-1_2-fr-api.jar(SOAP 1.2
    apis jar) which I have downloaded from java.sun site. And the code gotsuccessfully
    compiled.
    In this latest version of SOAP APIs jar the SOAPBody interface implementsboth
    the SOAP as well as XML parser Apis.
    5. I was not able to run this code on the Weblogic server , bcoz at theruntime
    weblogic 8.1 is using its webservice.jar instead of saaj-1_2-fr-api.jar.And
    this code was giving me runtime error as
    java.lang.NoSuchMethodError:javax.xml.soap.SOAPBody.getChildNodes()Lorg/w3c/dom/NodeList;
    (see Fault Detail for stacktrace)</faultstring>
    So now I need to find out the version of the webservice.jar of Weblogic8.1 which
    supports SOAP Apis as well as XML parser apis.
    Otherwise I have to find out the SOAP apis which can extract the tag datafrom
    the SOAP body.
    Please Help.

Maybe you are looking for

  • Can i use my new ipod nano 7th generation on my macbook pro

    I registered my new ipod nano 7th generation on my macbook pro.  While on my macbook, I tried to download wma audiobooks from the library using overdrive media console & its not working.....so, I decided to use my windows laptop.  I have the latest v

  • Apple, let us downgrade to iOS 6.0!

    Well, this battery drain issue is coming from iOS 6.1 to me and it seems that it is common on almost every iPhone model (4, 4S, 5, etc). It maybe not the iOS itself, perhaps from this version, the iOS gives some opportunity to some Apps to do some st

  • JdbcServices - Reduced Functionality???

    I am using the dynamic connection pooling services from JdbcServices in 6.1beta. How do I get access to the newly created connection from a remote client? The documentation says that the t3 JDBC driver has been deprecated and I should use the RMI dri

  • Embedding fonts within a postscript file

    Hi all, I want to know the best way to embed specific fonts within a postscript file. More specifically, I have several postscript procedures that will draw shapes, graphs, and make labels based on the user's input. Right now the font is hard-coded,

  • Use of View in NWDS

    can i use a view of another project into my project ? If yes, how ?