Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 68267 invoked from network); 12 Sep 2007 18:18:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Sep 2007 18:18:48 -0000 Received: (qmail 79189 invoked by uid 500); 12 Sep 2007 18:18:33 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 79172 invoked by uid 500); 12 Sep 2007 18:18: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 79160 invoked by uid 99); 12 Sep 2007 18:18:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Sep 2007 11:18:33 -0700 X-ASF-Spam-Status: No, hits=1.5 required=10.0 tests=SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of atmanes@gmail.com designates 64.233.166.183 as permitted sender) Received: from [64.233.166.183] (HELO py-out-1112.google.com) (64.233.166.183) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Sep 2007 18:18:27 +0000 Received: by py-out-1112.google.com with SMTP id a25so560409pyi for ; Wed, 12 Sep 2007 11:18:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=wL2loGCmXz0wNc7hn7UQWZSRJDgcAyjwGam8K9mRQwY=; b=NcyJBQSmzEZz+C2F8kkbz5sUtNqBq5HN4hGkSqSHtYjd19aSqjk0uB+oz4z3G1fBdNI/1IN/nSBqOwBDvJLZ9d2gitwchElYOz8q/5zrK7hug3ygIflko1Lx2LFHjBJlvAj62Ti00QZPqLZZqixQSVIiWNXGfad+ZXkuoCPI1A8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=XJbM30TZ2y6Pq1o80It3OrTjWZTXiL9UQoXrURFyVA7bRuq4+P4NO6IA9LmHHOTD4KPDZoSraQRKKXHUOeNQXK+DncOVi+pple0jm0/1fbArsK0oyvwKRBKQ4dtlMrd6YM65iUXxxG1AVNx51KGYHbXnRB7ccr/+KY69wocrg3I= Received: by 10.65.233.16 with SMTP id k16mr15224495qbr.1189621072870; Wed, 12 Sep 2007 11:17:52 -0700 (PDT) Received: by 10.65.160.20 with HTTP; Wed, 12 Sep 2007 11:17:52 -0700 (PDT) Message-ID: Date: Wed, 12 Sep 2007 14:17:52 -0400 From: "Anne Thomas Manes" To: axis-user@ws.apache.org Subject: Re: com.ctc.wstx.exc.WstxParsingException exception when calling web service in Aqualogic 2.6 In-Reply-To: <1bb11ad00709121003rfcc38cbnfd78f65eb99b1dd6@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1bb11ad00709121003rfcc38cbnfd78f65eb99b1dd6@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org I don't know if this is your problem, but the WSDL you posted isn't valid. You have some extra spaces in some of your namespace declarations: xmlns:s0="http://schemas.xmlsoap.org/wsdl/ " should be xmlns:s0="http://schemas.xmlsoap.org/wsdl/" and xmlns:alsb=" http://www.alsb.com" should be xmlns:alsb="http://www.alsb.com" and xmlns:xs="http://www.w3.org/2001/XMLSchema " should be xmlns:xs="http://www.w3.org/2001/XMLSchema" (Any character within the quotes of a namespace is significant, including spaces.) Anne On 9/12/07, Magnus Lassi wrote: > Hi, I am having problem calling a web service in ALSB with Axis2 1.3. The > error I get is "org.apache.axis2.AxisFault: > com.ctc.wstx.exc.WstxParsingException: Expected a text > token, got START_ELEMENT", the stack trace is below. I couldn't find > anything when I searched the archives, have anyone else had this problem in > the past? > > org.apache.axis2.AxisFault: > com.ctc.wstx.exc.WstxParsingException: Expected a text > token, got START_ELEMENT. > at [row,col {unknown-source}]: [2,224] > at org.apache.axis2.AxisFault.makeFault(AxisFault.java > :417) > at > com.alsb.www.CalculateTaxServiceStub.fromOM(CalculateTaxServiceStub.java:296) > at > com.alsb.www.CalculateTaxServiceStub.calculateTax(CalculateTaxServiceStub.java:146) > at com.sample.TaxServiceClient.main > (TaxServiceClient.java:22) > Caused by: > org.apache.axiom.om.impl.exception.OMStreamingException: > com.ctc.wstx.exc.WstxParsingException: Expected a text > token, got START_ELEMENT. > at [row,col {unknown-source}]: [2,224] > at > org.apache.axiom.om.impl.llom.OMStAXWrapper.getElementText(OMStAXWrapper.java:847) > at > com.alsb.www.CalculateTaxServiceStub$CalculateTaxResponse$Factory.parse(CalculateTaxServiceStub.java:698) > at com.alsb.www.CalculateTaxServiceStub.fromOM > (CalculateTaxServiceStub.java:293) > ... 2 more > Caused by: com.ctc.wstx.exc.WstxParsingException: Expected > a text token, got START_ELEMENT. > at [row,col {unknown-source}]: [2,224] > at com.ctc.wstx.sr.StreamScanner.constructWfcException > (StreamScanner.java:605) > at > com.ctc.wstx.sr.StreamScanner.throwParseError(StreamScanner.java:461) > at > com.ctc.wstx.sr.BasicStreamReader.getElementText(BasicStreamReader.java:677) > at > org.apache.axiom.om.impl.llom.OMStAXWrapper.getElementText > (OMStAXWrapper.java:845) > ... 4 more > > > > The WSDL is pretty simple (a sample from the book "Definitive Guide to SOA - > BEA ALSB") > > > name="AdvancedMessageFlowServiceDefinitions" > targetNamespace="http://www.alsb.com" > xmlns:s0="http://schemas.xmlsoap.org/wsdl/ " > xmlns:s1="http://www.alsb.com" > xmlns:s2="http://schemas.xmlsoap.org/wsdl/soap/"> > > elementFormDefault="qualified" targetNamespace="http://www.alsb.com" > xmlns:alsb=" http://www.alsb.com" > xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" > xmlns:xs="http://www.w3.org/2001/XMLSchema "> > > > > > > > > > > > > > > > > > > > name="parameters"/> > > > name="parameters"/> > > > > > > > > > > > > > > > > > > > > > name="EJBTaxSoapPort"> > > > > > > > I generate the proxy client code with these options: > wsdl2java -o C:\Temp\Axis -s -p com.alsb.www -uri C:\EJBTaxProxy.xml > > My client code looks like this: > > try { > CalculateTaxServiceStub stub = new > CalculateTaxServiceStub(); > double amount = 25; > > CalculateTaxRequest request = new CalculateTaxRequest(); > request.setTaxableAmount(amount); > > CalculateTaxResponse response = stub.calculateTax(request); > > if(response != null) { > System.out.println(response.getResult()); > } > > } > > catch (AxisFault e) { > e.printStackTrace(); > } catch (RemoteException e) { > e.printStackTrace(); > } > > I get the exception when I call stub.calculateTax. Does anyone have any > ideas what I should look for to resolve the issue? > > TIA, > Magnus > --------------------------------------------------------------------- To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-user-help@ws.apache.org