chaitanya kiran pvn

Greenhorn
+ Follow
since Nov 01, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by chaitanya kiran pvn

MY SAMPLE CODE IS GIVEN BELOW,WHEN I SEPERATELY CALL THE WESERVICES URL AND GIVE THE PARAMETER I GOT PROPER RESULT,BUT WHEN I CALL THROUGH THE MY CODE GIVEN ERROR CODE Ie NO PARAMETER SEND.PLESE HELP ME IT VERY URGENT

package WSClient;

import javax.xml.namespace.QName;
import javax.xml.rpc.Call;
import javax.xml.rpc.ParameterMode;
import javax.xml.rpc.Service;
import javax.xml.rpc.ServiceFactory;
import javax.xml.rpc.soap.SOAPFaultException;

public class EcapayClient {

/**
* @param args
*/
public String response = "";

public EcapayClient(String targetNamespace, String serviceValue,
String portValue, String operationValue, String soapAtion,
String transIdName, String validationKeyName, String transIdValue,
String validationKeyValue, String endPointAddress) {
// TODO Auto-generated method stub
try {
targetNamespace = "http://payment.ecapay.com/";
serviceValue = "VerifySign";
portValue = "VerifySignSoap";
operationValue = "RunVerifySign";
soapAtion = "http://payment.ecapay.com/RunVerifySign";
transIdName = "TransactionID";
validationKeyName = "ValidationKey";
transIdValue = "2008101803017";
validationKeyValue = "Z6NFJV0T4";
endPointAddress = "http://payment.payuniq.com/WebService/VerifySign.asmx";


// Setup the global JAX-RPC service factory
System.setProperty( "javax.xml.rpc.ServiceFactory","weblogic.webservice.core.rpc.ServiceFactoryImpl");
// create service factory
ServiceFactory factory = ServiceFactory.newInstance();
// define qnames

String NS_XSD = "http://www.w3.org/2001/XMLSchema";
QName QNAME_TYPE_STRING = new QName(NS_XSD, "string");

QName serviceName = new QName(targetNamespace,serviceValue);
QName portName = new QName(targetNamespace, portValue);
QName operationName = new QName(targetNamespace, operationValue);
//URL wsdlLocation = new URL("http://payment.payuniq.com/WebService/VerifySign.asmx?WSDL");
// create service
Service service = factory.createService(serviceName);
// create call
Call call = service.createCall(portName, operationName);

call.setProperty(Call.SOAPACTION_USE_PROPERTY, new Boolean(true));
call.setProperty(Call.SOAPACTION_URI_PROPERTY, soapAtion);
call.setProperty(Call.ENCODINGSTYLE_URI_PROPERTY, "http://schemas.xmlsoap.org/soap/encoding/");
call.setProperty(Call.OPERATION_STYLE_PROPERTY, "wrapped");

// add parameters
call.addParameter(transIdName, QNAME_TYPE_STRING,ParameterMode.IN);
call.addParameter(validationKeyName, QNAME_TYPE_STRING,ParameterMode.IN);
call.setReturnType(QNAME_TYPE_STRING);

//set end point address
call.setTargetEndpointAddress(endPointAddress);


// invoke the remote web service
String result = (String) call.invoke(new Object[] {transIdValue,validationKeyValue});
//String result = (String) call.invoke(new Object[] {});
System.out.println("\n");

System.out.println(result);

setResponse(result);

} catch (Exception ex) {
if (ex.getCause() instanceof SOAPFaultException) {
SOAPFaultException fault = (SOAPFaultException)ex.getCause();
System.out.println("Remote Exception [Client] Fault Detail : " + fault.getDetail().toString());
System.out.println("Remote Exception [Client] Fault Actor : " + fault.getFaultActor());
System.out.println("Remote Exception [Client] Fault String : " + fault.getFaultString());
}
System.out.println("Exception :"+ex);
ex.printStackTrace();
}

}

public String getResponse() {
return response;
}
public void setResponse(String response) {
this.response = response;
}

public static void main(String[] args) {
EcapayClient ecapayClient = new EcapayClient("String targetNamespace", "String serviceValue",
"String portValue", "String operationValue", "String soapAtion",
"String transIdName", "String validationKeyName", "String transIdValue",
"String validationKeyValue", "String endPointAddress");
}

}
16 years ago
hai

iam using login page send the request to the servlet and the servlet is processes send response to the client.when this if the response is committed iam sending structure to the client . my question is if any connection slow are connection is drop in that time also i want to send the response hear is the code


chaitanya
[ June 30, 2008: Message edited by: chaitanya kiran pvn ]
16 years ago
hai
iam enable the ssl with port 443 but it ask the .keystore in my windows path .how to create the keystore in jboss.

please help
16 years ago
hai
thankyou iam using the ssl enabled page but it askes the keystore .i place the previous keystore is placed in server/defult/conf jboss.keystore .but it gives the same error.and web page is also not open in the browser.hear i attach the server.xml

AND HOW TO CREATE THE KEYSTORE FOR JBOSS

THANK YOU IN ADVANCE
CHAITANYA
16 years ago
hai

i made the mistake in driver class your right my driver class is
com.microsoft.jdbc.sqlserver.SQLServerDriver after change this my application is deployed. but it open in localhost 127.0.0.1:8080 port only .but i want my system ip adress where i can change the ip address and it wont show the server started at some time. hear i paste my console.


thanks in advance.
chaitanya
16 years ago
hai
thank you and one question in jboss 4.0.3sp1 and sqlserver 2000 i paset the my mssql-ds.xml in jboss 4.0.3Sp1. now i migrate to jboss4.2.2GA is there any changes in mssql-ds in jboss 4.2.2GA .


thanks in advance
chaitanya kiran
16 years ago
hai

iam working previously iam workin in jboss 4.0.3sp1 now iam migrate to jboss4.2.2GA . in this iam facing one problem regarding database table creation and could not create the connection and faild to register the driver and no classloaders found.iam using MSSqlserver2000 database for my application but when i deployed the aplication in jboss4.2.2GA bean is deployed but war file is not deployed and got the error as like this .
i placed the relavent jars to msbase.jar msutil.jar mssqlserver.jar in default\lib and set the classpath. please help me inthe context.


thanks in advance
chaitanya
16 years ago
hai

how to map the log4j in run.sh andif iam using the System.out.println in the jsp are java file in my applicationthe it print in the console . iam using log4j.properties, log4j.xml.
17 years ago
hai
iam not change the conf log4j.xml it is seted as default. hear i post my log4j.xml
if any changes please change and send me.




thanks in advance

chaitanya
17 years ago
hai

iam using this as dynamic table creation of my reacent actiity from mssqlserver database but it throws in sql exception. in runtime jsp.

i am not using any blob are clob in my application.

thanks in advance
chaitanya
hai

i have one problem in jsp with sql tag in but this tag is working in weblogic but it wont work in jsp when i change into datasource=${ds}.
give any help on this.

hear i post my tag



i change the tld version to 1.1
thanks in advance
chaitanya
hai

ok in jmx-console type server it shows as true
Started boolean R True MBean Attribute .
thankyou
but why it was not comes into console.as well as how to debug my application when i got any exception in web page.and if i put trace in that page as ou.println are system.out.println it wont show in the console.
thanks in advance
chaitanya
17 years ago
hai

iam already posted my console and server log can you check and tell me what wrong in it. see this post CommunicationException in war file deployment .
thanks in advance
chaitanya
[ November 29, 2007: Message edited by: chaitanya kiran pvn ]
17 years ago
hai

i copied my folder and then started my server.then it comes in the server log like this
ok
17 years ago
hai ranchers

When JBOSS server is started, we generally get a message saying 'server started in some secs', I use to get this message everytime I started the server. After deploying a new ear in JBOSS, final 'server started' message disappeared,although the newly deployed ear didn't gave any error. I browsed the application which worked well and the logs are still getting reflected, can anyone tell me what can be problem with JBOSS Console not showing the final server started message?
in my log it looks like this




thanks in advance
chaitanya

[Edited by Jaikiran: Addressed the post to everyone]
[ November 29, 2007: Message edited by: Jaikiran Pai ]
17 years ago