Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 4085 invoked from network); 8 Jun 2007 18:47:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Jun 2007 18:47:56 -0000 Received: (qmail 45106 invoked by uid 500); 8 Jun 2007 18:47:51 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 45096 invoked by uid 500); 8 Jun 2007 18:47:51 -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 45085 invoked by uid 99); 8 Jun 2007 18:47:51 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Jun 2007 11:47:51 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of linsun.unc@gmail.com designates 64.233.184.231 as permitted sender) Received: from [64.233.184.231] (HELO wr-out-0506.google.com) (64.233.184.231) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Jun 2007 11:47:46 -0700 Received: by wr-out-0506.google.com with SMTP id i22so850318wra for ; Fri, 08 Jun 2007 11:47:26 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; b=G5GgaXDjhqKydSIjgrW9EkHVMxU+Xjo3JlLX+GIQZ8tWouILZ1yezBIxDw7ugzMGj+R1yKVAIZ09hg55kHLxWGXFVkkZLbf6SvE42z3Jd4mamccVfWUTr8+DNE6N1q/Nh/uB7ut8QIhDb0EZuXaQbj5YB0p69bxX6DFxjYQv/r8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; b=bPFbwpgCDbq4BwIuzKJ7a9daqS6DApyXB9E9IGuxb2fEcqdx/pckm54kA3dNLuOIfEPb3I+yHnqFNfU3B3eGadiN13MFyT9zJTrLT8vFyQK+VysgnEkyXG5pfNWqJFlJJG/e9GfmpSYTGFoCqbbkdyMCGbllOibuN9Wlhp0Iuz0= Received: by 10.90.113.20 with SMTP id l20mr3332835agc.1181328445859; Fri, 08 Jun 2007 11:47:25 -0700 (PDT) Received: from ?192.168.1.101? ( [66.57.117.23]) by mx.google.com with ESMTP id 32sm3336880aga.2007.06.08.11.47.24 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 08 Jun 2007 11:47:25 -0700 (PDT) Message-ID: <4669A440.1030103@gmail.com> Date: Fri, 08 Jun 2007 14:47:28 -0400 From: Lin Sun User-Agent: Thunderbird 1.5.0.12 (Windows/20070509) MIME-Version: 1.0 To: axis-user@ws.apache.org Subject: Re: WSA Action = null using non Axis2 client References: <539512.21146.qm@web82008.mail.mud.yahoo.com> In-Reply-To: <539512.21146.qm@web82008.mail.mud.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi, We have seen this error during axis2 integration into geronimo and we were able to correct this error by setting the soapAction to an empty string if it is null. HTH, Lin wesleyalanking wrote: > I'm running Axis2 version 1.2. I'm getting the following error when > attempting to send a request to the Axis2 server. > org.apache.axis2.AxisFault: The endpoint reference (EPR) for the > Operation not found is /axis2/services/MyService and the WSA Action = null > > This service is just a simple test service that came packaged with > Axis2. Using the RESTClient also in the samples it works fine. The > problem though is incoming requests might not always be coming from an > Axis2 API. To test I created a simple HttpClient, but now get the error > above. Attached below is the code used for sending the request. > > Any help is very much appreciated. Thanks in advance. > > ~ Wes > > > public class HttpClient { > > private static String toEpr = > "http://localhost/axis2/services/MyService"; > > /** > * @param args > */ > public static void main(String[] args) { > > // content to test > String content = "http://example1.org/example1\">Axis2 Echo > String "; > byte[] output = content.getBytes(); > > HttpURLConnection httpConn = null; > > try { > // crate http url connection > URL url = new URL(toEpr); > URLConnection connection = url.openConnection(); > httpConn = (HttpURLConnection) connection; > > httpConn.setRequestProperty("Content-Length", > String.valueOf(output.length)); > httpConn.setRequestMethod("POST"); > httpConn.setDoOutput(true); > httpConn.setDoInput(true); > > // write to output stream > OutputStream out = httpConn.getOutputStream(); > out.write(output); > out.close(); > > // read response > StringBuffer res = new StringBuffer(); > InputStreamReader isr = new > InputStreamReader(httpConn.getInputStream()); > BufferedReader in = new BufferedReader(isr); > String inputLine; > while ((inputLine = in.readLine()) != null) { > res.append(inputLine); > } > in.close(); > System.out.println("Response: " + res.toString()); > } > catch (Exception e) { > e.printStackTrace(); > } > } > } > --------------------------------------------------------------------- To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-user-help@ws.apache.org