axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anne Thomas Manes" <atma...@gmail.com>
Subject Re: XML Attribute Value
Date Mon, 17 Apr 2006 13:57:50 GMT
You'll find the process much easier if you start by defining your WSDL --
then generate your code and WSDD from the WSDL.

Anne

On 4/17/06, Anne Thomas Manes <atmanes@gmail.com> wrote:
>
> Axis doesn't provide a default typemapping for this scenario, so you will
> need to define a custom typemapping.
>
>
> On 4/17/06, Recep Ayaz < recepayaz@gmail.com> wrote:
> >
> > Hi
> > Thanks for answer Anne.
> > I switch to documental/literal  then
> > system generate error and written at tomcat screen that :
> >
> > - Please register a typemapping/beanmapping for 'WSApp.Beans.TestClass'
> >
> > colud you give a more information ?
> >
> > thanks.
> >
> >
> >
> >
> >
> >
> > 2006/4/17, Anne Thomas Manes <atmanes@gmail.com >:
> >
> > > Attributes in your parameter elements are not permitted when using
> > > rpc/encoed. I suggest you switch to document/literal.
> > >
> > > Anne
> > >
> > >
> > > On 4/17/06, Recep Ayaz <recepayaz@gmail.com> wrote:
> > > >
> > > >  Hello
> > > >
> > > > I am using axis 1.3 and tomcat 4.1. I am writting some java classes
> > > > for my web service (server-side).
> > > > But i have some problems with Xml attribute fields (this is my third
> > > > email so i am apologize for annoyance.).
> > > >
> > > > my question is how can get xml element attribute value ? Which
> > > > parameters and definitions should be modified or made in wsdd file or
java
> > > > class?
> > > >
> > > >
> > > > also i am send,ng my java class, wsdd file and SOAP request xml
> > > >
> > > > java.Class:
> > > >
> > > > package WSApp.Beans;
> > > > public class TestWS  {
> > > >   public TestWS() {
> > > >   }
> > > >   public String myWSMethod(String s, int xmlAttributeParameter ) {
> > > > // doing something
> > > > //..................     ....
> > > >
> > > >     return  "I got "s + " OK ";
> > > >   }
> > > > }
> > > >
> > > > ---------------------------------------------------------------------------------------
> > > > My wsdd file :
> > > >
> > > > <deployment xmlns="http://xml.apache.org/axis/wsdd/" xmlns:java="
> > > > http://xml.apache.org/axis/wsdd/providers/java" xmlns:TestWS="
> > > > http://www.axis.com/TestWS" xmlns:reg="
> > > > http://www.soapinterop.org/Registry">
> > > >     <service name="TestWS" provider="java:RPC">
> > > >         <namespace>http://www.axis.com/TestWS</namespace>
> > > >         <parameter name="className" value="WSApp.Beans.TestWS"/>
> > > >         <parameter name="allowedMethods" value="myWSMethod"/>
> > > >      <requestFlow>
> > > >      <handler type="soapmonitor"/>
> > > >      </requestFlow>
> > > >      <responseFlow>
> > > >        <handler type="soapmonitor"/>
> > > >     </responseFlow>
> > > >     </service>
> > > > </deployment>
> > > >
> > > > ------------------------------------------------------------------------------------
> > > >
> > > > my SOAP request xml message
> > > >
> > > > <SOAP-ENV:Envelope xmlns:SOAP-ENV="
> > > > http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="
> > > > http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="
> > > > http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="
> > > > http://www.w3.org/2001/XMLSchema" xmlns:m0="
> > > > http://schemas.xmlsoap.org/soap/encoding/">
> > > >     <SOAP-ENV:Body>
> > > >         <myWSMethod>
> > > >             <s xmlAttributeParameter="12">Jhon </s>
> > > >         </myWSMethod>
> > > >     </SOAP-ENV:Body>
> > > > </SOAP-ENV:Envelope>
> > > >
> > > >
> > > > ---------------------------------------------------------------------------------------------------------------------
> > > >
> > > >
> > > >
> > > > my problem is how can i get value  of "xmlAttributeParameter" ?
> > > > please someone help me  i am really stuck about this.
> > > >
> > > > Thanks.
> > > >
> > >
> > >
> >
>

Mime
View raw message