axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "sumedha rubasinghe" <sumedh...@gmail.com>
Subject Re: Running SAAJ problem
Date Tue, 19 Jun 2007 00:59:10 GMT
Hi joe,
I tried to regenerate what you have explained. But it is working for me.
And I could not find anything wrong in you code either. :-)

Could you tell me the version of Axis2 your using? (I am working on trunk).

At the same time, If you have a source distribution, following test case
contains several examples of using SAAJ.
modules/saaj/test/org/apache/axis2/saaj/integration/IntegrationTest.java
I have also attached the latest version of the class.

Thank you.
/sumedha


On 6/18/07, Joe Nathan <jowen4077@yahoo.com> wrote:
>
>
> Thanks for the reply.
>
> My WEB-INF/services.xml is like this;
> ------------------------------------------------
> <service name="SoapService" scope="application">
>   <description>RME Soap Service</description>
> <messageReceivers>
>   <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-only"
> class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver" />
>   <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out"
> class="org.apache.axis2.rpc.receivers.RPCMessageReceiver" />
>   </messageReceivers>
>   <schema schemaNamespace="http://localhost/axis2/services/SoapService?xsd
> "
> />
>   <parameter name="ServiceClass">SoapService</parameter>
>   </service>
> ------------------------------------------------------------------------
>
> Relevant part of wsdl query with
>   "http://localhost/axis2/services/SoapService?wsdl"
> is like this;
> ------------------------------------------------------------------------
> <wsdl:documentation>SoapService</wsdl:documentation>
> - <wsdl:types>
> - <xs:schema xmlns:ns="http://localhost/axis2/services/SoapService?xsd"
> attributeFormDefault="qualified" elementFormDefault="qualified"
> targetNamespace="http://localhost/axis2/services/SoapService?xsd">
> - <xs:element name="mymethod">
> - <xs:complexType>
>
>
> ----------------------------------------------------------------------------
>
> The client SAAJ is;
>
> ========================================================
> QName bodyName = new QName("http://localhost/axis2/services/SoapService",
> "mymethod", "m");
> SOAPBodyElement bodyElement = body.addBodyElement(bodyName);
>
> QName name = new QName("vinput");
> SOAPElement symbol = bodyElement.addChildElement(name);
> symbol.addTextNode("12667");
>
> URL endpoint = new
> URL(" http://localhost/axis2/services/SoapService/mymethod");
> SOAPMessage sresponse = connection.call(message, endpoint);
> connection.close();
> =====================================================
>
> I build an .aar file and place it to WEB-INF/services of Axis2 inflated
> directory. It works from browser URL queries, not from client programs!
>
> Thanks in advance!
>
>
>
>
>
>
> --
> View this message in context:
> http://www.nabble.com/Running-SAAJ-problem-tf3937707.html#a11170506
> Sent from the Axis - Dev mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-dev-help@ws.apache.org
>
>

Mime
View raw message