function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
ashokashok 

XML RPC with Servlets/Beans

We need to design Beans/Servlets with the SalesForce API (XMLRPC). One of the conditions is outbound and inbound ports to open with the firewall,  Has anybody done this.

Our Archtecture:

[Browser] --> [App Server] (JSP, Bean(SFAPI), Servlet(SFAPI))] -> SalesForce.com

What are the firewall rules that we need to setup.

alal

The SFORCE API works over http (port 80) and https (port 443)

You will likely want secure communications at all times, so you do not have to

deal with any other ports. Open 80 or 443 in both directions and you are good to go.

The port numbers are where the XML-RPC/SOAP listeners are located.

The xml structure of the message is not related to the ports used, and therefore the bean implementation is also not related.

You will likely find you will have a better architecture if you try to implement some features first, to see how it works. Once you do this, you can better see how to divide up the parts of the system.

Its not obvious, and you will find that getting started is a real pant-load.

Beans are good (value beans) because if they are properly created, there are existing bean serializers in the various Java libraries available. This means that value beans with native XML/SOAP data types (String, Long, Integer, etc.) can be coerced into the XML structures that SForce would like with very little work to the BeanSerializer class.

If you are thinking about EJB's you may find that they give you little value add without a lot of additional SForce API 'scaffolding' code to wrap everything in.

Just my opinion though.

 

Al G

AlterPoint

ashokashok

How does one connect to port 80 and port 443 if all our outbound traffic uses a proxy server to login/password.

We would add the Salesforce (XMLRPC) libraries on our servlets.

 

Thanks