axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Nathan <jowen4...@yahoo.com>
Subject Re: Running SAAJ problem
Date Mon, 18 Jun 2007 06:22:11 GMT

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