Hi,
    I don't use axis server often, but if possible can you use the math
example instead of Calculator? (it has all the same operations but a
different name) The math example also has a client which works and can
serve as an example (perhaps Calculator was moved to math, and wasn't
deleted, i don't know)...
     BTW, couldn't find math.wsdl to use with soap UI so I created it from
Calculator wsdl... I tried it and it worked but the sample seems to have
some problems if the xml has end of lines inside (perhaps a bug?)
      Anyways if you create a client from math.wsdl without end of lines it
should work.

Regards



On Thu, Apr 25, 2013 at 4:08 AM, kanak kumari <[email protected]> wrote:

> Dear List,
> >
> > I'm completely new to axis2c and I've just downloaded and unpacked
> > axis2c 1.6 for Windows (binary release).
> >
> > I've followed the installation instructions and have successfully
> > started axis2_http_server.
> >
> > Trying to access the Calculator service's WSDL works fine (e.g. from
> > Visual Studio 2008) via
> > http://localhost:9090/axis2/services/Calculator?wsdl, but any call to
> > the service's add method returns "invalid XML in request" as well as the
> > same text is shown in the console window where axis2_http_server is
> > running.
> >
> > I've also tried soapUI. The request shown is:
> >
> > <soapenv:Envelope
> > xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
> > xmlns:typ="http://ws.apache.org/axis2/services/Calculator/types";>
> >   <soapenv:Header/>
> >   <soapenv:Body>
> >      <typ:add>
> >         <param_1>1.0</param_1>
> >         <param_2>1.0</param_2>
> >      </typ:add>
> >   </soapenv:Body>
> > </soapenv:Envelope>
> >
> > The response is
> >
> > <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/
> > ">
> >   <soapenv:Body>
> >      <soapenv:Fault>
> >         <faultcode>soapenv:Sender</faultcode>
> >         <faultstring>Invalid XML format in request</faultstring>
> >      </soapenv:Fault>
> >   </soapenv:Body>
> > </soapenv:Envelope>
> >
> > The problem is issued in in calc.c (function axis2_calc_add()), where
> >
> >    seq_node = axiom_node_get_first_child(complex_node, env);
> >
> > returns NULL.
>
> I would be happy for some hints on how to solve the problem.
>
>


-- 
-- 
Mantaut Alex
Intraway Corp.

+54 (11) 6040-4000
MSN: [email protected]

Visit our website at http://www.intraway.com
Proud to be an ISO 9001:2008 certified company
<!---->
<!--Licensed to the Apache Software Foundation (ASF) under one or more-->
<!--contributor license agreements.  See the NOTICE file distributed with-->
<!--this work for additional information regarding copyright ownership.-->
<!--The ASF licenses this file to You under the Apache License, Version 2.0-->
<!--(the "License"); you may not use this file except in compliance with-->
<!--the License.  You may obtain a copy of the License at-->
<!---->
<!--http://www.apache.org/licenses/LICENSE-2.0-->
<!---->
<!--Unless required by applicable law or agreed to in writing, software-->
<!--distributed under the License is distributed on an "AS IS" BASIS,-->
<!--WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.-->
<!--See the License for the specific language governing permissions and-->
<!--limitations under the License.-->
<!---->
<wsdl:definitions targetNamespace="http://ws.apache.org/axis2/services/math"; xmlns:impl="http://ws.apache.org/axis2/services/math"; xmlns:type="http://ws.apache.org/axis2/services/math/types"; xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
   <wsdl:types>
      <schema targetNamespace="http://ws.apache.org/axis2/services/math/types"; xmlns="http://www.w3.org/2001/XMLSchema";>
         <element name="add">
            <complexType>
               <sequence>
                  <element name="param_1" type="xsd:int"/>
                  <element name="param_2" type="xsd:int"/>
               </sequence>
            </complexType>
         </element>
         <element name="addResponse">
            <complexType>
               <sequence>
                  <element name="result" type="xsd:int"/>
               </sequence>
            </complexType>
         </element>
         <element name="sub">
            <complexType>
               <sequence>
                  <element name="param_1" type="xsd:int"/>
                  <element name="param_2" type="xsd:int"/>
               </sequence>
            </complexType>
         </element>
         <element name="subResponse">
            <complexType>
               <sequence>
                  <element name="result" type="xsd:int"/>
               </sequence>
            </complexType>
         </element>
         <element name="mul">
            <complexType>
               <sequence>
                  <element name="param_1" type="xsd:int"/>
                  <element name="param_2" type="xsd:int"/>
               </sequence>
            </complexType>
         </element>
         <element name="mulResponse">
            <complexType>
               <sequence>
                  <element name="result" type="xsd:int"/>
               </sequence>
            </complexType>
         </element>
         <element name="div">
            <complexType>
               <sequence>
                  <element name="param_1" type="xsd:int"/>
                  <element name="param_2" type="xsd:int"/>
               </sequence>
            </complexType>
         </element>
         <element name="divResponse">
            <complexType>
               <sequence>
                  <element name="result" type="xsd:int"/>
               </sequence>
            </complexType>
         </element>
      </schema>
   </wsdl:types>
   <wsdl:message name="addResponse">
      <wsdl:part element="type:addResponse" name="parameters"/>
   </wsdl:message>
   <wsdl:message name="addRequest">
      <wsdl:part element="type:add" name="parameters"/>
   </wsdl:message>
   <wsdl:message name="subResponse">
      <wsdl:part element="type:subResponse" name="parameters"/>
   </wsdl:message>
   <wsdl:message name="subRequest">
      <wsdl:part element="type:sub" name="parameters"/>
   </wsdl:message>
   <wsdl:message name="divResponse">
      <wsdl:part element="type:divResponse" name="parameters"/>
   </wsdl:message>
   <wsdl:message name="divRequest">
      <wsdl:part element="type:div" name="parameters"/>
   </wsdl:message>
   <wsdl:message name="mulResponse">
      <wsdl:part element="type:mulResponse" name="parameters"/>
   </wsdl:message>
   <wsdl:message name="mulRequest">
      <wsdl:part element="type:mul" name="parameters"/>
   </wsdl:message>
   <wsdl:portType name="mathPortType">
      <wsdl:operation name="add">
         <wsdl:input message="impl:addRequest" name="addRequest"/>
         <wsdl:output message="impl:addResponse" name="addResponse"/>
      </wsdl:operation>
      <wsdl:operation name="sub">
         <wsdl:input message="impl:subRequest" name="subRequest"/>
         <wsdl:output message="impl:subResponse" name="subResponse"/>
      </wsdl:operation>
      <wsdl:operation name="mul">
         <wsdl:input message="impl:mulRequest" name="mulRequest"/>
         <wsdl:output message="impl:mulResponse" name="mulResponse"/>
      </wsdl:operation>
      <wsdl:operation name="div">
         <wsdl:input message="impl:divRequest" name="divRequest"/>
         <wsdl:output message="impl:divResponse" name="divResponse"/>
      </wsdl:operation>
   </wsdl:portType>
   <wsdl:binding name="mathSoapBinding" type="impl:mathPortType">
      <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
      <wsdl:operation name="add">
         <soap:operation soapAction="math#add"/>
         <wsdl:input name="addRequest">
            <soap:body use="literal"/>
         </wsdl:input>
         <wsdl:output name="addResponse">
            <soap:body use="literal"/>
         </wsdl:output>
      </wsdl:operation>
      <wsdl:operation name="sub">
         <soap:operation soapAction="math#sub"/>
         <wsdl:input name="subRequest">
            <soap:body use="literal"/>
         </wsdl:input>
         <wsdl:output name="subResponse">
            <soap:body use="literal"/>
         </wsdl:output>
      </wsdl:operation>
      <wsdl:operation name="mul">
         <soap:operation soapAction="math#mul"/>
         <wsdl:input name="mulRequest">
            <soap:body use="literal"/>
         </wsdl:input>
         <wsdl:output name="mulResponse">
            <soap:body use="literal"/>
         </wsdl:output>
      </wsdl:operation>
      <wsdl:operation name="div">
         <soap:operation soapAction="math#div"/>
         <wsdl:input name="divRequest">
            <soap:body use="literal"/>
         </wsdl:input>
         <wsdl:output name="divResponse">
            <soap:body use="literal"/>
         </wsdl:output>
      </wsdl:operation>
   </wsdl:binding>
   <wsdl:service name="math">
      <wsdl:port binding="impl:mathSoapBinding" name="mathSOAPport_http">
         <soap:address location="http://localhost:9090/axis2/services/math"/>
      </wsdl:port>
   </wsdl:service>
</wsdl:definitions>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to