Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 54269 invoked from network); 17 Jan 2007 06:23:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Jan 2007 06:23:32 -0000 Received: (qmail 74003 invoked by uid 500); 17 Jan 2007 06:23:31 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 73726 invoked by uid 500); 17 Jan 2007 06:23:29 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 73715 invoked by uid 99); 17 Jan 2007 06:23:29 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Jan 2007 22:23:29 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of Nitin.Dubey@sos.sungard.com designates 203.124.131.227 as permitted sender) Received: from [203.124.131.227] (HELO mails.ascindia.com) (203.124.131.227) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Jan 2007 22:23:20 -0800 Received: from SOS-MAILSRV.ascindia.com ([10.253.129.13]) by mails.ascindia.com (8.12.8/8.12.8) with ESMTP id l0H6MdoM031855 for ; Wed, 17 Jan 2007 11:52:51 +0530 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C73A00.1C153FFC" X-MimeOLE: Produced By Microsoft Exchange V6.5 Subject: AXIS Client SSL with WebService Date: Wed, 17 Jan 2007 11:54:14 +0530 Message-ID: <5EBE57594E74E84DB1DC6BA8E279389D011A3607@SOS-MAILSRV.ascindia.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: AXIS Client SSL with WebService thread-index: Acc6AB3exadzzVqXRl+8esY3Vvqgbw== From: "Nitin Dubey" To: X-Virus-Checked: Checked by ClamAV on apache.org ------_=_NextPart_001_01C73A00.1C153FFC Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hello, =20 I am trying to write a SSL client using AXIS 1.4. I got a sample from net and able to run the following program successfully. I have to modify the SOAP header and send a big XML content to a external WebService. Can anybody tell me whether I am following the right approach? And using the following code how do I modify the SOAP headers? =20 public static void main(String [] args) { try { // String endpoint =3D "https://localhost:1000/axis/protected/EchoService.jws"; String endpoint =3D "https://pc1267.ascindia.com:1000/axis/protected/EchoService.jws"; System.setProperty("javax.net.ssl.trustStore", "C:/temp/ssl/.keystore"); =20 Service service =3D new Service(); =20 =20 Call call =3D (Call) service.createCall(); =20 call.setTargetEndpointAddress( new java.net.URL(endpoint) ); call.setOperationName(new QName("echoString")); =20 // call.setUsername("wsuser"); // call.setPassword("wspwd"); =20 String ret =3D (String) call.invoke( new Object[] { "Hello!" } ); System.out.println("Sent 'Hello!', got '" + ret + "'"); } catch (Exception e) { System.err.println(e.toString()); } =20 Your any kind of help will be appreciated, =20 Nitin =20 ------_=_NextPart_001_01C73A00.1C153FFC Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hello,

 

I am trying to write a SSL client using AXIS = 1.4.  I got a sample from net and able to run the following program = successfully.  I have to modify the SOAP header and send a big XML content to a = external WebService.  Can anybody tell me whether I am following the right approach? And using the following code how do I modify the SOAP = headers?

 

public static void main(String [] args) = {

  try {

//    String endpoint =3D "https://localhost:1000/axis/protected/EchoService.jws";

    String endpoint =3D = "https://pc1267.ascindia.com:1000/axis/protected/EchoService.jws&quo= t;;

    System.setProperty("javax.net.ssl.trustStore", "C:/temp/ssl/.keystore");

   

    Service service =3D new = Service();

   

   

    Call    call    =3D (Call) = service.createCall();

   

    call.setTargetEndpointAddress( new java.net.URL(endpoint) );

    call.setOperationName(new QName("echoString"));

            =     

//    = call.setUsername("wsuser");

//    = call.setPassword("wspwd");

 

    String ret =3D (String) = call.invoke( new Object[] { "Hello!" } );

    System.out.println("Sent = 'Hello!', got '" + ret + "'");

  } catch (Exception e) = {

    = System.err.println(e.toString());

  }

 

Your any kind of help will be = appreciated,

 

Nitin

 

------_=_NextPart_001_01C73A00.1C153FFC--