Return-Path: Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 1872 invoked by uid 500); 5 Mar 2003 20:12:14 -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: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 1840 invoked by uid 500); 5 Mar 2003 20:12:14 -0000 Delivered-To: apmail-xml-axis-user@xml.apache.org From: "Pete Clark" To: Subject: Help exposing this document service Date: Wed, 5 Mar 2003 15:11:37 -0500 Message-ID: <012d01c2e353$6dc6c8d0$6701a8c0@PETE> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_012E_01C2E329.84F0C0D0" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.3416 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Importance: Normal X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N This is a multi-part message in MIME format. ------=_NextPart_000_012E_01C2E329.84F0C0D0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Here's the EJB I want to expose as a web service (Using axis 1.0 with Jboss 3.2.0) public Document runQuery(DatabaseRequest lDatabaseRequest) { .. Code removed . Document lResults; .. Code removed return lResults; } DatabaseRequest is just a simple class with 4 public member variables. uri, username, password, query. The WSDL is generated just fine, generating a complex type with databaserequest's member variables. I can discover the wsdl fine with a soap client, no problems there. However when I try to run the service, the request document is constructed properly (watched the logs).. But I get this error: org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize. Here's my web-service.xml file (analogous to wsdd file) Any ideas how I should expose this service? It's supposed to return an XML document with nested elements... Pete ------=_NextPart_000_012E_01C2E329.84F0C0D0 Content-Type: text/html; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable

Here’s the EJB I want to expose as a web = service (Using axis 1.0 with Jboss 3.2.0)

 

  public Document runQuery(DatabaseRequest = lDatabaseRequest) {

 

…. Code removed = …

         =   

Document = lResults;

 

….  Code = removed

 

      =       return lResults;

  }

 

DatabaseRequest is just a simple class with 4 public = member variables… uri, username, password, query.  The WSDL is = generated just fine, generating a complex type with databaserequest’s member variables.   I can discover the wsdl fine with a soap client, = no problems there. 

 

However when I try to run the service, the request = document is constructed properly (watched the logs)…. But I get this = error:

org.xml.sax.SAXException: SimpleDeserializer = encountered a child element, which is NOT expected, in something it was trying to = deserialize.

 

Here’s my web-service.xml file (analogous to = wsdd file)

 

<?xml version=3D"1.0" = encoding=3D"UTF-8" ?>

  <deployment = xmlns=3D"http://xml.apache.org/axis/wsdd/"

  =           = targetNamespace=3D"http://net.jboss.org/database"

  =           = xmlns:database=3D"http://net.jboss.org/database"

  =           = xmlns:java=3D"http://xml.apache.org/axis/wsdd/providers/java"&g= t;

 

  <service name=3D"database" provider=3D"Handler" style=3D"document">  =           <!-- I’ve also tried  not having style=3D”document” in = there, same error! à

  =           <parameter name=3D"handlerClass" = value=3D"org.jboss.net.axis.server.EJBProvider" />

  =           <parameter name=3D"beanJndiName" value=3D"ejb/DatabaseService" = />

  =           <parameter name=3D"homeInterfaceName" = value=3D"DatabaseServiceHome" />

  =           <parameter name=3D"allowedMethods" value=3D"runQuery" /> =

  =           <requestFlow name=3D"DatabaseServiceRequest">

  =             &= nbsp;         <handler name=3D"TransactionRequestHandler" = type=3D"java:org.jboss.net.axis.server.TransactionRequestHandler&quo= t; />

  =           = </requestFlow>

  =           <responseFlow name=3D"DatabaseServiceResponse">

  =             &= nbsp;         <handler name=3D"SerialisationResponseHandler" = type=3D"java:org.jboss.net.axis.server.SerialisationResponseHandler&= quot; />

  =             &= nbsp;         <handler name=3D"TransactionResponseHandler" = type=3D"java:org.jboss.net.axis.server.TransactionResponseHandler&qu= ot; />

  =           = </responseFlow>

  </service>

</deployment>

 

Any ideas how I should expose this service?  = It’s supposed to return an XML document with nested = elements…..

 

Pete

 

------=_NextPart_000_012E_01C2E329.84F0C0D0--