SOAP wrapper around existing Jersey RESTful service -


i created simple web service jersey reads in xml file , creates objects based on xml. have single method consumes post xml. parse xml , use values create business objects.

recently discovered our clients support soap.

is there way write wrapper of soap on top of this? (i saw mule mentioned have never used it)

or easier start scratch , rewrite in soap?

i'm new soap , looks more complicated experience jersey. thanks!

the simplest way expose single method takes xml string, parses , returns xml document (again string).

public class receiver  {    public string postxml(string inputdocument) {     // parse , process xml xml      ...     return outputdocument.tostring();    } ...  } 

you should able use method in jersey service, if necessary delegation separate class. creating soap service around facade object should easy soap: http://axis.apache.org/axis/java/index.html

the technically superior solution decompose xml object-oriented data transfer object or implement soap service e.g. document/literal messaging. former may add cost without value, depending on situation. latter may not supported partners. discussion of soap messaging styles see:

http://msdn.microsoft.com/en-us/library/ms996466.aspx#rpc_literal_topic3


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -