Request dump of request in SOAP webservice

hi
i am new to SOAP Webservice i want to see what is request is send to server is there any way to see Requeest Dump for what request is went to server?
i am implementating webservice using <s:webSerice > tag and pass Wsdl and in the <s:request > tag i pass 4 parameter which is neeed for webservice call.
now i want to see what request is made in the mxml and which is send to server
Thanks & Regards,
Megha

If client has given you the WSDL then you need to create a proxy out of it. It may be a deployable proxy in your case and use those proxy classes in your EJB to populate the web service request.
Method 1 cannot generate xml in format 4.
The other way would be to try out xslt to convert XML from one format to another. But in order to do so, you would require to generate the schema from both the xml. This can be easily done with some good xml editors, like xmlspy.

Similar Messages

  • HTTP- XI- SOAP(webservice) - error in outbound mapping

    Scenario is HTTP(request)->XI->SOAP(webservice) ->XI->HTTP(response)
    2 messsage mappings for request and response (syncronous)
    1 interface mapping
    HTTP payload reaches XI from there it appears problem translating request data to webservice external URL "http://webservices.imacination.com/distance/Distance.jws". 
    Message mappings when tested with sample xml in intergration repository results in success. Meaning source populated data gets copied to target in IR testing (both for request and response).
    Here is the log from SXMB_MONI
    - - - - SystemError synchronous 034E60D2-1D22-6B44-B424-E7A4527B7375 54F73912-E6A9-A741-A815-1F623FC79293 2007-01-23T14:50:58Z - vservice4 mi_inb_ws - vservice4 mi_out mi_out - BestEffort - Application <b>EXCEPTION_DURING_EXECUTE</b> com/sap/xi/tf/_mm_ws_ java.lang.NullPointerException During the application mapping com/sap/xi/tf/_mm_ws_ a <b>java.lang.NullPointerException was thrown</b>: N - - HTTP
    server-protocol HTTP/1.1 user-agent Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0) host <xiapp>:8050 content-length 230 remote-addr 10.20.40.120 <b>COMMIT is expected by application</b> !
    SAP_CENTRAL - - - - R E C E I V E R - D E T E R M I N A T I O N Cache Content is up to date - - - - I N T E R F A C E - D E T E R M I N A T I O N Cache Content is up to date - - - - number of receivers: 1 Single-receiver split case - - - - Interface Mapping urn:
    vmyvendor.org\http2webservice im_ws RuntimeException during appliction Java mapping com/sap/xi/tf/_mm_ws_ java.lang.NullPointerException at com.sap.aii.mappingtool.tf3.AMappingProgram.exceptionCaught$(AMappingProgram.java:59)
    Any pointers would be greatly appreciated. Thanks

    From XML request message->SOAP Header->Trace & using XML spy problem is in <b>CL_XMS_MAIN-CALL_PLSRV</b>. The log also talks about message persist processing, is it valid for sync webservice?
      <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Request Message Mapping
      -->
    - <SAP:Trace xmlns:SAP="http://sap.com/xi/XI/Message/30">
    + <Trace level="1" type="B" name="CL_HTTP_PLAIN_INBOUND">
      <Trace level="1" type="T">server-protocol HTTP/1.1</Trace>
      <Trace level="1" type="T">user-agent Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)</Trace>
      <Trace level="1" type="T">host xiapp:8050</Trace>
      <Trace level="1" type="T">content-length 229</Trace>
      <Trace level="1" type="T">remote-addr 10.20.40.101</Trace>
      </Trace>
      <Trace level="1" type="T">COMMIT is expected by application !</Trace>
      <Trace level="1" type="B" name="CL_XMS_MAIN-ENTER_XMS" />
    - <!--  ************************************
      -->
      <Trace level="1" type="B" name="CL_XMS_MAIN-SET_START_PIPELINE" />
    - <!--  ************************************
      -->
      <Trace level="1" type="B" name="SXMBCONF-SXMB_GET_XMB_USE" />
      <Trace level="1" type="B" name="CL_XMS_TROUBLESHOOT-ENTER_PLSRV" />
      <Trace level="1" type="T">****************************************************</Trace>
      <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_UC_EXECUTE" />
    - <!--  ************************************
      -->
      <Trace level="1" type="T">Message-GUID = 69CB2C55A02E1048AC67316A17FD109D</Trace>
      <Trace level="1" type="T">PLNAME = CENTRAL</Trace>
      <Trace level="1" type="T">QOS = BE</Trace>
      <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PIPELINE_SYNC" />
    - <!--  ************************************
      -->
      <Trace level="1" type="T">Get definition of external pipeline CENTRAL</Trace>
      <Trace level="1" type="B" name="CL_XMS_MAIN-LOOKUP_INTERNAL_PL_ID" />
      <Trace level="1" type="T">Corresponding internal pipeline SAP_CENTRAL</Trace>
      <Trace level="1" type="B" name="CL_XMS_MAIN-WRITE_MESSAGE_LOG_TO_PERSIST" />
    + <Trace level="1" type="B" name="PLSRV_RECEIVER_DETERMINATION">
    - <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PLSRV">
    - <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PLSRV_LOCAL">
    - <Trace level="1" type="B" name="CL_RD_PLSRV-ENTER_PLSRV">
      <Trace level="1" type="T">R E C E I V E R - D E T E R M I N A T I O N</Trace>
      <Trace level="1" type="T">Cache Content is up to date</Trace>
      </Trace>
      </Trace>
      </Trace>
      </Trace>
      <Trace level="1" type="B" name="CL_XMS_MAIN-WRITE_MESSAGE_LOG_TO_PERSIST" />
    + <Trace level="1" type="B" name="PLSRV_INTERFACE_DETERMINATION">
    - <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PLSRV">
    - <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PLSRV_LOCAL">
    - <Trace level="1" type="B" name="CL_ID_PLSRV-ENTER_PLSRV">
      <Trace level="1" type="T">I N T E R F A C E - D E T E R M I N A T I O N</Trace>
      <Trace level="1" type="T">Cache Content is up to date</Trace>
      </Trace>
      </Trace>
      </Trace>
      </Trace>
      <Trace level="1" type="B" name="CL_XMS_MAIN-WRITE_MESSAGE_LOG_TO_PERSIST" />
    + <Trace level="1" type="B" name="PLSRV_RECEIVER_MESSAGE_SPLIT">
    - <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PLSRV">
    - <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PLSRV_LOCAL">
    - <Trace level="1" type="B" name="CL_XMS_PLSRV_RECEIVER_SPLIT-ENTER_PLSRV">
      <Trace level="1" type="T">number of receivers: 1</Trace>
      <Trace level="1" type="T">Single-receiver split case</Trace>
      </Trace>
      </Trace>
      </Trace>
      </Trace>
      <Trace level="1" type="B" name="CL_XMS_MAIN-WRITE_MESSAGE_LOG_TO_PERSIST" />
      <Trace level="1" type="B" name="PLSRV_MAPPING_REQUEST" />
    - <!--  ************************************
      -->
    + <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PLSRV">
      <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PLSRV_LOCAL" />
    - <!--  ************************************
      -->
      <Trace level="1" type="B" name="CL_MAPPING_XMS_PLSRV3-ENTER_PLSRV" />
    - <!--  ************************************
      -->
      <Trace level="1" type="T">Interface Mapping urn:
    vendor\http2webservice im_ws</Trace>
      <Trace level="1" type="T">RuntimeException during appliction Java mapping com/sap/xi/tf/_mm_ws_</Trace>
      <Trace level="1" type="T">java.lang.NullPointerException at com.sap.aii.mappingtool.tf3.AMappingProgram.exceptionCaught$(AMappingProgram.java:59) at com.sap.aii.mappingtool.tf3.Transformer.checkParserException(Transformer.java:182) at com.sap.aii.mappingtool.tf3.Transformer.start(Transformer.java:149) at com.sap.aii.mappingtool.tf3.AMappingProgram.execute(AMappingProgram.java:102) at com.sap.aii.ibrun.server.mapping.JavaMapping.executeStep(JavaMapping.java:64) at com.sap.aii.ibrun.server.mapping.Mapping.execute(Mapping.java:91) at com.sap.aii.ibrun.server.mapping.MappingHandler.run(MappingHandler.java:90) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleMappingRequest(MappingRequestHandler.java:95) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleRequest(MappingRequestHandler.java:68) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceImpl.processFunction(MappingServiceImpl.java:79) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceObjectImpl0.processFunction(MappingServiceObjectImpl0.java:131) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.sap.engine.services.ejb.session.stateless_sp5.ObjectStubProxyImpl.invoke(ObjectStubProxyImpl.java:187) at $Proxy176.processFunction(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.handleRequest(RFCDefaultRequestHandler.java:100) at com.sap.engine.services.rfcengine.RFCJCOServer.handleRequestInternal(RFCJCOServer.java:113) at com.sap.engine.services.rfcengine.RFCJCOServer$ApplicationRunnable.run(RFCJCOServer.java:157) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged(Native Method) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)</Trace>
      <Trace level="1" type="T">Runtime exception occurred during execution of application mapping program com/sap/xi/tf/_mm_ws_: java.lang.NullPointerException; null</Trace>
      <Trace level="1" type="T">com.sap.aii.ibrun.server.mapping.MappingRuntimeException: Runtime exception occurred during execution of application mapping program com/sap/xi/tf/_mm_ws_: java.lang.NullPointerException; null at com.sap.aii.ibrun.server.mapping.JavaMapping.executeStep(JavaMapping.java:73) at com.sap.aii.ibrun.server.mapping.Mapping.execute(Mapping.java:91) at com.sap.aii.ibrun.server.mapping.MappingHandler.run(MappingHandler.java:90) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleMappingRequest(MappingRequestHandler.java:95) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleRequest(MappingRequestHandler.java:68) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceImpl.processFunction(MappingServiceImpl.java:79) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceObjectImpl0.processFunction(MappingServiceObjectImpl0.java:131) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.sap.engine.services.ejb.session.stateless_sp5.ObjectStubProxyImpl.invoke(ObjectStubProxyImpl.java:187) at $Proxy176.processFunction(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.handleRequest(RFCDefaultRequestHandler.java:100) at com.sap.engine.services.rfcengine.RFCJCOServer.handleRequestInternal(RFCJCOServer.java:113) at com.sap.engine.services.rfcengine.RFCJCOServer$ApplicationRunnable.run(RFCJCOServer.java:157) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged(Native Method) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170) Root Cause: java.lang.NullPointerException at com.sap.aii.mappingtool.tf3.AMappingProgram.exceptionCaught$(AMappingProgram.java:59) at com.sap.aii.mappingtool.tf3.Transformer.checkParserException(Transformer.java:182) at com.sap.aii.mappingtool.tf3.Transformer.start(Transformer.java:149) at com.sap.aii.mappingtool.tf3.AMappingProgram.execute(AMappingProgram.java:102) at com.sap.aii.ibrun.server.mapping.JavaMapping.executeStep(JavaMapping.java:64) at com.sap.aii.ibrun.server.mapping.Mapping.execute(Mapping.java:91) at com.sap.aii.ibrun.server.mapping.MappingHandler.run(MappingHandler.java:90) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleMappingRequest(MappingRequestHandler.java:95) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleRequest(MappingRequestHandler.java:68) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceImpl.processFunction(MappingServiceImpl.java:79) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceObjectImpl0.processFunction(MappingServiceObjectImpl0.java:131) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.sap.engine.services.ejb.session.stateless_sp5.ObjectStubProxyImpl.invoke(ObjectStubProxyImpl.java:187) at $Proxy176.processFunction(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.handleRequest(RFCDefaultRequestHandler.java:100) at com.sap.engine.services.rfcengine.RFCJCOServer.handleRequestInternal(RFCJCOServer.java:113) at com.sap.engine.services.rfcengine.RFCJCOServer$ApplicationRunnable.run(RFCJCOServer.java:157) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged(Native Method) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)</Trace>
      <Trace level="1" type="E">CL_XMS_PLSRV_MAPPING~ENTER_PLSRV</Trace>
      </Trace>
      <Trace level="1" type="B" name="CL_XMS_MAIN-WRITE_MESSAGE_TO_PERSIST" />
    - <!--  ************************************
      -->
      </SAP:Trace>

  • Invalid request in SOAP Scenario - "HTTP 400 Bad Request"

    Hi,
    By sending request to a Webservice thorugh XI ,I am getting an error as "HTTP 400 Bad Request" in MONI and the response payload looks like this
    "Request Error (invalid_request)
    Your request could not be processed. Request could not be handled 
    This could be caused by a misconfiguration, or possibly a malformed request. 
    For assistance, contact your network support team."
    I copy pasted the request payload in SOAP UI,  there its working fine.I don't know where it goes wrong.
    Please help me in that...
    Thanks & Regards,
    Yuga

    Hi Yugapreetha,
    Error: HTTP 400- Bad Request- ICM_HTTP_CONNECTION_FAILED
    Description: The request could not be understood by the server due to malformed syntax. The client SHOULD NOT repeat the request without modifications.
    Possible Tips: May be because of huge message flow. Related SAP Notes-824554, 906435, 783515, 910649, 706563 If it is because of Queue problems have a look into SMQ2 .
    And also here are a list of possible reasons for your problem with solutions.
    It could be that it cannot find your file adapter.
    1. Have you specified your hostname or IP address? Often the server cannot resolve the ip address for the hostname of your PC.
    2. Is the path and port in the directory the same as the path and port of your file adapter?
    3. Try question 14 (integration engine section)
    /people/mark.finnern/blog/2006/01/12/finally-best-of-sdn-2005
    4. also question 11 (in the same section)
    5. if the avove will not fix it open XI config guide and
    have a look at section
    "Connecting Business Systems with an Integration Engine to the Central Integration Server"
    6. Your error code is 400, so check this link,
    http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
    For http 400 - its a bad request.
    'The request could not be understood by the server due to malformed syntax.'
    If you have the XI trouble shooting guide see from page 54,and also try:
    1.Check that the port really is the ICM HTTP Port (transaction
    SMICM) and not the J2EE port
    2.If the port is wrong, change the pipeline URL in the SLD in
    the business system of the Integration Server
    3.Restart the J2EE Engine to reset the SLD buffer of the
    Adapter Engine
    Source- "XI troubleshooting guide"
    Check out this SAP Note- 824554
    Also this links
    ICM_HTTP_CONNECTION_FAILED
    Cache Refresh~
    https://websmp201.sap-ag.de/~sapdownload/011000358700003163902004E/HowTo_handle_XI_30_Caches.pdf
    Reprocessing failed XI messages:
    /people/sap.user72/blog/2005/11/29/xi-how-to-re-process-failed-xi-messages-automatically
    Regards,
    Vinod.

  • 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.

  • How to send concurrent xml request to Soap service.

    Hi
    I am working in a scenario. where i need to send more than 10 concurrent xml request to soap service hosted in IIS.
    and that service directly pools to biztalk recieve location. Presently i am sending a single request through soap ui.
    Is there any tool available to send more than 10 xml request to service. If not then how we send through C#.code

    Hi Anagh,
    Microsoft BizTalk LoadGen 2007 Tool would be the perfect fit for your requirement where you need to send "Concurrent" request to SOAP.
    Using LoadGen you can configure it use to number of concurrent threads to send messages. In its config file, it has a section called
    <NumThreadsPerSection> which can be used to set the number of concurrent threads that LoadGen will use to send messages.
    Read one of my old blogposts where I have talked about using LoadGen for simulating message load for SOAP services.
    http://indway-is.blogspot.co.uk/2009/01/loadgen-testharness-for-soap-transport.html
    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.

  • Extract Portal User Name From HTTP POST Request (WSRP SOAP)

    How can we extract the user name from the HTTP POST Request (*WSRP SOAP*) from the Portal to the Portlet Provider (Producer)?
    We are load balancing between the Portal (10.1.14.2) and the providers (OC4J 10.1.3.3) and would like to extract the user name within the load balancer so we can create session affinity based on it.
    BTW, we already tried using TCP Flow but were unable to see the user name.

    From the documentation, it seems that you need to use
    HttpURLConnection.setRequestMethod("POST"); // "GET" is the defaultalthough I have seen examples on the web without it.
    Try!
    Edit: Also the single quotes around userid and password may be a problem.
    Use the previous poster suggestion, but do not include the single quotes.
    Edited by: baftos on Aug 6, 2008 4:27 PM

  • IDOC---XI----SOAP(Webservice) Sync

    Experts,
    Need to Develop IDOC-XI--SOAP(Webservice) Sync Communication Interface
    I have  importing the Standard Idoc & External Def  for WSDL ,which has the Request & Response Structure.
    I need to handle the SYNC message in the XI  and ignore it/ do not pass to the source system.
    Any Weblog will help ,
    Thnaks
    Edward

    Hi Edward,
    Follow the steps given below
    In IR create following objects:
    1: Import Web Service definition file in External Definition.
    2: Import IDoc ZDLVRY. (I have used custom IDoc)
    3: Create Message Interface
         a. Abstract Synchronous for sender
         b. Abstract Synchronous for Receiver
         c. Abstract Asynchronous for request
         d. Abstract Asynchronous for response
    4. Create Message Mapping for Source Request to Target Request
    5. Create Message Mapping for Target Response to Source Response.
    6. Create Interface mapping and specify proper input in request and response tab.
    7. Create Integration Process
    Configuration in ID:
    1. Create Integration Process for BPM created in IR.
    2. Create receiver determination
        a. From SAP R/3 to Integration Process
        b. From Integration Process to Third Party (Web Service)
        c. From Integration Process to SAP R/3
    3. Create Interface Determination
        a. From SAP R/3 to Integration Process
        b. From Integration Process to Third Party (Web Service)
        c. From Integration Process to SAP R/3
    4. Create Receiver Agreement
    5. Create Communication channel for Soap Receiver and IDoc Receiver.
    6. Create Receiver Agreement for Soap Receiver
    7. Create Receiver Agreement for IDoc Receiver
    if u have any doubt in any step please let me know
    Regards,
    Manisha

  • Calling functions from SOAP webservice. Can't access webservice functions.

    Hi flex gurus,
    I am quite new to flex. I am working on an flex application where I am trying to remotely invoke a SOAP webservice which is a wsdl file from Adobe flex 4.6.
    I have authenticated the webservice(Basic Authentication Done) and got access to wsdl but I am unable to call the functions in it. I just want to pass the username and password for the user login to the service function which will give me the data useful for my application, but nothing is returned when the webservice function is called.
    I am totally blocked at this point. Please help me.
    Thanks in advance.

    Below is my code snippet. But nothing is returned from th service, what is the problem???
    <?xml version="1.0" encoding="utf-8"?>
    <s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
            xmlns:s="library://ns.adobe.com/flex/spark" title="CheckWS" >
        <fx:Script>
            <![CDATA[
                import flash.net.drm.AuthenticationMethod;
                import mx.collections.ArrayCollection;
                import mx.messaging.messages.SOAPMessage;
                import mx.rpc.AsyncToken;
                import mx.rpc.events.FaultEvent;
                import mx.rpc.events.ResultEvent;
                import mx.rpc.http.HTTPService;
                import mx.rpc.soap.AbstractWebService;
                import mx.rpc.soap.Operation;
                import mx.rpc.soap.SOAPFault;
                import mx.rpc.soap.SOAPHeader;
                import mx.rpc.soap.SOAPResult;
                import mx.rpc.soap.WebService;
                import mx.rpc.wsdl.WSDLBinding;
                import mx.utils.Base64Encoder;
                public var resultdata:String;
                private function send_data(service:mx.rpc.http.HTTPService):void {
                    var encoder:Base64Encoder = new Base64Encoder();           
                    encoder.insertNewLines = false;           
                    encoder.encode("auth_usrname:auth_pswd");
                    service.headers = {Authorization:"Basic " + encoder.toString()};
                    service.send();
                //protected function soapWS_resultHandler(event:ResultEvent):void
                    // TODO Auto-generated method stub
                    /* var i:int;
                    var webresult:String=event.result.toString();
                    i = 0; */
                    /* var i:int;
                    resultdata = event.result.toString();
                    i = 0;
            ]]>
        </fx:Script>
        <fx:Declarations>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
            <s:HTTPService id="soapWS"
                           url="My_Web_URL?wsdl" result="soapWS_resultHandler(event)" resultFormat="xml" useProxy="false" method="POST">
                <s:request xmlns="">
                    <Username>{username.text}</Username>
                    <Password>{password.text}</Password>
                </s:request>
                <s:result >
                    <![CDATA[
                        var i:int;
                        dgUserRequest.visible = true;
                        var obj:Object = new Object();
                        obj = event.result;
                    //    dgUserRequest.dataProvider = event.result.toString();
                    //    var str:String = new String();
                        resultdata = obj.toString();
                        i = 0;
                    ]]>                                                       
                </s:result>
            </s:HTTPService>
        </fx:Declarations>
        <s:Form x="20" y="10" width="100%">
            <s:FormItem color="blue">
                <s:Label text="Username" />    
                <s:TextInput id="username"/>
            </s:FormItem>
            <s:FormItem color="blue">
                <s:Label text="Password" />    
                <s:TextInput id="password"/>    
            </s:FormItem>
            <s:FormItem color="yellow">
                <s:Button label="Submit" click="send_data(soapWS)"/>
            </s:FormItem>
        </s:Form>
        <s:DataGrid id="dgUserRequest" x="20" y="300"
                     dataProvider="{resultdata}" width="100%">
            <s:columns>
                <s:ArrayList>
                    <s:GridColumn dataField="password" headerText="Password" />
                    <s:GridColumn dataField="username" headerText="User Name"/>
                </s:ArrayList>
            </s:columns>
        </s:DataGrid>
    </s:View>

  • PI to SOAP webservice performace issue

    Dear All,
    I have seen message expired error/no response error from one of IDOC--> PI--> SOAP Webservice sceanrio when PI have sending bulk of messages request to SOAP webserver at a time.
    This scenario has already implemented using BPM because of complexity/ synchronous communcations.
    According my research multiple IDOC's were triggred from SAP system at the same time/some seconds difference, when PI received these IDOC's and processing to SOAP webservice immediately when bulk of messages contact the same time and/or may be same data processing in Webservice and giving the no response/ message expired exception and currently synchronous time set to 5 min but no useful.
    Can I know how to process the message one after another when PI contacting the SOAP adapter,
    Is their any possible to implement SOAP look up/Soap module for process one after another message?
    Appreciate your suggestions....
    Thank you.
    Sateesh

    Hi Sateesh,
    Please see the links below. They should help.
    How to Use Loop in BPM?
    SAP PI7.31 BPM Parallel For Each
    Good luck,
    Jannus Botha

  • Sender soap webservice error

    hi,
    i am working on soap(webservice)) to rfc scenario.
    the adapet for sender soap created in business service for reciever side is not dispalyed in adapter monitoing in component monitor of rwb.
    any body help will be appriciated.
    t&g
    vijedner

    Hi vijedner,
    have a look to RTW Communiction Channel Monitoring.
    Regards,
    Udo

  • How to consume SOAP webservice in to my java/j2ee application

    Hi,
          I am a java developer. how to i consume SAP soap webservice in to my java application.
    scenario : 1
    We are migrating 2 specific java modules in to SAP System.But master details are stored in to my java application database.Those details are require
    to SAP application. So that they provide me WSDL file,  How to i consume soap webservice in to my java application and also, How to i provide master data details to SAP system through SOAP webservice.
    Any body provide me a detail instruction how to integrate SAP Application in to my java application using SOAP webservice. or
    In this scenario i will go for any one open source ESB to consume the soap webservice in to my java application, and provide master data to
    SAP application, can any one guide to me.

    Hi,
    What IDE are you using?, for example with Eclipse i used WSDL2JAVA plugin in this way i converted the WSDL in java classes easily. Depending your development environment you can use different tools that makes easier the integration using the WSDL.
    Regards.

  • R3 (RFC Asynch) -- XI --- SOAP (webservice Synch)

    Hi Experts,
               My scenario is :R3 (RFC Asynch) > XI <-> SOAP(webservice is synch)
    Step1:-   R3 sends the data webservie(SOAP) via XI.
    Step2:-   Webservice returns the response to XI, But R3(RFC) does not need the resoponse.
    how to handle the webservice response in XI.
    do i need to use BPM as this scenario is R3(RFC synch) > XI <--> Webservice(soap, synch). Can anybody help me out how to design this scenario.
    Thanks,
    Siva

    So then all u need is to create a async inbound MI. Also the WS should be configured in a way that it sends a HTTP 200 with a SOAP envelope with an empty content for successful delivery.
    Refer the below from the SOAP adapter FAQ;
    Receiver Asynchronous Calls
    Q: What are the correct receiver options for asynchronous calls?
               A: The processing mode of the receiver is determined by the message that reaches the receiver. If you are sending a message with some quality of service, to provide this service of quality to the server, your must make sure two things. First, your receiver channel must be configured to pass the XI message ID to the server. Second, your web service must check duplicates using this message ID.
    Q: What should my web service return to the adapter for asynchronous calls?
               A: Currently, the receiver adapter expects an HTTP 200 with a SOAP envelope with an empty content for successful delivery. Any other response will result in a XI system error and triggers retries of the message. When you want to check duplicates, you should configure your receiver channel to pass the XI message header information to the server.
               Prior to SP11, a SOAP fault resulted in the application or system error, depending on whether the SOAP fault contained a detail child element or not. This behavior contradicted the communication model. Therefore, it has been changed so that the adapter generates the system error for any SOAP fault in asynchronous calls.
               When you want to check duplicates in your web service, you should configure your receiver channel to pass the XI message header information to the server. When your web service indeed find a duplicate, assuming that the previous message was simply lost, your web service should return an HTTP 200 with an empty SOAP envelope.

  • Testing between XI  - SOAP(WebService)

    Hi,
        I am doing scenario R3 (Rfc) - > XI - >SOAP(Webservice). Now R3 system is not available, i want to test the data flow between the XI and SOAP(WebService).
    I have tested  <b>Webservice</b> with XML Spy , witch is working fine.
    Now i want to test Between XI and SOAP(Webservice). Can any one help me is there any way to test between these two systems for time being.
    thanks,
    dhanush.

    Hi,
    I hope  you might have already  executed this Scenerio  when R3  is  Up..Right ..If  so... Use that Pay load  and paste  in  in Component  monotoring..use  test tab  and send the message  after pointing the right  interface  and it's namespace.
    Regards
    Agasthuri Doss

  • Consuming Flex & SOAP WebService

    I am attempting to consume a SOAP webservice and I am having trouble.
    How would you suggest that I consume a web service using the following xml?  Also, if you could provide a simple example that would be great!
    Thanks.
    HTTP/1.1 200 OK
    Content-Type: text/xml; charset=utf-8
    Content-Length: length
    <?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/">
      <soap:Body>
        <GetViewResultsResponse xmlns="http://www.servicesource/datamanager/">
          <GetViewResultsResult>
            <PrimaryTableName>string</PrimaryTableName>
            <IsSystemView>boolean</IsSystemView>
            <DataTables>
              <NHRCViewResultDataTable>
                <TableOrViewID>guid</TableOrViewID>
                <TableName>string</TableName>
                <Columns xsi:nil="true" />
                <Rows xsi:nil="true" />
              </NHRCViewResultDataTable>
              <NHRCViewResultDataTable>
                <TableOrViewID>guid</TableOrViewID>
                <TableName>string</TableName>
                <Columns xsi:nil="true" />
                <Rows xsi:nil="true" />
              </NHRCViewResultDataTable>
            </DataTables>
            <Queries>
              <NHRCQueryDefinition>
                <NumberRowsToGet>int</NumberRowsToGet>
                <FirstRowToGet>int</FirstRowToGet>
                <MainTable xsi:nil="true" />
                <Tables xsi:nil="true" />
                <WhereClause xsi:nil="true" />
                <StructureOnly>boolean</StructureOnly>
                <ColumnListPrefix>string</ColumnListPrefix>
              </NHRCQueryDefinition>
              <NHRCQueryDefinition>
                <NumberRowsToGet>int</NumberRowsToGet>
                <FirstRowToGet>int</FirstRowToGet>
                <MainTable xsi:nil="true" />
                <Tables xsi:nil="true" />
                <WhereClause xsi:nil="true" />
                <StructureOnly>boolean</StructureOnly>
                <ColumnListPrefix>string</ColumnListPrefix>
              </NHRCQueryDefinition>
            </Queries>
            <ChangeLogTable>
              <TableOrViewID>guid</TableOrViewID>
              <TableName>string</TableName>
              <Columns>
                <NHRCViewResultColumn xsi:nil="true" />
                <NHRCViewResultColumn xsi:nil="true" />
              </Columns>
              <Rows>
                <NHRCViewResultRow xsi:nil="true" />
                <NHRCViewResultRow xsi:nil="true" />
              </Rows>
            </ChangeLogTable>
            <ViewTitle>string</ViewTitle>
            <ViewID>guid</ViewID>
            <DataVersion>dateTime</DataVersion>
            <CompareVersion>dateTime</CompareVersion>
            <LookupLists>
              <NHRCViewResultLookupList>
                <LookupTableID>guid</LookupTableID>
                <ColumnDetails xsi:nil="true" />
                <IsViewResults>boolean</IsViewResults>
                <UsedAsSubtable>boolean</UsedAsSubtable>
                <IsChangeTrackingTable>boolean</IsChangeTrackingTable>
                <CanAcceptChanges>boolean</CanAcceptChanges>
                <TableName>string</TableName>
              </NHRCViewResultLookupList>
              <NHRCViewResultLookupList>
                <LookupTableID>guid</LookupTableID>
                <ColumnDetails xsi:nil="true" />
                <IsViewResults>boolean</IsViewResults>
                <UsedAsSubtable>boolean</UsedAsSubtable>
                <IsChangeTrackingTable>boolean</IsChangeTrackingTable>
                <CanAcceptChanges>boolean</CanAcceptChanges>
                <TableName>string</TableName>
              </NHRCViewResultLookupList>
            </LookupLists>
            <ColumnDetails>
              <NHRCViewResultColumnDetails>
                <LookupTableID>guid</LookupTableID>
                <LookupListSortColumn>string</LookupListSortColumn>
                <IsPartOfDuplicateCheck>boolean</IsPartOfDuplicateCheck>
                <PrimaryFilterOrder>int</PrimaryFilterOrder>
                <IsPartOfErrorDefinition>boolean</IsPartOfErrorDefinition>
                <KeyFieldName>string</KeyFieldName>
                <ValueFieldNames xsi:nil="true" />
                <DisplayFieldCaption>string</DisplayFieldCaption>
                <ConsolidatedDisplayFieldName>string</ConsolidatedDisplayFieldName>
                <ConsolidatedDisplayFieldExpression>string</ConsolidatedDisplayFieldExpression>
                <OriginalFieldName>string</OriginalFieldName>
                <ColumnWidth>int</ColumnWidth>
                <DataType>string</DataType>
                <MaxLength>int</MaxLength>
                <AllowEmpty>boolean</AllowEmpty>
                <Visible>boolean</Visible>
                <DisplayOrder>int</DisplayOrder>
                <FieldReadOnly>boolean</FieldReadOnly>
                <IsSubtableLink>boolean</IsSubtableLink>
                <IsLookupFromView>boolean</IsLookupFromView>
                <IsSingleValueLookupTable>boolean</IsSingleValueLookupTable>
                <IsLookupOfLookup>boolean</IsLookupOfLookup>
                <LookupCriteria>string</LookupCriteria>
                <MinValue>double</MinValue>
                <MaxValue>double</MaxValue>
                <ValidationRegex>string</ValidationRegex>
              </NHRCViewResultColumnDetails>
              <NHRCViewResultColumnDetails>
                <LookupTableID>guid</LookupTableID>
                <LookupListSortColumn>string</LookupListSortColumn>
                <IsPartOfDuplicateCheck>boolean</IsPartOfDuplicateCheck>
                <PrimaryFilterOrder>int</PrimaryFilterOrder>
                <IsPartOfErrorDefinition>boolean</IsPartOfErrorDefinition>
                <KeyFieldName>string</KeyFieldName>
                <ValueFieldNames xsi:nil="true" />
                <DisplayFieldCaption>string</DisplayFieldCaption>
                <ConsolidatedDisplayFieldName>string</ConsolidatedDisplayFieldName>
                <ConsolidatedDisplayFieldExpression>string</ConsolidatedDisplayFieldExpression>
                <OriginalFieldName>string</OriginalFieldName>
                <ColumnWidth>int</ColumnWidth>
                <DataType>string</DataType>
                <MaxLength>int</MaxLength>
                <AllowEmpty>boolean</AllowEmpty>
                <Visible>boolean</Visible>
                <DisplayOrder>int</DisplayOrder>
                <FieldReadOnly>boolean</FieldReadOnly>
                <IsSubtableLink>boolean</IsSubtableLink>
                <IsLookupFromView>boolean</IsLookupFromView>
                <IsSingleValueLookupTable>boolean</IsSingleValueLookupTable>
                <IsLookupOfLookup>boolean</IsLookupOfLookup>
                <LookupCriteria>string</LookupCriteria>
                <MinValue>double</MinValue>
                <MaxValue>double</MaxValue>
                <ValidationRegex>string</ValidationRegex>
              </NHRCViewResultColumnDetails>
            </ColumnDetails>
            <ExpressionColumns>
              <NHRCViewResultExpressionColumn>
                <TableID>guid</TableID>
                <TableName>string</TableName>
                <ColumnName>string</ColumnName>
                <Expression>string</Expression>
                <Order>int</Order>
              </NHRCViewResultExpressionColumn>
              <NHRCViewResultExpressionColumn>
                <TableID>guid</TableID>
                <TableName>string</TableName>
                <ColumnName>string</ColumnName>
                <Expression>string</Expression>
                <Order>int</Order>
              </NHRCViewResultExpressionColumn>
            </ExpressionColumns>
            <Relations>
              <NHRCViewResultRelation>
                <ParentKey>string</ParentKey>
                <ChildKey>string</ChildKey>
                <RelationName>string</RelationName>
                <ParentTableName>string</ParentTableName>
                <ChildTableName>string</ChildTableName>
                <ParentTableID>guid</ParentTableID>
                <ChildTableID>guid</ChildTableID>
                <DependsOnExpressionColumn>boolean</DependsOnExpressionColumn>
              </NHRCViewResultRelation>
              <NHRCViewResultRelation>
                <ParentKey>string</ParentKey>
                <ChildKey>string</ChildKey>
                <RelationName>string</RelationName>
                <ParentTableName>string</ParentTableName>
                <ChildTableName>string</ChildTableName>
                <ParentTableID>guid</ParentTableID>
                <ChildTableID>guid</ChildTableID>
                <DependsOnExpressionColumn>boolean</DependsOnExpressionColumn>
              </NHRCViewResultRelation>
            </Relations>
          </GetViewResultsResult>
        </GetViewResultsResponse>
      </soap:Body>
    </soap:Envelope>

    Turns out I needed to set null values for all the other arguments in the definition that I wasn't using. After that Flex was translating it properly.

  • SOAP Webservice problem on Android

    Hello,
    I am trying to consume my own SOAP webservice and generated webservice stubs from my wsdl in flash builder.
    Testing operations is working fine. Everything is working in "simulated device". But when I run my app on my android device webservice calls are never returning.
    They are actually never received on the webservice server.
    Just afert 10 to 30 seconds there is a window displayed inside my app. This window is not from me, I only have two label fields in this project to display test webservice data.
    Made a image for you:
    "click to have good quality"
    I tried 2 services:
    one where the webservice server is running on my device (10.10.200.40 is devices ip address)
    one where the webservice is running in internet.
    The devices connection is fine. 10.10.200.40 and outside addresses are pingable and the webservice on the device can be called from flashbuilder's operation testing.
    Thanks,
    Thomas

    Hello All
    I also need to call some simple web mothods. How is this achieved?
    I have an as3 mobile project built in flash builder 4.6 which needs to send/ receive simple data with my asp.net web service.
    Is your problem related to a security setting in your xml descriptor file perhaps??

Maybe you are looking for

  • PC with 2 two accounts  and home sharing is not working in itunes

    I have a PC with two user's accounts and we both have individual iTunes libraries and accounts. We have home sharing turned on both nothing is showing up in the new iTunes--any ideas why?

  • Email web form

    so i am trying to make a web form with 3 text entrys options name: email: message: and i also want this web form to send to my email but no matter how many youtube tutorials i have followed it never seems to work i have been spending hours entering i

  • Is there any BAPI,direct input object in lsmw to create billing plan?

    Hi experts, Is there any BAPI,direct input object or idoc in LSMW to create sales order with billing plan? Lance

  • QA11...Inspection Lot Stock Posting *RQEVA-SGTXT01*

    Hi All, In QA11, on the inspection Lot Stock tab, i m posting some qty for restriction, scrap n all... i want to know where the item text (RQEVA-SGTXT01)is stored for this..  on which table this is stored..??? Thanks n Regards Aravindh Mani

  • Post Moved Home-hub-3-firmware-version

    moved to Other BB Queries http://community.bt.com/t5/Other-BB-Queries/Home-hub-3-firmware-version/td-p/879756 If you want to say thanks for a helpful answer,please click on the Ratings star on the left-hand side If the reply answers your question the