How to see http response from an axis web service call (Eclipse)

Hello,
I would like to see the raw http response which is returned from web service calls. I have a dynamic web project in Eclipse which uses a local instance of Tomcat 6. I'm using all of the default setting for a top-down web service generated from a WSDL file. I've generated the client using the built-in "generate client" using default settings.
I've tried using the Eclipse plugin TCP/IP monitor and apache's TCPMON, but I am only able to see the http request, not the http response returned from the web server I am querying.
I've seen some sparse documentation outlining how to use logging handlers and a client-config.wsdd file, but I haven't been able to get that working.
So to recap, I'm looking for a way to view raw http responses using a web service client and server generated from a WSDL file in eclipse. I don't mind creating a new project using different code-generating libraries if someone has an easy way to do this using a different configuration.
Thanks very much,
Craig

908794 wrote:
Hello,
I would like to see the raw http response which is returned from web service calls.Why the HTTP response? Isn't the soap message body enough? If it is, you probably want to check out SoapUI.
A simple google query for "apache axis2 http response" also return this article:
http://blogs.cocoondev.org/dims/archives/004668.html
And finally, you did go through the Axis2 website right? It has a wiki with a rather staggering amount of articles in there.
http://wiki.apache.org/ws/FrontPage/Axis2/

Similar Messages

  • SOAP Response from PL/SQL Web Service

    My returned SOAP xml from PL/SQL web service has totally rearranged element order, which defined in WSDL and oracle database. It also changed all element name from mixed upper/lower case to pure lower case and makes them hard to read. Why is that? Is there any way to avoid these to happen?
    My PL/SQL web service was generated by Oracle9i JDeveloper 9.0.3.
    Thanks for any help.
    Yi

    Hi,
    we need more details
    - it seems like you have both Return and OUT arguments; which SOAP stack are you using?
    - which tools?
    - What is the naming convention of your PL/SQL arguments?
    Kuassi
    Mike,
    1. The SOAP is the result of publishing a stored procedure/function as a Web service.
    2. The elements for returned data are re-ordered. The function returns no complex type.
    3. The element tags containing returned data are all changed to lower case.
    Here are what I expected for returning SOAP:
    <return xmlns:ns2="http://oracle817/IDemogprofilews.xsd" xsi:type="ns2:oracle817_ODemog">
    <OFipsCode xsi:type="xsd:string">51059</ OFipsCode >
    <TotalPopulation xsi:type="xsd:double">818584.0</ TotalPopulation >
    <PercentMinority xsi:type="xsd:double">22.5</ PercentMinority >
    <PersonsBelowPovertyLevel xsi:type="xsd:double">28210.0</ PersonsBelowPovertyLevel >
    <HouseholdsInArea xsi:type="xsd:double">292943.0</ HouseholdsInArea >
    <HousingUnitsBuiltBefore1950 xsi:type="xsd:double">5.2</ HousingUnitsBuiltBefore1950 >
    <White xsi:type="xsd:double">666349.0</ White >
    <HispanicOrigin xsi:type="xsd:double">50526.0</ HispanicOrigin >
    <AmericanIndian xsi:type="xsd:double">2318.0</ AmericanIndian >
    <HighSchoolDiploma xsi:type="xsd:double">91675.0</ HighSchoolDiploma >
    <BachelorAndHigher xsi:type="xsd:double">264673.0</ BachelorAndHigher >
    <Adults18yearsAndOlder xsi:type="xsd:double">618989.0</ Adults18yearsAndOlder >
    <Seniors65yearsAndOlder xsi:type="xsd:double">52977.0</ Seniors65yearsAndOlder >
    Instead I get following back:
    <return xmlns:ns2="http://oracle817/IDemogprofilews.xsd" xsi:type="ns2:oracle817_ODemog">
    <totalpopulation xsi:type="xsd:double">818584.0</totalpopulation>
    <americanindian xsi:type="xsd:double">2318.0</americanindian>
    <housingunitsbuiltbefore1950 xsi:type="xsd:double">5.2</housingunitsbuiltbefore1950>
    <hispanicorigin xsi:type="xsd:double">50526.0</hispanicorigin>
    <highschooldiploma xsi:type="xsd:double">91675.0</highschooldiploma>
    <adults18yearsandolder xsi:type="xsd:double">618989.0</adults18yearsandolder>
    <seniors65yearsandolder xsi:type="xsd:double">52977.0</seniors65yearsandolder>
    <householdsinarea xsi:type="xsd:double">292943.0</householdsinarea>
    <personsbelowpovertylevel xsi:type="xsd:double">28210.0</personsbelowpovertylevel>
    <ofipscode xsi:type="xsd:string">51059</ofipscode>
    <bachelorandhigher xsi:type="xsd:double">264673.0</bachelorandhigher>
    <white xsi:type="xsd:double">666349.0</white>
    <percentminority xsi:type="xsd:double">22.5</percentminority>
    You can see the element tag names are in different order/sequence and cases.
    Thanks.
    Yi

  • How to retrieve error message(s) after failed web service call

    Hi!
    I tried to create an item using the web service ego_item_pub.process_item and it worked ok (version 12.1.1). Sending the same request again, I got an error which should be ok since the item id already exists. The thing is, that I only get an "E" as return status:
    <X_RETURN_STATUS>E</X_RETURN_STATUS>
    <X_MSG_COUNT>1</X_MSG_COUNT>
    As described in the integration repository, there should be a parameter called msg_data which should contain the message if there is exactly 1 message, but I cannot find it.
    So, I tried to get the message using fnd_message.get, but the response of my web service call is:
    AuthorizationFailure : User not authorized to execute service. (I use sysadmin/sysadmin as ws security user).
    I use the following grant details:
    All Users     Direct     GLOBAL     Revoke Action Enabled
    SYSADMIN SYSADMIN     Direct     USER
    What else can I do or how can I retrieve error messages for a failed web service call?
    Thanks a lot,
    Konrad

    Hi Konrad,
    As we've found out, search the Integration Repository for internal name ERROR_HANDLER and use that. Letting the general public know the answer for this one!
    Regards,
    Gareth
    http://garethroberts.blogspot.com

  • How to view the SOAP message in a web service call + Urgent

    Hi All,
    Iam trying to test a web service call(Iam using CXF). But I need to view SOAP message sent to web service or need to debug the web service call. Please help me on this regard with example.

    Yes. to find any tcp monitor, define a listen port number, task host and port number, changing your request to listen post, then you can monitor TCP/IP like
    HTTP/1.1 200 OK
    Set-Cookie: JSESSIONID=7A00BD65EF7516AD8947359A25C4D98B; Path=/ComponentName
    Content-Type: text/xml;charset=utf-8
    Date: Wed, 20 Oct 2004 15:45:03 GMT
    Server: Apache-Coyote/1.1
    Connection: close
    <?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:Body>
    <ns1:testObjectResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="urn:ComponentName">
    <testObjectReturn href="#id0"/>
    </ns1:testObjectResponse>
    <multiRef id="id0" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns2:MyObject" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns2="urn:ComponentName">
    <name xsi:type="xsd:string">Set Name</name>
    <value xsi:type="xsd:string">set Value</value>
    </multiRef>
    </soapenv:Body>
    </soapenv:Envelope>
    Lixin

  • How to start a batch job through a web service call

    I have a batch job created Data Services that I would like to be able to start through a web service call.
    I have exposed the batch job as a Web Service through the mangement console.
    The Integrators guide is not the clearest piece of documentation that I have ever read so I'm now having a little trouble.
    In C# I'm issuing the following statements:
                DataServices.Batch_JobsClient batchClient = new DataServices.Batch_JobsClient();
                batchClient.Open();
                DataServices.Testjob_Match_GlobalVariables myVar = new DataServices.Testjob_Match_GlobalVariables();
                myVar.ptd_FilePath = "D:
    Jobs
    Test";
                batchClient.Testjob_Match(myVar);
    That all executes without error -- but the job is not started. Obviously I'm missing a step here but I can not figure out what is needed to acutally start the job execution from the Integrators Guide.
    Any help would be appricated.

    first test invoking the batch job webservice using SoapUI
    does your client application logs the SOAP message that is sent to DS WebServer ?
    Check the %LINK_DIR%\lg\webservices.log if there is any errors logged in it ?

  • How can prevent http chunks receiving in a web service response?

    Hi guys,
    I'm developing a WS client mobile application, which consumes a Web Service (java based).
    Usually it works fine, but sometimes in the clinet I get: java.rmi.MarshalException: Unexpected Exception : unexpected end of stream
    This error occur when some big data has to be received from the server.
    I've done some research on this problem and find that this is caused because of sending of th response via HTTP chunks. Somehow the server and client sides does not
    communicates as expected.
    I have no access to the Web service implementation.
    Is there a workaround to solve this problem on the client side?
    Can I force WS client to not receive the response in http chunks?
    Thanks

    I managed to fix it by using the well known pattern:
    Web Service on the server(1) <--> Web Application(2) <--> Mobile Client(3).
    For communication between (1) and (2) was by using WS, and between (2) and (3) was made by plain http connection. Now the application is portable and don't have any limitations.
    radarada, thanks for the advice. It may work, may be I can try it when I have some time.
    Vladdy

  • How to see "console output" from the java web start ?

    Hi all.
    I wish to see logging infomation from the client side when using java web start technologie (java1.6 version).
    Please help.
    Thak's

    Use the "Advanced" tab of the Java Control Panel to turn on "tracing" and/or the Java Console.
    see:
    http://java.sun.com/j2se/1.5.0/docs/guide/javaws/developersguide/troubleshooting.03.06.html
    /Andy

  • Late response from a sap web service or timeout

    Hi,
    I have developed a function module an exposed it as web service. The consumer developed by the partner is a java client. Every request for the ws lasts 18 seconds. The response time is unacceptable. I have developed a .net client and called the ws. the first call lasts nearly as long as the java client but the repsonse time for successive calls is very short.
    How can I get the responses faster with the java client?
    thanks,
    - ferudun

    Paula,
    I suppose you're using CFINVOKE (http://www.activsoftware.com/code_samples/code.cfm/CodeID/44/ColdFusion/Invoking_SOAP_Web_Services_with_ColdFusion_MX_CFINVOKE_Tag) or are you using a third party tool like CFX_SOAP (http://www.activsoftware.com/products/productdetail.cfm/id/1015)?
    Are you working with WebAS 6.4 or 6.2?
    It works with web services created with WebAS 6.4, but you should generate proxy classes. Check Thomas' weblog (second part of it)->https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1012. [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken]
    The WSDL generated by this method is more standard than the one generated when you just Remote enable an FM and look at the webservice browser.
    Th core of CF MX is Java and that engine is rather strict in standards.
    Eddy

  • FLEX- how to serialize date type to null in web service call

    Does anyone know how to get actionscript to render a null date value '000:00:00T00:00:00' into a SOAP xml structure? I am calling a commercial web service that exposes data structures. I use one of these data structures as a parameter to a method call in the web service. The data structure has about 12 date fields and I need most of them to be null in the resulting database. The WSDL/SOAP force me to populate these fields with a date type. I can't figure out how to populate a date variable with a NULL value. The closest value I can get is '1899-11-30T00:00:00Z'. Below is the code I am using:
    var dateStr:String = "0000-00-00T00:00:00+";
    var emptyDate:Date = DateUtil.parseW3CDTF(dateStr);
    newReqData.DateTimeInit = emptyDate;
    When calling this same web service with a .Net client, it automatically puts in the null date value of '000:00:00T00:00:00' into the xml for me, if I don't populate the date field in the data structure.
    Any help would be appreciated.

    Hi,
    Thanks frank.
    I already check this link before posting this so if you have any other link then kindly reply.
    Regards,
    Devang

  • Separate Response from an Adaptive Web Service Model

    Hi,
    A WebService returns me a list of Outbound and Inbound flights (all in one list). Now i want to separate the Inbound and the Outbound flights into two tables. One parameter is different, so its easy to define the separation.
    But how can i do that?
    Ideas
    a) Copy the whole response and delete the inbounds on one table and the outbounds on the other?
    b) splitting the Response (what ever that means)
    c) define filter on both table?
    Regards,
    Chris M

    Thank you
    Here the code to the description from Anagha,
    public void split( )  {
       int n = wdContext.nodeResponseIn().size();
       for (int i = n - 1; i >= 0; i--) {
            // Sorting the entries with the parameter "O" for Outbound
            if(wdContext.nodeAvt_In().getResponseInElementAt(i).getDirection().equals("O")) {
                         //Creating a new Element in the "Out" Node
             wdContext.createAndAddResponseOutElement();
                        //Move the "current" Node to the new created Node
             wdContext.nodeResponseOut().moveNext();
                        //Copy Elements from the "In" Node to the "Out" Node
             wdContext.currentResponseOutElement().setArr(
                                     wdContext.nodeRsponseIn().getResponseInElementAt(i).getArr());
            //Remove the "Out" Element from the "In" Node
            wdContext.nodeAvt_In().removeElementAt(i);

  • Populating a dropdown list box from from a RFC/web service call

    Hello All,
      So far all the samples that I have on dropdown listboxes pulls their values from the Simple Type Enumeration table. Howvever, If i will like to populate the dropdown listbox with returned values from an imported model, does anyone have any documentation on how this may be achieved ? Thank you.
    from
    Kwok Wei

    Hi
    If u want to populate the Values in DropDown from RFC call u can use the following code
    IWDAttributeInfo  ainfo = wdContext.node<<NodeName>>().getNodeInfo().getAttribute("<<Value Attrib that is bounfd to the Drop Down>>");
         ISimpleTypeModifiable st = aiinfo.getModifiableSimpleType();
         IModifiableSimpleValueSet vs = st.getSVServices().getModifiableSimpleValueSet();
         for(int i=0;i<wdContext.node<<Ur Table Parameter Name>>().size();i++)
              vs.put(Key,Value}
    The Above code is for Drop Down by Key
    For Drop Down By Index
    for(int i=0;i<wdContext.node<<Table Paramter>>().size();i++)
              IPrivateFinancingPlanView.I<<NodeElement>> prodElement = wdContext.create<<Node Element>>();
              prodElement.set<<Value Attribute Bound to drop Down>>(wdContext.node<<Table Paramter>>().get<<Table Paramter>>(i).getDescription());
              <<Parent Node Element>>.node<<Child Node>>().addElement(<<Child Node Element>>);
    Wishes
    Krishna kanth
    Message was edited by: krishna  kanth

  • Initiating BPM Process Instances from External Web Service Call

    I'm attempting to update the HelloWorld example so that I can create an instance of the process from an External Web Services Call rather than via the Workspace. Our current SOA Architecture is configured so that all BPM instances are managed through a .NET SmartClient via the Service Bus and the use of PAPI W/S and so I'm wishing to recreate this capability in the new BPM.
    I understand the replacement for PAPI W/S is Human Workflow so I've therefore updated and republished the HelloWorld Example with an Exposed 'TaskService' Service for the Human Task within the BPM Process.
    I've then attempted to reference the TaskService through our existing BPM, and have been able to import a number of generic WSDL's as follows:
    Task Service
    http://vmaquatestapp2:7001/integration/services/TaskService/TaskServicePort?WSDL
    Task Metadata Service
    http://vmaquatestapp2:7001/integration/services/TaskMetadataService/TaskMetadataServicePort?WSDL
    Task Query Service
    http://vmaquatestapp2:7001/integration/services/TaskQueryService/TaskQueryService?WSDL
    When I examine the available operations for these generic services, there are quite a lot, each of which have a fairly complex schema. I believe I should be using the TaskService: InitiateTask Operation to create an instance of my BPM Process but my questions are:
    - Is the above the correct method of interacting with BPM Instances from an external system such as the Service Bus?
    - Does anyone have any examples of a basic XML payload that would initiate a process instance?

    I created an process with a message start event and can call it from an external web service call. I can also pass input arguments and map those to process data objects. However I can not find how to return data as response to the external web service call as e.g. the process instance id.
    Is it possible to this?
    Gr,
    Gert Jan Kersten

  • Web Service call - XI - SAP  and  SAP - XI  - Web Service response ???

    Hi ALL,
    Need some  guidance on the following Scenario :
    A Legacy system  would  transfer some data to SAP thoruhg a Web Service call and  would expect a response from SAP by way of a response to the same Web service call
    A synchronous Interface , inbound to sap via a Web service call and back  to the legacy system through the response to the same Web Service .
    Need to provide WSDL to the Legacy system
    Any help on how to do the above mentioned will be apreciated
    thanks in advance

    SD,
    Check this weblog for step by step procedure:
    /people/siva.maranani/blog/2005/09/03/invoke-webservices-using-sapxi
    Here instead of deploying in XI you will deploy your webservice in the legacy system.
    If you want to test this webservice then check this weblog:
    /people/siva.maranani/blog/2005/09/03/invoke-webservices-using-sapxi
    ---Satish

  • 2013 Exchange, Can't connect to Exchange Management Shell. It cannot determine the content type of the HTTP response from the destination computer.

    The following error occurs.
             Welcome to the Exchange Management Shell!
    Full list of cmdlets: Get-Command
    Only Exchange cmdlets: Get-ExCommand
    Cmdlets that match a specific string: Help *<string>*
    Get general help: Help
    Get help for a cmdlet: Help <cmdlet name> or <cmdlet name> -?
    Show quick reference guide: QuickRef
    Exchange team blog: Get-ExBlog
    Show full output for a command: <command> | Format-List
    Tip of the day #0:
    Did you know that the Identity parameter is a "positional parameter"? That means you can use:
     Get-Mailbox "user" instead of: Get-Mailbox -Identity "user"
    It's a neat usability shortcut!
    VERBOSE: Connecting to mail1.dorothy.local.
    New-PSSession : [mail1.dorothy.local] Connecting to remote server mail1.dorothy.local failed with the following error
    message : The WinRM client cannot process the request. It cannot determine the content type of the HTTP response from
    the destination computer. The content type is absent or invalid. For more information, see the
    about_Remote_Troubleshooting Help topic.
    At line:1 char:1
    + New-PSSession -ConnectionURI "$connectionUri" -ConfigurationName Microsoft.Excha ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [New-PSSession], PSRemotin
       gTransportException
        + FullyQualifiedErrorId : -2144108297,PSSessionOpenFailed
    Exception calling "GetComputerSite" with "0" argument(s): "The Specified directory object cannot be found."
    At C:\Program Files\Microsoft\Exchange Server\V15\bin\ConnectFunctions.ps1:164 char:2
    +     $localSite=[System.DirectoryServices.ActiveDirectory.ActiveDirectorySite]::GetC ...
    +    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
        + FullyQualifiedErrorId : ActiveDirectoryObjectNotFoundException
    Failed to connect to an Exchange server in the current site.
    Enter the server FQDN where you want to connect.: mail1.dorothy.local
    VERBOSE: Connecting to mail1.dorothy.local.
    New-PSSession : [mail1.dorothy.local] Connecting to remote server mail1.dorothy.local failed with the following error
    message : The WinRM client cannot process the request. It cannot determine the content type of the HTTP response from
    the destination computer. The content type is absent or invalid. For more information, see the
    about_Remote_Troubleshooting Help topic.
    At line:1 char:1
    + New-PSSession -ConnectionURI "$connectionUri" -ConfigurationName Microsoft.Excha ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [New-PSSession], PSRemotin
       gTransportException
        + FullyQualifiedErrorId : -2144108297,PSSessionOpenFailed
    Randy Cheek

    Good Morning,
    Log into the server with an account that has appropriate Exchange rights, not a local account.  
    Note: By default - Domain Admins don't have Exchange rights.
    Dame Luthas, ITILv3, MCSE Messaging 2013, MCSA, MCITP
    My Technical Blog: http://thelifestrategist.wordpress.com
    Discipline is the Difference between Goals and Accomplishments
    If this post is useful, please hit the green arrow on the left & if this is the answer hit "mark as answer"

  • How to access HttpRequest Object from Axis web service?

    Hi all,
    I have Axis web service named shoppingcartService,
    and i have ShoppingCartImpl as implemention class which
    implements passfamily() method
    When client access my web service, ShoppingCartImpl's passFamily method is executed.
    I have one more servlet under my axis web application which implements business logic.
    problem is that i want to call/invoke this servlet from passfamily method of ShopingCartImpl class.
    So how can i call/invoke servlet from passFamily method of ShoppingCartImpl class ?
    (All stuff is under Axis web application under Tomcat).

    hi
    the following link may helpful to you
    http://e-docs.bea.com/wls/docs81/webserv/anttasks.html#1111537
    Regards
    Prasanna Yalam

Maybe you are looking for

  • Solution Manager 4.0/When accessing services as ex. showing graphic in Proj

    Hi, We have just upgraded from Solution Manager 3.1 to 4.0. When accessing services as ex. showing graphic in Projects, tab graphics shows: " Service cannot be reached. What has happened? URL http://dnismpa.danisco.com:1080/sap/bc/solman/defaultUser/

  • Noted items in APP Run

    Hi Gurus, I m trying to process noted items in APP - tcode-F110, where i have entered 3 down payment requests Rs 5000/-, Rs 10000/- & Rs 8000/- out of which i have made the payment for Rs 5000 & Rs 10000/- in F-48 and now I am trying to make payment

  • ITunes update failed.

    Yesterday an iTunes update failed on my Windows PC. Now I can't start iTunes, a box comes up saying MSVC80dll is missing. Re-installing fails as well. Any ideas? Thank you.

  • Facing problems while creating OBIEE Repositories

    Hi All, Am a beginner for OBIEE,I am trying to create a repository but Its prompting with below Error Message,please advise. [nQSError : 16001] ODBC error state : 08004 code: 10018 message: [NQODBC][SQL_STATE: 08004][nQSError: 10018] Access for the r

  • Error could not determine video format

    Hi, I am trying to get my media working via plex but I get a message on my apple tv and my mac saying error could not determine video format. OI am really puzzled by the fact that one day ago all worked fine! I haven't (as far as I am aware) made any