Friday, November 21, 2014

Increase Weblogic memory in Integrated Weblogic server of Jdeveloper

Go to JDEV_HOME\system12.1.2.0.40.66.68\DefaultDomain\bin and open setDomainEnv.cmd  or setDomainEnv.sh based on whether it is a windows or linux machine.

Scroll down until you see WLS_MEM_ARGS, below that enter

In the case of Windows:
set USER_MEM_ARGS = -Xms64m  -Xmx2048m  -XX:MaxPermSize=1024m

In the case of Linux:
USER_MEM_ARGS="-Xms64m  -Xmx2048m  -XX:MaxPermSize=1024m"
export USER_MEM_ARGS

Sunday, November 16, 2014

Calling a web service using wsimport from a proxy internet connection

When you try to access a basic web service using the wsimport command from your system to a valid web service over a proxy network there is a chance that you might be getting the below error

[ERROR] Connection timed out: connect

Failed to read the WSDL document: http://www.webservicex.net/geoipservice.asmx?W
SDL, because 1) could not find the document; /2) the document could not be read;
 3) the root element of the document is not <wsdl:definitions>.


[ERROR] failed.noservice=Could not find wsdl:service in the provided WSDL(s):

 At least one WSDL with at least one service definition needs to be provided.


        Failed to parse the WSDL.


To resolve this issue you should specify the proxy server host and port also along with the wsimport command.

>wsimport -httpproxy:<Proxy Host>:<Proxy Port> http://www.webservicex.net/geoipservice.asmx?WSDL

Then the wsimport will work fine.

Thanks.