Announcement Announcement Module
Collapse
No announcement yet.
Anybody successfully deployed echo app in WLS 8.1??? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Anybody successfully deployed echo app in WLS 8.1???

    Hi,

    Did any one had a luck in deploying echo war in WLS 8.1?

    If yes, can you please send me the war file?

    Thanks,

    Mani

  • #2
    Here is my code, It works well when I call it outside WLS container. But fails when I use wls 8.1. I use jwsdp 1.1.

    public void echo() throws Exception {
    System.out.println("**Echo****");
    Source requestSource = new ResourceSource(request);
    StringResult result = new StringResult();
    SaajSoapMessageFactory factory = new SaajSoapMessageFactory(new com.sun.xml.messaging.saaj.soap.MessageFactoryImpl ());
    factory.setSoapVersion(SoapVersion.SOAP_11);
    WebServiceTemplate webServiceTemplate = new WebServiceTemplate(factory);
    webServiceTemplate.setDefaultUri(this.getDefaultUr i());
    webServiceTemplate.setMessageSender(this.getMessag eSender());
    //WebServiceTemplate webServiceTemplate = getWebServiceTemplate();
    //webServiceTemplate.setMessageFactory(new SaajSoapMessageFactory(new MessageFactoryImpl()));
    webServiceTemplate.sendAndReceive(requestSource, result);
    System.out.println(result);
    }

    public static void main(String[] args) throws Exception {
    ApplicationContext applicationContext =
    new ClassPathXmlApplicationContext("applicationContext .xml", EchoClient.class);
    EchoClient echoClient = (EchoClient) applicationContext.getBean("echoClient");
    echoClient.echo();
    }

    Comment


    • #3
      It works in wls 9.2/tiger without any problems.


      --mani

      Comment


      • #4
        Made to work in 8.1!!

        Here are the folowing tips for guys who want to try in wls 8.1

        1. Don't overide weblogic jar files

        2. use saaj 1.1 by downloading jwsdp 1.1. no impl jars for saaj, just api jars.

        3. Use SAAJ API to send/recieve messages and not WebServiceTemplate, because it gives errors text/html errors.


        Thanks,

        Mani
        (Krishnappan)

        Comment


        • #5
          Originally posted by mani View Post
          3. Use SAAJ API to send/recieve messages and not WebServiceTemplate, because it gives errors text/html errors.
          Hmm that sounds like a bug we should fix. Could you please create a JIRA issue?

          Thanks,

          Comment

          Working...
          X