Author: jleroux
Date: Sat Feb 19 16:32:19 2011 New Revision: 1072378 URL: http://svn.apache.org/viewvc?rev=1072378&view=rev Log: * Replaces the old testRemoteSoap service now invalid with our own dog food: testSoapSimple from http://demo-trunk.ofbiz.apache.org:8080/webtools/control/SOAPService * Adds a bunch of external SOAP services, none of them work so far, not sure why, a good exercise for the future... I have tried to backport to R9.04 the testRemoteSoap change but it does not work there: 2011-02-19 17:26:02,500 (http-0.0.0.0-8443-1) [ Call.java:2469:ERROR] Exception: org.xml.sax.SAXException: Deserializing parameter 'map-Map': could not find deserializer for type {http://www.w3.org/2001/XMLSchema}anyType at org.apache.axis.message.RPCHandler.onStartChild(RPCHandler.java:277) at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035) at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165) at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141) at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236) at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384) at org.apache.axis.client.Call.invoke(Call.java:2467) at org.apache.axis.client.Call.invoke(Call.java:2366) at org.apache.axis.client.Call.invoke(Call.java:1812) at org.ofbiz.service.engine.SOAPClientEngine.serviceInvoker(SOAPClientEngine.java:137) Modified: ofbiz/trunk/framework/base/config/ofbiz-containers.xml ofbiz/trunk/framework/common/servicedef/services_test.xml Modified: ofbiz/trunk/framework/base/config/ofbiz-containers.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/config/ofbiz-containers.xml?rev=1072378&r1=1072377&r2=1072378&view=diff ============================================================================== --- ofbiz/trunk/framework/base/config/ofbiz-containers.xml (original) +++ ofbiz/trunk/framework/base/config/ofbiz-containers.xml Sat Feb 19 16:32:19 2011 @@ -38,14 +38,14 @@ under the License. <!-- load the naming (JNDI) server --> <container name="naming-container" class="org.ofbiz.base.container.NamingServiceContainer"> <property name="host" value="0.0.0.0"/> - <property name="port" value="1099"/> + <property name="port" value="41099"/> </container> <!-- RMI Service Dispatcher --> <container name="rmi-dispatcher" class="org.ofbiz.service.rmi.RmiServiceContainer"> <property name="bound-name" value="RMIDispatcher"/> <property name="bound-host" value="127.0.0.1"/> - <property name="bound-port" value="1099"/> + <property name="bound-port" value="41099"/> <property name="delegator-name" value="default"/> <property name="client-factory" value="org.ofbiz.service.rmi.socket.ssl.SSLClientSocketFactory"/> <property name="server-factory" value="org.ofbiz.service.rmi.socket.ssl.SSLServerSocketFactory"/> @@ -159,7 +159,7 @@ under the License. <property name="maxSpareThreads" value="50"/> <property name="maxThreads" value="200"/> <property name="minSpareThreads" value="4"/> - <property name="port" value="8009"/> + <property name="port" value="48009"/> <property name="tcpNoDelay" value="true"/> <property name="soTimeout" value="60000"/> <property name="tomcatAuthentication" value="true"/> @@ -194,7 +194,7 @@ under the License. <property name="maxThreads" value="100"/> <property name="minSpareThreads" value="4"/> <property name="noCompressionUserAgents" value=""/> - <property name="port" value="8080"/> + <property name="port" value="48080"/> <property name="restrictedUserAgents" value=""/> <property name="server" value=""/> <property name="socketBuffer" value="9000"/> @@ -232,7 +232,7 @@ under the License. <property name="maxThreads" value="100"/> <property name="minSpareThreads" value="4"/> <property name="noCompressionUserAgents" value=""/> - <property name="port" value="8443"/> + <property name="port" value="48443"/> <property name="restrictedUserAgents" value=""/> <property name="server" value=""/> <property name="socketBuffer" value="9000"/> Modified: ofbiz/trunk/framework/common/servicedef/services_test.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/common/servicedef/services_test.xml?rev=1072378&r1=1072377&r2=1072378&view=diff ============================================================================== --- ofbiz/trunk/framework/common/servicedef/services_test.xml (original) +++ ofbiz/trunk/framework/common/servicedef/services_test.xml Sat Feb 19 16:32:19 2011 @@ -101,14 +101,65 @@ under the License. <implements service="testScv"/> </service> - <service name="testRemoteSoap" engine="soap" export="true" - location="http://nagoya.apache.org:5049/axis/servlet/AxisServlet" invoke="echoString"> - <description>Test SOAP service; calls echoString service on Axis server</description> - <namespace>http://soapinterop.org/</namespace> - <attribute name="message" type="String" mode="IN"/> + <service name="testRemoteSoap" engine="soap" export="true" + location="http://demo-trunk.ofbiz.apache.org:8080/webtools/control/SOAPService" + invoke="testSoapSimple"> + <attribute name="defaultValue" type="Double" mode="IN" default-value="999.9999"/> + <attribute name="message" type="String" mode="IN" optional="true"/> + <attribute name="resp" type="String" mode="OUT"/> + </service> + + <!-- FIXME For now, not sure why, the 4 remote SOAP services below don't work --> + + <!-- the location = endpoint = SOAP action --> + <!-- invoke parameter is the name of the operation to invoke, for example LatLonListZipCode --> + <!-- invoke parameter is needed when there are several possible operations for the SOAP action --> + <!-- FIXME For now, not sure why, this remote SOAP service does not work --> + <service name="testRemoteSoap1" engine="soap" export="true" + location="http://www.weather.gov/forecasts/xml/SOAP_server/ndfdXMLserver.php" + invoke="LatLonListZipCode"> + <description>A service to invoke the NWS web service</description> + <namespace> + http://www.weather.gov/forecasts/xml/DWMLgen/wsdl/ndfdXML.wsdl#LatLonListZipCode + </namespace> + <attribute name="ZipCode" type="String" mode="IN"/> + <attribute name="invoke" type="String" mode="IN" /> <attribute name="result" type="String" mode="OUT"/> - </service> + </service> + + <!-- the location = endpoint = SOAP action --> + <!-- invoke parameter is the name of the operation to invoke, for example LatLonListCityNames --> + <!-- invoke parameter is needed when there are several possible operations for the SOAP action --> + <!-- FIXME For now, not sure why, this remote SOAP service does not work --> + <service name="testRemoteSoap2" engine="soap" export="true" + location="http://www.weather.gov/forecasts/xml/SOAP_server/ndfdXMLserver.php" + invoke="LatLonListCityNames"> + <description>A service to invoke the NWS web service</description> + <namespace> + http://www.weather.gov/forecasts/xml/DWMLgen/wsdl/ndfdXML.wsdl#LatLonListCityNames + </namespace> + <attribute name="CityName" type="String" mode="IN"/> + <attribute name="invoke" type="String" mode="IN" /> + <attribute name="result" type="String" mode="OUT"/> + </service> + <!-- FIXME For now, not sure why, this remote SOAP service does not work --> + <service name="testRemoteSoap3" engine="soap" export="true" + location="http://www.restfulwebservices.net/wcf/EmailValidationService.svc" + invoke="EmailValidationService"> + <attribute name="ZipCode" type="String" mode="IN"/> + <attribute name="invoke" type="String" mode="IN" /> + <attribute name="result" type="String" mode="OUT"/> + </service> + + <!-- FIXME For now, not sure why, this remote SOAP service does not work --> + <service name="testRemoteSoap4" engine="soap" export="true" + location="http://www.webservicex.net/geoipservice.asmx" + invoke="GetGeoIPContext"> + <attribute name="invoke" type="String" mode="IN" /> + <attribute name="result" type="String" mode="OUT"/> + </service> + <service name="testBsh" engine="bsh" location="component://common/script/org/ofbiz/common/BshServiceTest.bsh" invoke=""> <description>Test BeanShell Script Service</description> <attribute name="message" type="String" mode="IN" optional="true"/> |
Free forum by Nabble | Edit this page |