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

2007-03-28 Thread Sagar Yerunkar
sender.cleanup();   // return resources .finalize would do 
more but is protected
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (XMLStreamException e) {
e.printStackTrace();
} catch (FactoryConfigurationError e) {
e.printStackTrace();
} catch (java.lang.Exception e) {
e.printStackTrace();
}
}
-Ursprüngliche Nachricht-
Von: Stadelmann Josef [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 28. März 2007 06:50
An: axis-user@ws.apache.org
Betreff: AW: AW: [AXIS2] - Engaging addressing module on client

Hello Sagar,
 
Is the addressing module deployed and ENGAGED both on client and 
server?
 
Josef
-Ursprüngliche Nachricht-
Von: Sagar Yerunkar [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 28. März 2007 06:24
An: axis-user@ws.apache.org
Betreff: Re: AW: [AXIS2] - Engaging addressing module on client


Hello, 

I checked my services.xml. It already has the actionMapping tag. However, 
the wsa:Action header  is not being added to the soap message. 

serviceGroup 
service name=OwnService 
description 
Own WS, two methods: tryPing and tryEcho 
/description 
parameter name=ServiceClass 
locked=falseuserguide.OwnService/parameter 
operation name=tryEcho 
messageReceiver 
class=org.apache.axis2.receivers.RawXMLINOutMessageReceiver/\ 
actionMappingurn:tryEcho/actionMapping 
/operation 
 operation name=tryPing 
messageReceiver 
class=org.apache.axis2.receivers.RawXMLINOnlyMessageReceiver/ 
actionMappingurn:tryPing/actionMapping 
/operation 
 /service 
 /serviceGroup 

Regards,

Sagar M. Yerunkar



Stadelmann Josef [EMAIL PROTECTED] 
03/27/2007 08:28 PM 

Please respond to
axis-user@ws.apache.org



To
axis-user@ws.apache.org 
cc

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








Hi Sagar 
  
in your reply message you find 
 wsa:Actionhttp://www.w3.org/2005/08/addressing/fault/wsa:Action 
Axis2 intends to say in conjuntion with 
 wsa:FaultDetail 
   wsa:ProblemHeaderQNamewsa:Action/wsa:ProblemHeaderQName 
/wsa:FaultDetail 
and 
 soapenv:Fault 
   faultcodewsa:MessageAddressingHeaderRequired/faultcode 
   faultstringA required header representing a Message 
Addressing Property is not present/faultstring 
   detail / 
/soapenv:Fault 
that you did not send a wsa:Action header 
  
Try adding an wsa:Action Header as shown below in the request message. 
This header is missing, and that is what 
axis2 intends to say you. 
  
Check for ActionMapping in your service.xml, add it if not there, then you 
migth have something like 
.. 
- operation name=echo 
  messageReceiver class=
org.apache.axis2.receivers.RawXMLINOutMessageReceiver / 
  actionMappingurn:echo/actionMapping 
  /operation 
. 
So yopur actionMaping wanted has to go into a SoapHeader 
wsa:Actionurn:echo/wsa:Action 
  
Regards 
Josef   
 
 
  
 -Ursprüngliche Nachricht-
Von: Sagar Yerunkar [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 27. März 2007 14:56
An: axis-user@ws.apache.org
Betreff: Re: [AXIS2] - Engaging addressing module on client


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:Tohttp://localhost:9000/axis2/services/OwnService/wsa:To 
wsa:ReplyTo 
 wsa:Addresshttp://www.w3.org/2005/08/addressing/anonymous/wsa:Address 

/wsa:ReplyTo 
 wsa:MessageIDurn:uuid:9B8FDACFBCA1263A121174999707376/wsa:MessageID 
  wsa:Actionurn:echo/wsa:Action !!! depends on what you 
have in service.xml as ActionMapping for the method wanted, I asume 
urn:echo   
  /soapenv:Header 
 soapenv:Body 
example1:tryEcho xmlns:example1=http://example1.org/example1; 
sleepTime=4000 code=0 
   example1:TextPayload echo string/example1:Text 
/example1:tryEcho 
 /soapenv:Body

Re: [AXIS2] - Engaging addressing module on client

2007-03-27 Thread Sagar Yerunkar
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:Tohttp://localhost:9000/axis2/services/OwnService/wsa:To
 wsa:ReplyTo
 wsa:Addresshttp://www.w3.org/2005/08/addressing/anonymous/wsa:Address
 /wsa:ReplyTo
 wsa:MessageIDurn:uuid:9B8FDACFBCA1263A121174999707376/wsa:MessageID
  /soapenv:Header
  soapenv:Body
 example1:tryEcho xmlns:example1=http://example1.org/example1; 
sleepTime=4000 code=0
example1:TextPayload echo string/example1:Text
 /example1:tryEcho
  /soapenv:Body
   /soapenv:Envelope0


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:Tohttp://www.w3.org/2005/08/addressing/anonymous/wsa:To
 wsa:ReplyTo
 wsa:Addresshttp://www.w3.org/2005/08/addressing/none/wsa:Address
 /wsa:ReplyTo
 wsa:MessageIDurn:uuid:AF393873831A7C3EF31174999708410/wsa:MessageID
 wsa:Actionhttp://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:ProblemHeaderQNamewsa:Action/wsa:ProblemHeaderQName
 /wsa:FaultDetail
  /soapenv:Header
  soapenv:Body
 soapenv:Fault
faultcodewsa:MessageAddressingHeaderRequired/faultcode
faultstringA required header representing a Message 
Addressing Property is not present/faultstring
detail /
 /soapenv:Fault
  /soapenv:Body
   /soapenv:Envelope0

I have engaged the addressing module on the server side.

Kindly help.


Regards,

Sagar M. Yerunkar





Thilina Gunarathne [EMAIL PROTECTED] 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


__



__

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

2007-03-27 Thread Sagar Yerunkar
Hello, 

I checked my services.xml. It already has the actionMapping tag. However, 
the wsa:Action header  is not being added to the soap message. 

serviceGroup
service name=OwnService
description
Own WS, two methods: tryPing and tryEcho
/description
parameter name=ServiceClass 
locked=falseuserguide.OwnService/parameter
operation name=tryEcho
messageReceiver 
class=org.apache.axis2.receivers.RawXMLINOutMessageReceiver/\
actionMappingurn:tryEcho/actionMapping 
/operation
 operation name=tryPing
messageReceiver 
class=org.apache.axis2.receivers.RawXMLINOnlyMessageReceiver/
actionMappingurn:tryPing/actionMapping 
/operation
 /service
 /serviceGroup

Regards,

Sagar M. Yerunkar




Stadelmann Josef [EMAIL PROTECTED] 
03/27/2007 08:28 PM
Please respond to
axis-user@ws.apache.org


To
axis-user@ws.apache.org
cc

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






Hi Sagar
 
in your reply message you find 
 wsa:Actionhttp://www.w3.org/2005/08/addressing/fault/wsa:Action 
Axis2 intends to say in conjuntion with
 wsa:FaultDetail 
wsa:ProblemHeaderQNamewsa:Action/wsa:ProblemHeaderQName 
 /wsa:FaultDetail 
and
 soapenv:Fault 
faultcodewsa:MessageAddressingHeaderRequired/faultcode 
faultstringA required header representing a Message 
Addressing Property is not present/faultstring 
detail / 
 /soapenv:Fault 
that you did not send a wsa:Action header
 
Try adding an wsa:Action Header as shown below in the request message. 
This header is missing, and that is what 
axis2 intends to say you. 
 
Check for ActionMapping in your service.xml, add it if not there, then you 
migth have something like
..
- operation name=echo
  messageReceiver class=
org.apache.axis2.receivers.RawXMLINOutMessageReceiver / 
  actionMappingurn:echo/actionMapping 
  /operation
.
So yopur actionMaping wanted has to go into a SoapHeader 
wsa:Actionurn:echo/wsa:Action
 
Regards
Josef 
 
 
 
 -Ursprüngliche Nachricht-
Von: Sagar Yerunkar [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 27. März 2007 14:56
An: axis-user@ws.apache.org
Betreff: Re: [AXIS2] - Engaging addressing module on client


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:Tohttp://localhost:9000/axis2/services/OwnService/wsa:To 
 wsa:ReplyTo 
 wsa:Addresshttp://www.w3.org/2005/08/addressing/anonymous/wsa:Address 

 /wsa:ReplyTo 
 wsa:MessageIDurn:uuid:9B8FDACFBCA1263A121174999707376/wsa:MessageID 
   wsa:Actionurn:echo/wsa:Action !!! depends on what you 
have in service.xml as ActionMapping for the method wanted, I asume 
urn:echo 
  /soapenv:Header 
  soapenv:Body 
 example1:tryEcho xmlns:example1=http://example1.org/example1; 
sleepTime=4000 code=0 
example1:TextPayload echo string/example1:Text 
 /example1:tryEcho 
  /soapenv:Body 
   /soapenv:Envelope0 


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:Tohttp://www.w3.org/2005/08/addressing/anonymous/wsa:To 
 wsa:ReplyTo 
 wsa:Addresshttp://www.w3.org/2005/08/addressing/none/wsa:Address 
 /wsa:ReplyTo 
 wsa:MessageIDurn:uuid:AF393873831A7C3EF31174999708410/wsa:MessageID 
 wsa:Actionhttp://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

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

2007-03-27 Thread Sagar Yerunkar
Hello,

I have engaged the addressing module on the cliente as well as the 
service.

For the service, i checked the admin page and confirmed that the 
addressing module has been engaged.


On the client side, i have included the addressing .mar file in my 
classpath. Hence i got this in my output

Mar 28, 2007 10:39:41 AM org.apache.axis2.deployment.DeploymentEngine 
doDeploy
INFO: Deploying module : addressing-1.1.1

 and the following code did not throw any exceptions

try {
serviceClient.engageModule(new 
QName(addressing));
} catch (AxisFault e) {
e.printStackTrace();
}



Regards,

Sagar M. Yerunkar




Stadelmann Josef [EMAIL PROTECTED] 
03/28/2007 10:20 AM
Please respond to
axis-user@ws.apache.org


To
axis-user@ws.apache.org
cc

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






Hello Sagar,
 
Is the addressing module deployed and ENGAGED both on client and 
server?
 
Josef
-Ursprüngliche Nachricht-
Von: Sagar Yerunkar [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 28. März 2007 06:24
An: axis-user@ws.apache.org
Betreff: Re: AW: [AXIS2] - Engaging addressing module on client


Hello, 

I checked my services.xml. It already has the actionMapping tag. However, 
the wsa:Action header  is not being added to the soap message. 

serviceGroup 
service name=OwnService 
description 
Own WS, two methods: tryPing and tryEcho 
/description 
parameter name=ServiceClass 
locked=falseuserguide.OwnService/parameter 
operation name=tryEcho 
messageReceiver 
class=org.apache.axis2.receivers.RawXMLINOutMessageReceiver/\ 
actionMappingurn:tryEcho/actionMapping 
/operation 
 operation name=tryPing 
messageReceiver 
class=org.apache.axis2.receivers.RawXMLINOnlyMessageReceiver/ 
actionMappingurn:tryPing/actionMapping 
/operation 
 /service 
 /serviceGroup 

Regards,

Sagar M. Yerunkar



Stadelmann Josef [EMAIL PROTECTED] 
03/27/2007 08:28 PM 

Please respond to
axis-user@ws.apache.org



To
axis-user@ws.apache.org 
cc

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








Hi Sagar 
  
in your reply message you find 
 wsa:Actionhttp://www.w3.org/2005/08/addressing/fault/wsa:Action 
Axis2 intends to say in conjuntion with 
 wsa:FaultDetail 
   wsa:ProblemHeaderQNamewsa:Action/wsa:ProblemHeaderQName 
/wsa:FaultDetail 
and 
 soapenv:Fault 
   faultcodewsa:MessageAddressingHeaderRequired/faultcode 
   faultstringA required header representing a Message 
Addressing Property is not present/faultstring 
   detail / 
/soapenv:Fault 
that you did not send a wsa:Action header 
  
Try adding an wsa:Action Header as shown below in the request message. 
This header is missing, and that is what 
axis2 intends to say you. 
  
Check for ActionMapping in your service.xml, add it if not there, then you 
migth have something like 
.. 
- operation name=echo 
  messageReceiver class=
org.apache.axis2.receivers.RawXMLINOutMessageReceiver / 
  actionMappingurn:echo/actionMapping 
  /operation 
. 
So yopur actionMaping wanted has to go into a SoapHeader 
wsa:Actionurn:echo/wsa:Action 
  
Regards 
Josef   
 
 
  
 -Ursprüngliche Nachricht-
Von: Sagar Yerunkar [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 27. März 2007 14:56
An: axis-user@ws.apache.org
Betreff: Re: [AXIS2] - Engaging addressing module on client


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:Tohttp://localhost:9000/axis2/services/OwnService/wsa:To 
wsa:ReplyTo 
 wsa:Addresshttp://www.w3.org/2005/08/addressing/anonymous/wsa:Address 

/wsa:ReplyTo 
 wsa:MessageIDurn:uuid:9B8FDACFBCA1263A121174999707376/wsa:MessageID 
  wsa:Actionurn:echo/wsa:Action !!! depends on what you 
have in service.xml

[AXIS2]Client side repository setup

2007-03-23 Thread Sagar Yerunkar
Hello,

I have a simple web service with has two functions - tryPing and tryEcho. 
This webservice has been written and consumed using Axis2's primary APIs.

I have successfully read the services synchronously as well as 
asynchronously using a single transport layer call. I then  changed the 
call to dual transport using 

options.setUseSeparateListener(true)

and deployed the addressing module on the client isde using 

ConfigurationContextFactory.createConfigurationContextFromFileSystem(axis2repo, 
axis2xml) 
where axis2repo is my axis2/repository folder and axis2xml points to 
axis2/conf/axis2.xml

I created the ServiceClient object using 
AxisService.createClientSideAxisService()

However, i get the following error shown below:

My console output on the client side is : 
Mar 23, 2007 3:15:50 PM org.apache.axis2.deployment.DeploymentEngine 
doDeploy
INFO: Deploying module : addressing-1.1.1
Mar 23, 2007 3:15:50 PM org.apache.axis2.deployment.DeploymentEngine 
doDeploy
INFO: Deploying module : soapmonitor-1.1.1
Mar 23, 2007 3:15:50 PM org.apache.axis2.deployment.DeploymentEngine 
doDeploy
INFO: Deploying Web service  version.aar
org.apache.axis2.AxisFault: Operation  anonOutonlyOp not found
at org.apache.axis2.client.ServiceClient.createClient(
ServiceClient.java:651)
at org.apache.axis2.client.ServiceClient.fireAndForget(
ServiceClient.java:486)
at org.apache.axis2.client.ServiceClient.fireAndForget(
ServiceClient.java:469)
at primary.AsyncSingleTransport.main(AsyncSingleTransport.java:216
)


Kindly help me resolve this error.

Regards,
Sagar M. Yerunkar


__