chinna sankar

Greenhorn
+ Follow
since Mar 06, 2005
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 chinna sankar

Hi,

I am going to work on AXIS web services and JMS. If any one having experience of generate WSDL file using JMS end point using Axis, please suggest me procedure.

I tried example given in Axis folder, it is not working for me.

Thanks in Advance
14 years ago
Before inserting card number into database, I need to perform encryption using below formula.

In Mapping I did like below

<property name="card_number" formula="(select tcrypt.tencrypt(card_number) from dual)" >
<column name="CNUMBER"/>
</property>


In the bean
Creditcard cardobj = new Creditcard();
cardobj.setCard_type("VISA");
cardobj.setCard_number("234509873333");


It is inserting null value.

Please suggest me where I am doing mistake.

Thanks in Advance
HI
I am new to hibernate implementation; I did normal insertions (just simple insert queries) with hibernate successfully. I struck up with a problem where I need to insert data with sub query (dynamic).
Query is:
INSERT INTO "CREDIT_CARD" (CNUMBER,CTYPE, EXPDATE,CUID,LAST_UPDATE) VALUES ((select tcrypt.tencrypt('234509873333') from dual),'AMEX','060627',43903873,sysdate);

Here my question is how can I execute �select tcrypt.tencrypt('234509873333') from dual� which is inside a Query.
I did one way is that, writing this as Native SQL and insert into data base.
Please suggest is there any alternative to execute the above query.
Thanks in advance
As per my knowledge we need to opt for myecilipse IDE instead of eclipse. Myecilpse IDE is commercial one, it allows us to go for trail version.
15 years ago
I am trying to implement WS_Realiable message specification according to Oiasis Specifications.

We need to Create SOAP message according to give Standards followed by embedded into SOAP.

In server Once I need to write my custom servlet, which will accept the request do my business and sent the response.
15 years ago
HI

Can any one post the sample snippet of code for �How to write a custom servlet which it extends org.apache.axis.transport.http.AxisServletBase� and need to accept the Requests and send responses.

Thanks in advance.
15 years ago
In your client application I am not observed below Issue.

Made hand shake with your trusted Key store, Once it successful then server is accepted your request and followed by sent response to client,

Java provide HttpsURLConnection class for HTTPS connection, let�s have a look on API.

If you are using Apache AXIS client (I mean if you are using stub to connect the web services) , it is very simple and you need to set the few properties.
16 years ago
Presently I am working on xsd:anyType, with the combination of RPC provider, Documet/Literal Style

My aim of the project is Upon getting XML file I need to convert into w3c.dom.Document and sent via webservices.

Can any body will Suggest me or giving guide lines, how to achieve my goal.

I am using Apache AXIS.


Thanks in advance.
16 years ago
Hi Anu pama Dande,

I am working for wsdl2java from my application.If possible can u share your code. It will help me alot.

Thanks in advance.
16 years ago
Hi Peer Reynders ,

Thank you, It's really Good information for me.

I done accrodingly, I changed the order of Loading Jar files, Finally i suceeded to run my application with out any errors.

Thanks again Peer Reynders.
16 years ago
I am working for making Attachment with SOAP (we are making a SOAP Messages with Attachment and then sent via socket It�s not any web service). It�s very simple application

The below jar files are in my class path
saaj-ri.jar, saaj-api.jar, dom4j.jar,activation.jar,mail.jar,comman-logging.jar

My code is:
MessageFactory mf = MessageFactory.newInstance();
System.out.println(mf);
SOAPMessage _msg = mf.createMessage();
SOAPPart spart = _msg.getSOAPPart();
SOAPEnvelope senv = spart.getEnvelope();
SOAPBody soapbody = senv.getBody();
SOAPHeader sheaser = senv.getHeader();
_msg.writeTo(System.out);
FileDataSource fdsource = new FileDataSource(new File("C:/n.xml"));
DataHandler dhandler = new DataHandler(fdsource);
AttachmentPart apart = _msg.createAttachmentPart(dhandler);
_msg.addAttachmentPart(apart);
_msg.saveChanges();
_msg.writeTo(System.out);


I got below error


java.lang.NoClassDefFoundError at com.sun.xml.messaging.saaj.soap.MessageImpl.createAttachmentPart(MessageImpl.java:305)
at javax.xml.soap.SOAPMessage.createAttachmentPart(Unknown Source)
16 years ago
I need to sent a file as a SOAP attachment (Multi part Message)in Webservices. I am using axis
for generation WSDL and Wsdd Files

Can u help me in how to write a client for below


*****My Interface Defination is

package DhPack;

public interface AttachmentTip extends java.rmi.Remote {
public void sendOctet(javax.activation.DataHandler in0) throws java.rmi.RemoteException;
}



*****WSDL File is
<?xml version="1.0" encoding="UTF-8"?>
<wsdl efinitions targetNamespace="urn:AttachmentTip" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="urn:AttachmentTip" xmlns:intf="urn:AttachmentTip" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<!--WSDL created by Apache Axis version: 1.3
Built on Oct 05, 2005 (05:23:37 EDT)-->

<wsdl:message name="sendOctetResponse">

</wsdl:message>

<wsdl:message name="sendOctetRequest">

<wsdl art name="in0" type="apachesoap ataHandler"/>

</wsdl:message>

<wsdl ortType name="AttachmentTip">

<wsdl peration name="sendOctet" parameterOrder="in0">

<wsdl:input message="impl:sendOctetRequest" name="sendOctetRequest"/>

<wsdl utput message="impl:sendOctetResponse" name="sendOctetResponse"/>

</wsdl peration>

</wsdl ortType>

<wsdl:binding name="AttachmentTipSoapBinding" type="impl:AttachmentTip">

<wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>

<wsdl peration name="sendOctet">

<wsdlsoap peration soapAction=""/>

<wsdl:input name="sendOctetRequest">

<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:AttachmentTip" use="encoded"/>

</wsdl:input>

<wsdl utput name="sendOctetResponse">

<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:AttachmentTip" use="encoded"/>

</wsdl utput>

</wsdl peration>

</wsdl:binding>

<wsdl:service name="AttachmentTipService">

<wsdl ort binding="impl:AttachmentTipSoapBinding" name="AttachmentTip">

<wsdlsoap:address location="http://localhost:8080/axis/services/AttachmentTip"/>

</wsdl ort>

</wsdl:service>

</wsdl efinitions>

*****WSDL File is End


****************and My WSDD file is

<deployment
xmlns="http://xml.apache.org/axis/wsdd/"
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">

<!-- Services from AttachmentTipService WSDL service -->

<service name="AttachmentTip" provider="java:RPC" style="rpc" use="encoded">
<parameter name="wsdlTargetNamespace" value="urn:AttachmentTip"/>
<parameter name="wsdlServiceElement" value="AttachmentTipService"/>
<parameter name="wsdlServicePort" value="AttachmentTip"/>
<parameter name="className" value="DhPack.AttachmentTipSoapBindingSkeleton"/>
<parameter name="wsdlPortType" value="AttachmentTip"/>
<parameter name="typeMappingVersion" value="1.2"/>
<parameter name="allowedMethods" value="*"/>

</service>
</deployment>
16 years ago
How can I sent and receive SOAP Messages with Attachments ( I need to sent Multiple documents with the request) Using JAX-RPC mechanism.

Please suggest me.


Thanks in Advance
16 years ago
Sir,
I was Installed Weblogic version 8.1 application server and I am running webapplication like made SOAP Message with Attachments.

I found in my server.log from Weblogic is
javax.xml.soap.MessageFactory = weblogic.webservice.core.soap.MessageFactoryImpl

I already using the Following line of code for overriding the above property
System.setProperty("weblogic.webservice.core.soap.MessageFactoryImpl","javax.xml.soap.MessageFactory"); even though it is not overridden

This property by default set with Weblogic. But I need to avoid set above Property please suggest me where I do modifications
16 years ago
Sir,
I was Installed Weblogic version 8.1 application server and I am running webapplication like made SOAP Message with Attachments.

I found in my server.log from Weblogic is
javax.xml.soap.MessageFactory = weblogic.webservice.core.soap.MessageFactoryImpl

I already using the Following line of code for overriding the above property
System.setProperty("weblogic.webservice.core.soap.MessageFactoryImpl","javax.xml.soap.MessageFactory"); even though it is not overridden

This property by default set with Weblogic. But I need to avoid set above Property please suggest me where I do modifications
16 years ago