Priyanka Kumar

Greenhorn
+ Follow
since Mar 21, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Priyanka Kumar

Any suggestions will be greatly appreciated..

I have tried a number of options.. but none worked
1) set saaj.jar in the ws.ext.dirs property
2) set saaj.jar in the CLASSPATH property
3) PARENT_LAST (ear), PARENT_LAST(war) ,ClassLoader MODULE--- gives me VIRTUAL HOST NOT FOUND
4)PARENT_FIRST(ear), PARENT_FIRST(war)-- javax.xml.SOAPBody methods not found.
16 years ago
I have only one war file... which has the Java Code and all axis related war file.


This is the classpath entry

<classpathentry exported="true" kind="lib" path="/wsapp/saaj.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/jaxrpc.jar"/>
<classpathentry kind="src" path="JavaSource"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/WebSphere v5.1 JRE"/>
<classpathentry kind="con" path="com.ibm.wtp.server.java.core.container/com.ibm.etools.websphere.runtime.core.runtimeTarget.v51/was.base.v51"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/commons-discovery-0.2.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/axis.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/commons-logging-1.0.4.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/axis-ant.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/wsdl4j-1.5.1.jar"/>
<classpathentry sourcepath="/pws-caws/log4j.jar" kind="lib" path="/wsapp/log4j.jar"/>
<classpathentry sourcepath="/wsapp/rowset.jar" kind="lib" path="/wsapp/rowset.jar"/>
<classpathentry sourcepath="/wsapp/ojdbc14.jar" kind="lib" path="/wsapp/ojdbc14.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/commons-configuration-1.1.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/commons-lang-2.1.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/commons-digester-1.7.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/commons-collections-3.1.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/classes12.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/saaj.jar"/>
<classpathentry kind="output" path="WebContent/WEB-INF/classes"/>
16 years ago
When I deployed my web service locally, I renamed the webservices.jar temporarily in the websphere runtime.
This solution worked, but now I am running into issues deploying into Test enviroment. Using PARENT_LAST and MODULE settings did not work.
It seems to be picking webservices.jar before saaj.jar.

Is there any solution for this.. besides deleting or renaming webservices.jar?

Thanks.
16 years ago
I have a service running on Websphere 5.1 which uses IBM JSSE.
On the client side, I am using JDK1.3 with JSSE1.0.3.

I am testing with old JDK because our customer is currently running JDK1.3 version.

I am using URLTunnelReader sample from JDK and I get this error

Exception in thread "main" java.net.SocketException: Unexpected end of file from server
at com.sun.net.ssl.internal.www.protocol.https.HttpClient.b(DashoA12275)
at com.sun.net.ssl.internal.www.protocol.https.HttpClient.a(DashoA12275)

I am going through a proxy .

String url = "https://myserver.com"
BufferedInputStream bInputStream = null;

System.setProperty("https.proxyHost",proxyHost);
System.setProperty("https.proxyPort",proxyPort);

URL verisign = new URL(url);
URLConnection urlc = verisign.openConnection(); //from secure site
if(urlc instanceof com.sun.net.ssl.HttpsURLConnection){
System.out.println("INSTANCE OF HTTPSURLCONNECTION");
((com.sun.net.ssl.HttpsURLConnection)urlc).setSSLSocketFactory
(new SSLTunnelSocketFactory proxyHost,proxyPort));
}


com.sun.net.ssl.HttpsURLConnection httpconn = (com.sun.net.ssl.HttpsURLConnection)urlc;

httpconn.setRequestMethod("POST");
System.out.println("POST method set");
OutputStream outputStream =new ByteArrayOutputStream();
byte[] inputBuffer = new byte[4096];
bInputStream = new BufferedInputStream(httpconn.getInputStream());


The Unexpected end of file from server is thrown on line httpconn.getInputStream());


Please Suggest what is causing this problem.

Thanks,
Priya
I have created a WebService using Axis1.4. It returns an object array,included in an object, but all the values returned to the client are empty. Using the TCP monitor, the SOAP response correctly displays the values of each element.

My client is a web based , created using WSAD,(Axis1.0). Can using Axis1.0 be the cause for lost values.?

Please see a portion of the wsdl, for the response element


<xsd:complexType name="checkResponse">
<xsd:sequence>
<xsd:element minOccurs="1" maxOccurs="1" name="checkInformation" type="checkInformation"/>
</xsd:sequence>
</xsd:complexType>

<xsd:complexType name="checkInformation">
<xsd:sequence>
<xsd:element minOccurs="1" maxOccurs="1"
ref="micrCount" />
<xsd:element minOccurs="1" maxOccurs="unbounded"
name="micr" type="micr">
</xsd:element>
</xsd:sequence>
</xsd:complexType>

The element micr, is returned as an array in checkInformation. On the client side, when I process the response like

Micr[] micrArray = response.getCheckInformation().getMicr();

Micr micr = new Micr();
micr = (Micr)micrArray[0];

micr.getAccountNumber()---> Returns 0, instead of the actual account number value.

Any suggestions, why the values are not returned to the client.

Thanks,
16 years ago
To resolve this,
got to Windows-> Preferences->Web and XML-->XML Catalog

Create a XML Catalog Entry :

URI: platform:/resource/ImageRetrieval/WebContent/WEB-INF/spring-beans-2.0.dtd
Key Type:Public ID
Key:-//SPRING//DTD BEAN 2.0//EN

Copy the spring-beans-2.0.dtd in your workspace.. and according your URI will vary.
Here's the current scenario...
We have a servlet which receives params like account number, check number and responds by displaying a check image
We use certs for authentication, over a T1 line


Future Suggested Scenario : Replace the servlet by a Web Service and remove the t1 line

Issue is that the customer will not make any modifications to the way they invoke our servlet.

My question is... does it make sense replacing the servlet by an SSL based Web Service,
specially when the way it is invoked will not be modified.
16 years ago