Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 39925 invoked from network); 19 Sep 2008 15:17:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Sep 2008 15:17:45 -0000 Received: (qmail 86883 invoked by uid 500); 19 Sep 2008 15:17:33 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 86873 invoked by uid 500); 19 Sep 2008 15:17:33 -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 86862 invoked by uid 99); 19 Sep 2008 15:17:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Sep 2008 08:17:33 -0700 X-ASF-Spam-Status: No, hits=3.5 required=10.0 tests=HTML_MESSAGE,NORMAL_HTTP_TO_IP,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of james.cubeta@gmail.com designates 64.233.184.227 as permitted sender) Received: from [64.233.184.227] (HELO wr-out-0506.google.com) (64.233.184.227) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Sep 2008 15:16:31 +0000 Received: by wr-out-0506.google.com with SMTP id 58so146069wri.8 for ; Fri, 19 Sep 2008 08:17:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=eRjT6Sh9o6vp7QC8Xs/acoCrcDWgTNxFpE/UrBZ5NrI=; b=nB0PF2WsNAKSGUoljc74vAx+Os8E3pzKU7C/PKwZonIgsyv5HC7/W7wYJKPeHXztIi OInsuTpIuZCThAoapUuilPOAh3S7T8fd+zCMrO8orzagS/wAvIWDqLRPC+dpeYj81IlH uQj98I3KipzULrs+qYeWRj+1L+MFofyWnTi9M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=CfKdr/XY+6MC5BO9fXXb6qEVBFQ4fCFb14fQ0N/yY0zdvbeeexcH3PXI7sjxKaQld0 regrB5TivVv4QMVu14s4ic9PncOiwIZjIADu6Z2DYQxqpQpcYw48gGsN2CduSJM+/oSY y2iAoxMUpiVFomiMBHKelbfKrr9ti+uA3g5ws= Received: by 10.142.105.13 with SMTP id d13mr66731wfc.275.1221837423728; Fri, 19 Sep 2008 08:17:03 -0700 (PDT) Received: by 10.142.193.21 with HTTP; Fri, 19 Sep 2008 08:17:03 -0700 (PDT) Message-ID: <872a103d0809190817v7c5a1a24je1554ae44add9690@mail.gmail.com> Date: Fri, 19 Sep 2008 11:17:03 -0400 From: "james a. cubeta" To: axis-user@ws.apache.org Subject: InstantiationException with Axis 1.4... MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_58233_18323101.1221837423728" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_58233_18323101.1221837423728 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline I am using Axis 1.4, and I am trying to write a simple test application of a web service. I saved the WSDL locally, used WSDL2Java to build stub code, created a JAR, and wrote a test case that basically does this: URL url = new URL(" https://192.168.1.150:8443/simple-ws/service/SimpleExample"); SimpleExampleServiceLocator locator = new SimpleExampleServiceLocator(); SimpleExampleSoapBindingStub client = (SimpleExampleSoapBindingStub) locator.getSimpleExample(url); client.setUsername("username"); client.setPassword("password"); String response = client.sayHello("James"); When I attempt to run this code, I get the following exception: AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userExcpetion faultSubcode: faultString: java.lang.InstantiationException faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}stackTrace:java.lang.InstantiationException at org.apache.axis.encoding.ConstructorTarget.set(ConstructorTarget.java:97) at org.apache.axis.Call.invoke(Call.java:1812) Sorry if this is not enough information, but the exception stack seems to be pretty useless overall... :-/ Ideas/Thoughts appreciated, James -- james a. cubeta ------=_Part_58233_18323101.1221837423728 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
I am using Axis 1.4, and I am trying to write a simple test application of a web service.

I saved the WSDL locally, used WSDL2Java to build stub code, created a JAR, and wrote a test case that basically does this:

URL url = new URL("https://192.168.1.150:8443/simple-ws/service/SimpleExample");
SimpleExampleServiceLocator locator = new SimpleExampleServiceLocator();
SimpleExampleSoapBindingStub client = (SimpleExampleSoapBindingStub) locator.getSimpleExample(url);
client.setUsername("username");
client.setPassword("password");

String response = client.sayHello("James");

When I attempt to run this code, I get the following exception:

AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userExcpetion
 faultSubcode:
 faultString: java.lang.InstantiationException
 faultActor:
 faultNode:
 faultDetail:
{http://xml.apache.org/axis/}stackTrace:java.lang.InstantiationException
     at org.apache.axis.encoding.ConstructorTarget.set(ConstructorTarget.java:97)
     <snip>
     at org.apache.axis.Call.invoke(Call.java:1812)

Sorry if this is not enough information, but the exception stack seems to be pretty useless overall... :-/

Ideas/Thoughts appreciated,
James
--
james a. cubeta
------=_Part_58233_18323101.1221837423728--