How to remove actual XML content from Weather Web Service Client's standard output?

Hi,
I tried web service example examples.webservices.rpc.weatherEJB.Weather with WLS6.1,
it works fine, but on client side, ( either Client or DClient ), I always see
the actual XML content being sent and received from standard output, like
"------------- RECEIVING XML -------------", and I can't find any related System.out.println
statement in client source code, Please explain how to remove it, may there is
a configurable parameter for this? any help will be highly appreciated.
Thanks
Naichen

Hi Naichen,
To suppress showing the actual SOAP request and response going to standard out,
change the following line in the Client.java:
h.put("weblogic.soap.verbose", "true" );
to read:
h.put("weblogic.soap.verbose", "false" );
Regards,
Mike Wooten
"Naichen Liu" <[email protected]> wrote:
>
Hi,
I tried web service example examples.webservices.rpc.weatherEJB.Weather
with WLS6.1,
it works fine, but on client side, ( either Client or DClient ), I always
see
the actual XML content being sent and received from standard output,
like
"------------- RECEIVING XML -------------", and I can't find any related
System.out.println
statement in client source code, Please explain how to remove it, may
there is
a configurable parameter for this? any help will be highly appreciated.
Thanks
Naichen

Similar Messages

  • Get xml data from a web service into Forms?

    Hello folks! I am reading active directory info from a web service into forms via imported java classes. I can read from functions that return strings just fine, but I have to get the output from getGroupUsers which returns an XmlDataDocument. How do I read this in and parse it in Forms?
    I will be grateful if y'all could point me to an example.
    Thank you,
    Gary
    P.S. Here is a snippet of how I get the full name by passing an ID:
    DECLARE
    jo ora_java.jobject;
    rv varchar2(100);
    BEGIN
    jo := ADSoapClient.new;
    rv := ADSoapClient.getUserName(jo, 'user_ID');
    :block3.fullname := rv;

    Hello,
    Since you are already dealing with server-side JAVA, I would suggest you create a method that would do the parsing server-side and what your PL/SQL will be dealing with is just the return string.
    Here is a method I use to read an XML file (actually, it is an Oracle Reports file converted to XML) and from the string version, I will do search, replace and other things.
    So, from getGroupUsers which returns an XmlDataDocument, you can adapt this method to get your data server-side and let the form module read the output data.
    <blockquote>
    private String processFileXml(String fileName, int iFile) throws ParserConfigurationException, SAXException,
    IOException, XPathExpressionException{
    try{                
    DocumentBuilderFactory domFactory = DocumentBuilderFactory.newInstance();
    domFactory.setNamespaceAware(true);
    InputStream inputStream = new FileInputStream(new File(fileName));
    DocumentBuilder builder = domFactory.newDocumentBuilder();
    Document doc = builder.parse(inputStream);
    StringWriter stw = new StringWriter();
    Transformer serializer = TransformerFactory.newInstance().newTransformer();
    serializer.transform(new DOMSource(doc), new StreamResult(stw));
    return stw.toString();
    catch (Exception e){
    System.err.println(e);
    System.exit(0);
    return "OK";
    </blockquote>
    Let me know if this is of nay help.
    Thanks.

  • How to remove the item content from my alert Template (alerttemplates.xml) .

    I have enabled alerts to be send from my enterprise wiki & announcement list. Currently the alert email, will display the item content inside the email (the wiki page content or the announcement list content), which i do not want to have. So is
    there a way to remove the item content , so my alert message contains only the following info such as:-
    Our Group Intranet
    TestItem has been added
    Modify my alert settings
    |
    View TestItem
    |
    View News & Announcements
    |
    Mobile View

    Hi johnjohn123,
    According to your description, my understanding is that you want to change the notification message in the alert template.
    You can edit the ImmediateNotificationExcludedFields and DigestNotificationExcludedFields tags to achieve it. After editing the xml, remember apply the template
    to your site using the command below.
    execute command stsadm -o updatealerttemplates -filename <your modified xml file> -url <your site>
    Also, It is not suggested to edit the alert template directly, I suggest you back up the template firstly before customization.
    More information:
    How to change alert email notification message:
    http://dirkvandenberghe.com/2008/01/08/how-to-change-the-alert-email-notification-message-for-announcements.html
    AlertTemplates schema:
    http://msdn.microsoft.com/en-us/library/office/bb802961(v=office.15).aspx
    Best regards,
    Zhengyu Guo
    Zhengyu Guo
    TechNet Community Support

  • How to remove an XML file from Data Template in Data Definition Screen

    Hi,
    Issue: I have uploaded the file in Data definition in Data Template.
    How to remove it.
    Also what does each file type mean?
    XML Schema
    Data Template
    Preview file
    Bursting control File
    I have an XML file and XSL file. I need to have an output in XML.
    So I installed my XML file in data template in data definition.
    And XSL file in Templates.
    Am I correct?
    11.0.10.2
    Regards,
    Avijit

    Issue: I have uploaded the file in Data definition in Data Template.
    How to remove it.You cannot remove it but you can end-date it.
    Also what does each file type mean?
    XML Schema
    Data Template
    Preview file
    Bursting control FileThis is explained in "Oracle XML Publisher Administration and Developer's Guide Release 12" manual -- http://docs.oracle.com/cd/B34956_01/current/acrobat/120xdoig.pdf
    I have an XML file and XSL file. I need to have an output in XML.
    So I installed my XML file in data template in data definition.
    And XSL file in Templates.
    Am I correct?Correct -- See Chapter 2 "Creating the Template" and Chapter 5 "Data Templates and Chapter" in the same doc referenced above for details.
    Thanks,
    Hussein

  • Master Data Service: how to remove the dirty data from master data service from a table using store procedure?

    hello, we need to remove the dirty data from MDS, but we found we can only do this from MDS web, and we need to do this by store procedure to make this process automatically. is there any easy method to remove the data from MDS automatically? thank.
    Warren

    Hi Warren,
    Assuming the dirty data is easily identifiable, all you need to do is use the staging process with import type of 5 (de-activate - i.e., soft delete) or import type of 6 (hard delete).
    Could give more details if I knew the version of MDS you are running (SQL 2008R2 or SQL 2012).
    Kind regards,
    M

  • Reading XML file from java web service

    Hi
    I am developing web service using Netbeans and the application server is glassfish.
    but I am facing a problem
    I have folder called "config" which will include the xml files. What I need to do setting path into that folder
    but it will read from another location when I am deploying it
    How to set our own path ?
    Error
    DPL5306:Servlet Web Service Endpoint [NewWebService] listening at address [http://kapila.epic.lk:8080/WebApplication2/NewWebServiceService]
    deployed with moduleid = WebApplication2
    java.io.FileNotFoundException: /root/MyWorks/glassfish-v2/domains/domain1/config/OSconfig/MConfig.xml (No such file or directory)
    at java.io.FileInputStream.open(Native Method)
    My "conifg" folder, i have put in to working directory but it will read from "/root/MyWorks/glassfish-v2/domains/domain1/config/OSconfig/MConfig.xm"
    below method is used for getting its contain value
    public String getMainCofig() {
                String v ="";
            try{
              DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory
                        .newInstance();
              DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();
              Document doc = docBuilder.parse(new File("OSconfig/MConfig.xml"));
              doc.getDocumentElement().normalize();
              NodeList listOfSPRMs = doc.getElementsByTagName("MainConfig");
              Node firstSPRMNode = listOfSPRMs.item(0);
              if (firstSPRMNode.getNodeType() == Node.ELEMENT_NODE) {
                   Element firstSPRAMElement = (Element) firstSPRMNode;
                   // Getting platform
                   NodeList server_port = firstSPRAMElement
                             .getElementsByTagName("RunningPlatform");
                   Element server_port_el = (Element) server_port.item(0);
                   NodeList server_port_List = server_port_el.getChildNodes();
                    v= ((Node) server_port_List.item(0))
                             .getNodeValue().trim();
            }catch (Exception e){
            e.printStackTrace();
                    return v;
    Regards
       

    I didn't quite get what the problem is but if the the desired file is in custom directory why don't you just use absolute path to reference it?
    Like: "/home/my/OSconfig/MConfig.xml"

  • XML data from a Web Service sometimes missing fields I need, any ideas on a trap?

    I get reports from our ERP via a web service to SSRS.  Just got asked to make a tweak in a report and find that the WebService only sends data that is needed for this transaction.  My issue is our entire system is based around EACH item we make. 
    New Trading Partner got Case Price.  We put two of our items together in a box for them is all that happened.
    Need to identify package column that had "ea" hard coded. 
    When I get a cs item there are more elements that identify conversion factor UOM etc.  They are only sent down for CASE items.  How do I trap for a column not being there 99.98555% of the time?
    _conv =  conversion factor.  I only receive it with a 2,4,6 in it whe4n the item is not an each. 
     =iif(Len(Fields!tcibd003_conv.Value) >0  , Fields!inh4470_qshp.Value / Fields!tcibd003_conv.Value , Fields!inh4470_qshp.Value  )
    How do I trap for this?  I tried Fields!tcibd003_conv.IsMissing but that didn't seem to work as expected.
    TIA

    Hello,
    Sorry, I cannot get your requirment and report design structure currently. Can you post the following information to us ? It is benefite us for further analysis.
    1. The fields in your dataset. You can post the dataset with sample data if it is convenient.
    2. The Report design structure: Table or Matrix and Group inforamation
    3. It seems that you want to filter the report data based on a expression, please post more details about the filter logic and expected result.
    Regards,
    Fanny Liu
    Fanny Liu
    TechNet Community Support

  • How to create a process instance from PAPI Web Services

    Hi,
    I use Jdev 11g to create ADF(PAPI web service) to create new instances of BPM processes running in BPM Standalone (10g). However, I do not know how to write the code.
    Could any people paste the sample code for me?
    Thank you very much!
    papiWebServicePort.processCreateInstance(String, String, Holder<ArgumentBean>, Holder<instanceInfoBean>)

    import java.net.MalformedURLException;
    import java.rmi.RemoteException;
    import javax.xml.rpc.ServiceException;
    import com.bea.albpm.PapiWebService.OperationException;
    public class CreateInstances {
         public static void main(String[] args) throws MalformedURLException, ServiceException, OperationException, RemoteException {
              java.net.URL url = null;
              org.apache.axis.EngineConfiguration config = null;
              com.bea.albpm.PapiWebService.PapiWebServicePortBindingStub binding = null;
              com.bea.albpm.PapiWebService.InstanceInfoBean value = null;
              //String processId = "/Proceso1";
              //String processId = "/ActividadesExternas";
              String processId = "/PAPIWS";
              String argumentsSetName = "BeginIn";
              //Binding
              //url = new java.net.URL("http", "localhost", 8686, "/papiws/PapiWebServiceEndpoint");
              url = new java.net.URL("http", "localhost", 8585, "/papiws/PapiWebServiceEndpoint");
              config = new org.apache.axis.configuration.FileProvider("client_deploy.wsdd");
    binding = (com.bea.albpm.PapiWebService.PapiWebServicePortBindingStub) new com.bea.albpm.PapiWebService.PapiWebService_ServiceLocator(config).getPapiWebServicePort(url);
    binding.setTimeout(60000);
    //Arguments
    com.bea.albpm.PapiWebService.ArgumentsBeanArgumentsEntry argumentsBeanArgumentsEntry[] = new com.bea.albpm.PapiWebService.ArgumentsBeanArgumentsEntry[1];
    argumentsBeanArgumentsEntry[0] = new com.bea.albpm.PapiWebService.ArgumentsBeanArgumentsEntry();
    argumentsBeanArgumentsEntry[0].setKey("entradaArg");
    argumentsBeanArgumentsEntry[0].setValue("Instancia creada de forma externa mediante PAPI-WS 2.0");
    com.bea.albpm.PapiWebService.ArgumentsBean argumentsBean = new com.bea.albpm.PapiWebService.ArgumentsBean(argumentsBeanArgumentsEntry);
    com.bea.albpm.PapiWebService.holders.ArgumentsBeanHolder argumentsBeanHolder = new com.bea.albpm.PapiWebService.holders.ArgumentsBeanHolder(argumentsBean);
    //Create instance
    value = binding.processCreateInstance(processId, argumentsSetName, argumentsBeanHolder);
    System.out.println("Created instance -> InstanceInfo.id = " + value.getId());
         }

  • How to remove "Table of Content" from Book?

    I constructed the book in Workspace, added the members (reports) I want to be in the book, and exported all into a book. When I opened it in .pdf format, it naturally came with a Table of Content.
    Is there a way to remove it?
    Thanks

    1. Open the book in Editor mode.
    2. On the Far right hand side, where it states Add Documement, change to Book Setup.
    3. On the Table of Contents section, change Include in Printed Output from Yes to a No.

  • How to remove the LDAP contents from the command line?

    I delete the content of the db directory (rm /opt/ldap/<instance>/db ) and I starting the instance and populate one ldif files finally I go to connect with the console and I can't see any entries.
    The Directory Server is installed in Solaris 8.

    You just hosed your directory server. Deleting the db directory deletes EVERYTHING: data, indices, configuration info. Maybe a bak2db will recover it for you. That is, if you did a db2bak prior to deleting everything.
    I'd remove everything under serverroot and reinstall the directory server.
    HTH,
    Roger S.

  • Handling result ciontaining xml nodes from  c# web service method call in flex

    I have read a article headed: Handling results as XML with
    the e4x result format
    Using this I have build a test application.But facing lot of
    problems.
    Here are the details of my code.I have used first example of
    using namespace.
    private namespace tempNamespace = "TEST1.WebServices";
    use namespace tempNamespace;
    I have specified result type as 'e4x' :
    <mx:WebService id="myTestService" showBusyCursor="true"
    wsdl="
    http://localhost/TEST/TestFlexWS.asmx?WSDL"
    useProxy="false">
    <mx:operation name="HelloWorldEx" resultFormat="e4x"
    result="Hello_Result_New(event);"
    fault="Hello_fault_New(event);">
    <mx:request>
    <strProductName>Test</strProductName>
    </mx:request>
    </mx:operation>
    </mx:WebService>
    In result handler:
    o/p of myTestService.HelloWorldEx.lastResult is:
    <HelloWorldExResponse xmlns:xsi="
    http://www.w3.org/2001/XMLSchema-instance"
    xmlns:xsd="
    http://www.w3.org/2001/XMLSchema"
    xmlns="TEST1.WebServices" xmlns:soap="
    http://schemas.xmlsoap.org/soap/envelope/">
    <HelloWorldExResult>&lt;PRODUCTCOLLECTION&gt;
    &lt;PRODUCT&gt;
    &lt;PRODUCTNAME&gt;Test Product
    121&lt;/PRODUCTNAME&gt;
    &lt;/PRODUCT&gt;&lt;/PRODUCTCOLLECTION&gt;</HelloWorldExResult>
    <TestResult></TestResult>
    </HelloWorldExResponse>
    When I display alert for :
    Alert.show(
    myTestService.HelloWorldEx.lastResult.HelloWorldExResult);
    It's showing me result as:
    <PRODUCTCOLLECTION>
    <PRODUCT>
    <PRODUCTNAME>NEW DAM</PRODUCTNAME>
    </PRODUCT>
    </PRODUCTCOLLECTION>
    But when I display alert for inner node it doesn't show me
    anything:
    Alert.show(
    myTestService.HelloWorldEx.lastResult.HelloWorldExResult.PRODUCTCOLLECTION.PRODUCT.PRODUC TNAME);
    Can anybody help me out?
    It will be gr8 help for me.

    I have read a article headed: Handling results as XML with
    the e4x result format
    Using this I have build a test application.But facing lot of
    problems.
    Here are the details of my code.I have used first example of
    using namespace.
    private namespace tempNamespace = "TEST1.WebServices";
    use namespace tempNamespace;
    I have specified result type as 'e4x' :
    <mx:WebService id="myTestService" showBusyCursor="true"
    wsdl="
    http://localhost/TEST/TestFlexWS.asmx?WSDL"
    useProxy="false">
    <mx:operation name="HelloWorldEx" resultFormat="e4x"
    result="Hello_Result_New(event);"
    fault="Hello_fault_New(event);">
    <mx:request>
    <strProductName>Test</strProductName>
    </mx:request>
    </mx:operation>
    </mx:WebService>
    In result handler:
    o/p of myTestService.HelloWorldEx.lastResult is:
    <HelloWorldExResponse xmlns:xsi="
    http://www.w3.org/2001/XMLSchema-instance"
    xmlns:xsd="
    http://www.w3.org/2001/XMLSchema"
    xmlns="TEST1.WebServices" xmlns:soap="
    http://schemas.xmlsoap.org/soap/envelope/">
    <HelloWorldExResult>&lt;PRODUCTCOLLECTION&gt;
    &lt;PRODUCT&gt;
    &lt;PRODUCTNAME&gt;Test Product
    121&lt;/PRODUCTNAME&gt;
    &lt;/PRODUCT&gt;&lt;/PRODUCTCOLLECTION&gt;</HelloWorldExResult>
    <TestResult></TestResult>
    </HelloWorldExResponse>
    When I display alert for :
    Alert.show(
    myTestService.HelloWorldEx.lastResult.HelloWorldExResult);
    It's showing me result as:
    <PRODUCTCOLLECTION>
    <PRODUCT>
    <PRODUCTNAME>NEW DAM</PRODUCTNAME>
    </PRODUCT>
    </PRODUCTCOLLECTION>
    But when I display alert for inner node it doesn't show me
    anything:
    Alert.show(
    myTestService.HelloWorldEx.lastResult.HelloWorldExResult.PRODUCTCOLLECTION.PRODUCT.PRODUC TNAME);
    Can anybody help me out?
    It will be gr8 help for me.

  • How do I do basic authentication in a web services client

    At Linfield College we do network account management in real time via servlets running in GlassFish.  Since email accounts are hosted on Exchange, I need too be able to access Exchange to setup account, do email forwarding and also implement privacy in compliance with FERPA (a federal standard that affects to students).  The code to do all that is written in C# as an ASP.NET web service hosted in IIS.  I use Eclipse Kepler for Java EE development that includes the Web Tools Platform.  To create the client, a start by creating a Java Project and add a classfile. Then I highlight the classfile and  select new -> other -> web services.  I add the WSDL and under configuration I click client project and then finish.  That gives me a proxy stub that I can use to access all the published web methods, but what it doesn't give me is any way to implement authentication.  I want to implement basic authentication, what am I missing?
    Thanks,
    Rob Tanner
    Linfield College

    Does that mean that the documentation (http://docs.oracle.com/middleware/1212/wls/SCOVR/concepts.htm#SCOVR136) is wrong, or am I misunderstanding what it's talking about?
    Types of Authentication
    WebLogic Server users must be authenticated whenever they request access to a protected WebLogic resource. For this reason, each user is required to provide a credential (for example, a password) to WebLogic Server. The following types of authentication are supported by the WebLogic Authentication provider that is included in the WebLogic Server distribution:
    Username/Password Authentication
    Certificate Authentication
    Digest Authentication
    Perimeter Authentication

  • How to retrieve data from a web service

    Hi
    i am at very beginner level about web services.
    I am searching for a simple example of retrieving data from a web services, but cant find.
    How can i get xml data from a web service. i dont need to develop the web service it is already ready, i just need how could i fetch data from it.
    Can somebody point out or give an example?
    Thanks in advance

    Hi,
    just create a skeleton for the Web Service. In JDeveloper, create a new project and then use the "NEW" context menu option.
    Navigate to "Business Tier" --> Web Services and select "Web Service Proxy"
    In teh following, provide the WSDL reference to create the Java proxy. This gives you accss to the WS without having to parse the XML yourself
    Frank

  • How to extract the actual XML document from soap message?

    My problem is " how to extract the actual XML document from soap message? "
    i just want to extract the attachment i.e. (pure XML document without any soap header or envolope).
    i could be ver thank full if u could solve my problem.
    [email protected]

    Hi,
    This is some skeleton code for extracting an attachment from a SOAPMessage.
    import javax.activation.DataHandler.;
    import javax.xml.soap.*;
    import javax.xml.message.*;
    Iterator allAttachments = message.getAttachments();
    AttachmentPart ap1 = null;
    while(allAttachments.hasNext()){
    ap1 = (AttachmentPart)allAttachments.next();
    //Check that the attachment is correct one. By looking at its mime headers
    //Convert the attachment part into its DOM representation:
    if(ap1.getContentType() == "text/xml"){
    //Use the activation dataHandler class to extract the content, then create a StreamSource from
    //the content.
    DataHandler attachmentContent = ap1.getDataHandler();
    StreamSource attachmentStream = new StreamSource(attachmentContent.getInputStream());
    DOMResult domAttachment = getDOMResult(attachmentStream);
    domAttachment holds an xml representation of the attachment.
    Hope this helps.

  • How to create XML data source/ and load data from a web service to BI

    All,
    I m trying to find a 'how to' document (or any document) that shows how to create an XML data source to load data directly from a web service or from an XML file.
    I appreciate any help.

    Hi Mike,
    Two more for you:----
    /thread/111488 [original link is broken]
    http://help.sap.com/saphelp_nw70/helpdata/en/e6/1dd53bb90cbb1ae10000000a11402f/content.htm
    Regards,
    Suman

Maybe you are looking for