Win a copy of Microservices Testing (Live Project) this week in the Spring forum!

Parijat Mukherjee

Greenhorn
+ Follow
since Sep 21, 2003
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 Parijat Mukherjee

Hi ,

I am new to webservices can some one please guide me on working with
exo portal and setting up the UDDI registry .

Thanks & Regards,
Parijat
17 years ago
I wanted to know that while choosing a particular driver how do we
identify whether its a type 3 or type 4 driver .
For ex what is the type of "ocx driver".
Regards,
Parijat
Thanks Priya ,

But I am not behind any firewall or proxy .Again the error saying "- Unable to find required classes (javax.activation.DataHandler and javax.mail.i
nternet.MimeMultipart)." is not understood as I have already set the classpath for activation.jar and mail.jar which has the above mentioned classes .
17 years ago
Hi ,

I am using tomcat version 5 and Axis 1_2RC2 .I have successfully deployed the web service http://localhost:8080/axis/helloWorld.jws .But i am unable to test the service .I have written a client code as follows :
import org.apache.axis.client.Call;
import org.apache.axis.client.Service;
import org.apache.axis.encoding.XMLType;
import org.apache.axis.utils.Options;

import javax.xml.rpc.ParameterMode;

public class CalcClient
{
public static void main(String[] args) throws Exception
{



String endpoint = "http://localhost:8080/axis/HelloServer.jws";





String method = "sayHelloTo";



Service service = new Service();
Call call = (Call) service.createCall();

call.setTargetEndpointAddress( new java.net.URL(endpoint) );
call.setOperationName( method );
call.addParameter( "op1", XMLType.XSD_STRING, ParameterMode.IN );
call.setReturnType( XMLType.XSD_STRING );
String ret = (String)call.invoke("","sayHelloTo",new Object [] {args[0]});
System.out.println(ret);
}
}

But when I try to execute this I am getting the following exceptions :

- Unable to find required classes (javax.activation.DataHandler and javax.mail.i
nternet.MimeMultipart). Attachment support is disabled.
Exception in thread "main" AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.net.ConnectException: Connection refused: connect
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:java.net.ConnectException: Conne
ction refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at org.apache.axis.components.net.DefaultSocketFactory.create(DefaultSoc
ketFactory.java:138)
at org.apache.axis.components.net.DefaultSocketFactory.create(DefaultSoc
ketFactory.java:99)
at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:1
31)
at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.ja
va:370)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:88)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrateg
y.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:147)
at org.apache.axis.client.Call.invokeEngine(Call.java:2719)
at org.apache.axis.client.Call.invoke(Call.java:2702)
at org.apache.axis.client.Call.invoke(Call.java:2378)
at org.apache.axis.client.Call.invoke(Call.java:2301)
at CalcClient.main(CalcClient.java:32)

{http://xml.apache.org/axis/}hostname:BCD-DDTQ

java.net.ConnectException: Connection refused: connect
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at org.apache.axis.components.net.DefaultSocketFactory.create(DefaultSoc
ketFactory.java:138)
at org.apache.axis.components.net.DefaultSocketFactory.create(DefaultSoc
ketFactory.java:99)
at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:1
31)
at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.ja
va:370)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:88)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrateg
y.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:147)
at org.apache.axis.client.Call.invokeEngine(Call.java:2719)
at org.apache.axis.client.Call.invoke(Call.java:2702)
at org.apache.axis.client.Call.invoke(Call.java:2378)
at org.apache.axis.client.Call.invoke(Call.java:2301)
at CalcClient.main(CalcClient.java:32)

Can some please help as I am a newcomer to the web services .
Thanks
Parijat
17 years ago
What is the difference between a Class.forName() and New operator? Please let me know in the earliest .
17 years ago
My req is to search posn of if , then and else in an expression string where in a case none of them are there and in one case only if is there and in one case all three keywords are there please help as it is urgent
18 years ago
I'm getting this error :
E SRVE0026E: [Servlet Error]-[No selector attribute ;cookie/header/name/parameter; was specified]: javax.servlet.jsp.JspException: No selector attribute (cookie/header/name/parameter) was specified
at org.apache.struts.taglib.logic.CompareTagBase.condition(CompareTagBase.java:249)

when i'm trying to reload (in sorted form )my jsp page
CAN SOMEONE HELP PLEASE AS IT IS URGENT
18 years ago
Hi srivani thanks for the link but this is not what i am looking for i was looking for a class which could extend the comparator interface and can sort a list. if some one could help
18 years ago
I have a list of rows having a column Name , now i wan't that on click of the column header label Name the whole list of rows should get sorted in ascending order and on re click of the label the list should now get sorted in descending order . Can some one help me with the code as it is very urgent.
18 years ago
Can i use any action form for performing more than one action .
like i have a form manageproject i have 3 actions add , update , delete
now i have a hidden property by which i choose the action class but the problem is in case of add and delete since on sucess as well as failure i return back to same jsp where as i am confused how to put the update entry in struts config
18 years ago
I have a form in which i have a drop down menu with actions like
"manage", "add new" , "delete" etc now when the user selects an action from the menu and on click of "ok" button next to it a javascript function is called.
now on selecting "add new" and on click of "ok " button i wan't the user to be taken to a new jsp .
in the struts-config.xml i have an action path as shown :
<action path="/setupEditProjectForm" forward="/com/bofa/mdi/web/jsp/projectEditForm.jsp"/>
can anyone please tell me what should i write in the javascript function
so that the projectEditForm.jsp is called.Pls help urgently
18 years ago
i have another problem i have a list within a map now i wan't to iterate
through it using the struts logic tag iterate can anyone help me on this pls reply its urgent
18 years ago
i am facing a problem i have a hashmap in my jsp and i wan't to
iterate it using the logic iterate tag .now the hashmap has an index and an arraylist associated to it . Can anyone send me some similar example code
urgently .
18 years ago
what is the importance of DOC-TYPE in the struts-config and what all things are to be taken care of
18 years ago
what is the basic difference in Struts Framework and GRNDS Framework ??
can anyone comment its very urgent thanks in advance
18 years ago