axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sagar Yerunkar <sagar.yerun...@lntinfotech.com>
Subject Re: [AXIS2] - Engaging addressing module on client
Date Tue, 27 Mar 2007 12:55:50 GMT
Hello,

I have further noticed that if i only include the addressing .mar file in 
the classpath (without changing any code), i get the exception 

org.apache.axis2.AxisFault: A required header representing a Message 
Addressing 
Property is not present 
        at 
org.apache.axis2.util.CallbackReceiver.receive(CallbackReceiver.java:65) 
        at 
org.apache.axis2.engine.AxisEngine.receiveFault(AxisEngine.java:610) 
        at 
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:326)


        at 
org.apache.axis2.transport.http.HTTPWorker.service(HTTPWorker.java:230) 
        at ...

My soap reqest is being sent but i get an Error in the reply

Here is my soap request caught using TCP Monitor:
POST /axis2/services/OwnService HTTP/1.1
SOAPAction: "urn:anonOutInOp"
User-Agent: Axis2
Host: 127.0.0.1:9000
Transfer-Encoding: chunked
Content-Type: text/xml; charset=UTF-8

27e
<?xml version='1.0' encoding='UTF-8'?>
   <soapenv:Envelope xmlns:wsa="http://www.w3.org/2005/08/addressing" 
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
      <soapenv:Header>
         <wsa:To>http://localhost:9000/axis2/services/OwnService</wsa:To>
         <wsa:ReplyTo>
 <wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address>
         </wsa:ReplyTo>
 <wsa:MessageID>urn:uuid:9B8FDACFBCA1263A121174999707376</wsa:MessageID>
      </soapenv:Header>
      <soapenv:Body>
         <example1:tryEcho xmlns:example1="http://example1.org/example1" 
sleepTime="4000" code="0">
            <example1:Text>Payload echo string</example1:Text>
         </example1:tryEcho>
      </soapenv:Body>
   </soapenv:Envelope>0


Here is my soap response :
HTTP/1.1 500 Internal Server Error
Server: Apache-Coyote/1.1
Content-Type: text/xml;charset=UTF-8
Transfer-Encoding: chunked
Date: Tue, 27 Mar 2007 12:48:28 GMT
Connection: close

3cc
<?xml version='1.0' encoding='UTF-8'?>
   <soapenv:Envelope xmlns:wsa="http://www.w3.org/2005/08/addressing" 
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
      <soapenv:Header>
         <wsa:To>http://www.w3.org/2005/08/addressing/anonymous</wsa:To>
         <wsa:ReplyTo>
 <wsa:Address>http://www.w3.org/2005/08/addressing/none</wsa:Address>
         </wsa:ReplyTo>
 <wsa:MessageID>urn:uuid:AF393873831A7C3EF31174999708410</wsa:MessageID>
 <wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action>
         <wsa:RelatesTo 
wsa:RelationshipType="http://www.w3.org/2005/08/addressing/reply">urn:uuid:9B8FDACFBCA1263A121174999707376</wsa:RelatesTo>
         <wsa:FaultDetail>
            <wsa:ProblemHeaderQName>wsa:Action</wsa:ProblemHeaderQName>
         </wsa:FaultDetail>
      </soapenv:Header>
      <soapenv:Body>
         <soapenv:Fault>
            <faultcode>wsa:MessageAddressingHeaderRequired</faultcode>
            <faultstring>A required header representing a Message 
Addressing Property is not present</faultstring>
            <detail />
         </soapenv:Fault>
      </soapenv:Body>
   </soapenv:Envelope>0

I have engaged the addressing module on the server side.

Kindly help.


Regards,

Sagar M. Yerunkar





"Thilina Gunarathne" <csethil@gmail.com> 
03/25/2007 10:13 AM
Please respond to
axis-user@ws.apache.org


To
axis-user@ws.apache.org
cc

Subject
Re: [AXIS2] - Engaging addressing module on client






> How do i specify a .mar file in the classpath? Eclipse allows me to add 
no
> files other than jars and zips to the classpath.
Yes.. If you are using Eclipse your choices are limited to the second 
option...
 ConfigurationContext configContext =
ConfigurationContextFactory.createConfigurationContextFromFileSystem("repository","path
to axis2.xml or null");
  ServiceClient sender = new ServiceClient(configContext, null);

~Thilina

>
> Please can someone guide me?
>
> Regards,
>
>  Sagar M. Yerunkar
>
> ______________________________________________________________________
>


-- 
Thilina Gunarathne  -  http://www.wso2.com - http://thilinag.blogspot.com

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


______________________________________________________________________



______________________________________________________________________
Mime
View raw message