Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 60351 invoked from network); 6 Jun 2007 11:27:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Jun 2007 11:27:44 -0000 Received: (qmail 55617 invoked by uid 500); 6 Jun 2007 11:27:39 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 55592 invoked by uid 500); 6 Jun 2007 11:27:39 -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 55581 invoked by uid 99); 6 Jun 2007 11:27:39 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Jun 2007 04:27:39 -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 pzfreo@gmail.com designates 64.233.162.239 as permitted sender) Received: from [64.233.162.239] (HELO nz-out-0506.google.com) (64.233.162.239) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Jun 2007 04:27:34 -0700 Received: by nz-out-0506.google.com with SMTP id f1so99831nzc for ; Wed, 06 Jun 2007 04:27:13 -0700 (PDT) DKIM-Signature: a=rsa-sha1; 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; b=cri5w9/EF5LgE5KqGjCOV3ytRLm8/miF3tpwK3WRJkJFBp6bq2eKujLIqNKeNIKgrAMh/xtl2eWdTelRwbrdT4AXdSPOm2/hylroMSBqZv7dc4zVoiih4pXUlXlWKHslhVlvZ0KxpEJdix5qx8+csovNi94it+dmc/p3R0UlKTY= 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=Q1X+DudJdHWJYg/Khtc/GXMaEz/sJC2ylwLWl2LgXsZA4Q52H0b9rKv1lRN3afQ0fodZrFDnvxuqoBRLLtqIeafrPOXJgThh1znq7AJg+VTUggfU/yj3tE1xuL9gPMRevXXCqnMDapk44OXn0AcpPDlJRJg+rJrOSTzouq2FSCI= Received: by 10.143.166.20 with SMTP id t20mr18511wfo.1181129233426; Wed, 06 Jun 2007 04:27:13 -0700 (PDT) Received: by 10.143.39.15 with HTTP; Wed, 6 Jun 2007 04:27:13 -0700 (PDT) Message-ID: <88f5d710706060427s382afac7qc7e237808d6053f8@mail.gmail.com> Date: Wed, 6 Jun 2007 12:27:13 +0100 From: "Paul Fremantle" To: axis-user@ws.apache.org Subject: Re: How does Axis Server determine style and encoding? In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1181058705.9007.30.camel@pc22480-linux.ds.devon.gov.uk> <88f5d710706060333u410d5388mebe95ad053a46054@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org Typically SOAP servers use the following approaches to identify the service to call. This has nothing to do with the style/encoding issue. Its completely orthogonal. Basically you match on these things: 1) HTTP URL 2) SOAPAction Header in HTTP 3) If there is WS-Addressing headers, then look at the wsa:To and wsa:Action headers 4) The namespace of the first child element of the body tag. In Axis2 this is a process called dispatchers. I'm afraid I don't remember how it works in Axis1. Paul On 6/6/07, Adam Retter wrote: > > SoapUI looks very interesting and not a tool I had seen before, Thanks I will take a look at that. > > Basically my SOAP Server needs to know how to interrogate the incoming SOAP request to determine what function to execute. This is similar to Axis Server's JWS idea I guess. Does Axis Server just support document/literal or does it try and interogate the SOAP Request in some way to determine which JWS function to call? > > > > > -----Original Message----- > From: Paul Fremantle [mailto:pzfreo@gmail.com] > Sent: Wed 06/06/2007 11:33 > To: axis-user@ws.apache.org > Subject: Re: How does Axis Server determine style and encoding? > > Adam > > Firstly, you've done the right thing to work with doc/literal. This is > the predominant style. > > If you use Apache Axis2 it should support interop well as it was > designed around doc/lit as the main approach. > > The reason you are having trouble is that the style/encoding is > *mainly* an aspect of WSDL not an aspect of the actual message. The > fact is that SOAP is actually a very simple protocol. WSDL > unfortunately adds a lot of complexity that isn't always useful. > > Basically the style and encoding are really talking about how do you > map the abstract interface in WSDL (the porttype) into actual > messages. So its actually possible to write say a RPC/Encoded WSDL and > a doc/lit WSDL where the SOAP messages on the wire are *exactly the > same*. If this doesn't seem logical don't worry. Basically what > happened was that IBM and MS merged two different approaches and > didn't take long enough to really sort it out, so instead we got both > approaches plus subcombinations! > > There are some on-the-wire differences which are that sometimes > encoded messages have extra typing information in the SOAP message > (xsi:type attributes) and also, in some situations you can have > "graph" structures in encoded message. > > My suggestion is to use a tool like SOAPUI to play around: try some > different WSDLs and look at the resulting SOAP messages. It may be > that simply by offering your Axis1 clients a different WSDL you can > accomodate them without changing your server. > > Paul > > > > > > On 6/5/07, Adam Retter wrote: > > Hi, > > > > I have written a small SOAP Server for a very specific purpose, it was > > designed to support Document/literal style requests initially and this > > works well certainly with Apache SOAP and .NET. > > > > However, it does not seem to work nicely with Apache Axis clients and in > > the interests of interoperability I would like to now extend it to also > > support other styles and encodings. If I understand correctly there are > > 2 request styles - Document and RPC and 2 main encoding styles SOAP and > > literal. > > > > I would like to support 3 (I think) of these 4 types of requests - > > Document/literal (done), RPC/SOAP and RPC/literal, I think I am correct > > in saying that Document/SOAP is not really used? > > > > Anyways, I have glanced over the W3C specs and have done some Googling, > > but I am having a hard time finding concise rules on how to detect the > > request type of the incoming SOAP document - i.e. the style and > > encoding. > > > > I was hoping that someone could point me to where in the Axis Server > > code the style and encoding of the SOAP Request is determined or perhaps > > provide me with a concise set of rules on determining the SOAP request > > type? > > > > Thanks > > > > -- > > Adam Retter > > > > Principal Developer > > Devon Portal Project > > Room 310 > > County Hall > > Topsham Road > > Exeter > > EX2 4QD > > > > t: 01392 38 3683 > > f: 01392 38 2966 > > e: adam.retter@devon.gov.uk > > w: www.devonline.gov.uk > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org > > For additional commands, e-mail: axis-user-help@ws.apache.org > > > > > > > -- > Paul Fremantle > Co-Founder and VP of Technical Sales, WSO2 > OASIS WS-RX TC Co-chair > > blog: http://pzf.fremantle.org > paul@wso2.com > > "Oxygenating the Web Service Platform", www.wso2.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org > For additional commands, e-mail: axis-user-help@ws.apache.org > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org > For additional commands, e-mail: axis-user-help@ws.apache.org > > -- Paul Fremantle Co-Founder and VP of Technical Sales, WSO2 OASIS WS-RX TC Co-chair blog: http://pzf.fremantle.org paul@wso2.com "Oxygenating the Web Service Platform", www.wso2.com --------------------------------------------------------------------- To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-user-help@ws.apache.org