You need to sign in to do that
Don't have an account?
Ad_Infosys
Outbound message
HI ALL
We came across an error and thought to seek help from you.
Well we are sending an outbound message to external Tomcat server. There we want to invoke another servlet class. We have supplied the URl for the server in Service endpoint. But following error comes to the monitor of OM.I am also getting this error message in the 'Outbound Messaging Delivery Status'
org.xml.sax.SAXParseException: Content is not allowed in prolog
Well we are sending an outbound message to external Tomcat server. There we want to invoke another servlet class. We have supplied the URl for the server in Service endpoint. But following error comes to the monitor of OM.I am also getting this error message in the 'Outbound Messaging Delivery Status'
org.xml.sax.SAXParseException: Content is not allowed in prolog
Kindly help us on this. If you could detail down the steps to invoke any class on external server. This class has to pick the Id field sent in OM
I am using following servlet. I am sending the ID field thru the OM. This is the oonly code that I have on the server.
public void service(ServletRequest request,ServletResponse response)throws ServletException,IOException{
response.setContentType("text/html");
String Id=request.getParameter("Id");
PrintWriter out = response.getWriter();
out.print("<HTML><HEAD><TITLE>Testing Servlets</TITLE></HEAD><BODY><H1>Hello"+Id+"</H1></BODY></HTML>");
out.close();
}
I am sending URL for this servlet. Do we need to place the xml generated for the OM in the server. Do we need to set up some interface etc.
Thanks Simon,
Kindly tell me, do we need to place the WSDL for OM on our server?
How can we read ID parameter sent in the message at the server. I am doing this in JAva code so couldnt relate to the .Net code given in the guide.
We are sending the acknowledgment response back to SFDC as suggested in the doc. Under the Testing your service, we getting the result as
notificationsResponse
Ack(boolean): true
public boolean notifications(java.lang.String organizationId, java.lang.String actionId, java.lang.String sessionId, java.lang.String enterpriseUrl, java.lang.String partnerUrl, com.sforce.soap._2005._09.outbound.Client_Account_Information__cNotification[] notification) throws java.rmi.RemoteException {
Client_Account_Information__cNotification[] a= notification;
for (int i = 0; i < a.length; i++)
{
System.out.println("Notification " + (i + 1));
Client_Account_Information__cNotification notifications = a[i];
//Pull the account data out
com.sforce.soap.enterprise.sobject.Client_Account_Information__c a1 =(com.sforce.soap.enterprise.sobject.Client_Account_Information__c)notifications.getSObject();
//We will just echo some values to the console
System.out.println("\tAccount number: " + a1.getId());
}
return true;
}
HI Simon,
I made adequate changes
Now I am facing the following error.