Author: saminda
Date: Mon Jan 7 03:23:27 2008
New Revision: 11951
Log:
Fixing a possible null pointer
Modified:
trunk/commons/wsdl-converter/src/main/java/org/wso2/tryit/ProxyMessageReceiver.java
Modified:
trunk/commons/wsdl-converter/src/main/java/org/wso2/tryit/ProxyMessageReceiver.java
==============================================================================
---
trunk/commons/wsdl-converter/src/main/java/org/wso2/tryit/ProxyMessageReceiver.java
(original)
+++
trunk/commons/wsdl-converter/src/main/java/org/wso2/tryit/ProxyMessageReceiver.java
Mon Jan 7 03:23:27 2008
@@ -67,6 +67,9 @@
String wsoapVersion =
(String)
binding.getProperty(WSDL2Constants.ATTR_WSOAP_VERSION);
String inSOAPNamespace = env.getNamespace().getNamespaceURI();
+ if (wsoapVersion == null || wsoapVersion.length() == 0) {
+ continue;
+ }
if (!wsoapVersion.equals(inSOAPNamespace)) {
continue;
}
@@ -96,7 +99,7 @@
options.setAction(inMessage.getWSAAction());
options.setSoapVersionURI(env.getNamespace().getNamespaceURI());
options.setProperty(HTTPConstants.CHUNKED, Boolean.FALSE);
- options.setTimeOutInMilliSeconds(100000);
+ options.setTimeOutInMilliSeconds(1000*60*10);
client.setOptions(options);
client.disengageModule(Constants.MODULE_ADDRESSING);
int i = inMessage.getAxisOperation().getAxisSpecificMEPConstant();
_______________________________________________
Commons-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/commons-dev