SOAPProcessor Error
rohitvadera25 Dec 8, 2010 9:57 AMHi,
I am new in JBossESB world and trying to ececute one simple example follwoing different tutorials over net... got to run the SystemPrintln action but unable to publish the WS over ESB... i am hereby pasting my esb config file , the log on server and the client code i am using to invoke the service over esb.
I have successfully deployed the WS as i can see its wsdl and can see the response through soapui...
If possible please let me know what I am missing...
The log from server
08:47:09,438 INFO [STDOUT] In the ESB: 08:47:09,438 INFO [STDOUT] [<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:test="http://test.com/"> <soapenv:Header/> <soapenv:Body> <test:sayHello> <!--Optional:--> <arg0>rohit</arg0> </test:sayHello> </soapenv:Body></soapenv:Envelope>]. 08:47:26,234 INFO [ServiceInvoker] Unresponsive EPR: InVMEpr [ PortReference < <wsa:Address invm://4d7943617465676f72792424242424242424242424244d794874747050726f787953657276696365/false?false#10000/>, <wsa:ReferenceProperties jbossesb:passByValue : false/> > ] for message: header: [ ] 08:47:26,265 INFO [ServiceInvoker] Badly formed EPR [EPR: PortReference < <wsa:Address http://localhost:7777/> >] for Service [MyCategory:MyHttpProxyService] and Message [header: [ ]].Courier for EPR not supported: ESB-unaware EPR used! 08:47:26,265 INFO [ServiceInvoker] Delivering message [header: [ ]] to DLQ.   The jboss-esb.xml                                                      <?     ?> <     "5"     "http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml/jbossesb-1.2.0.xsd"     >     >     >     />     >     >     >     "MyDescription"     >       >     />     >       >       >     />     >       >     />     >       >       >     > </     >   The Client code   
package com.test;
import org.jboss.remoting.Client;
import org.jboss.remoting.InvokerLocator;
public class ESBClient {
 
 public static void main(String aregs[])
 {
  ESBClient esb = new ESBClient();
  try {
   String message = "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:test=\"http://test.com/\">   <soapenv:Header/>   <soapenv:Body>      <test:sayHello>         <!--Optional:-->         <arg0>rohit</arg0>      </test:sayHello>   </soapenv:Body></soapenv:Envelope>";
    esb.sendMessageToJBRListener("http", 7777, message);
  } catch (Throwable e) {
   // TODO Auto-generated catch block
   e.printStackTrace();
  }
 }
 private void sendMessageToJBRListener(String protocol, int port, String message) throws Throwable 
 {   
  String locatorURI = protocol + "://localhost:" + port;   
  InvokerLocator locator = new InvokerLocator(locatorURI);   
  
  System.out.println("Calling JBoss Remoting Listener using locator URI: " + locatorURI);    
  Client remotingClient = null;   
  try 
  {      
   remotingClient = new Client(locator);       
   remotingClient.connect();        
   // Deliver the message to the listener...       
   Object response = remotingClient.invoke(message);       
   System.out.println("JBR Class: " + response.getClass().getName());      
   System.out.println("Response from JBoss Remoting Listener '" + locatorURI + "' was '" + response + "'.");   
  } 
  catch(Exception ex)
  {
   ex.printStackTrace();
  }
  finally {       
   if(remotingClient != null) {           
    remotingClient.disconnect();       
    }   
   }
  }
}
- 
            
                            
            ESBClient.java.zip 856 bytes
- 
            
                            
            jboss-esb.xml 1.3 KB
 
    