Maybe you have to add the WSAAction to the client?

 

Roshan Punnoose

Phone: 301-497-6039

________________________________

From: Sagar Yerunkar [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 26, 2007 2:06 AM
To: [email protected]
Subject: Re: [AXIS2] - Engaging addressing module on client

 


Hello, 

I tried to implement both the solutions. I was able to engage the
addressing module in both ways, but i ran into exceptions in both of
them at a later stage. 

1. I did not use eclipse. I added the addressing-1.1.1.mar file manually
and i was successful in engaging the module. However i got the error - 
Mar 26, 2007 10:57:17 AM org.apache.axis2.deployment.DeploymentEngine
doDeploy 
INFO: Deploying module : addressing-1.1.1 
Mar 26, 2007 10:57:17 AM
org.apache.axis2.transport.http.server.DefaultConnectionListener run 
INFO: Listening on port 6060 
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.processHTTPPostReques
t(HTTPTransportUtils.java:326) 
        at
org.apache.axis2.transport.http.HTTPWorker.service(HTTPWorker.java:230) 
        at
org.apache.axis2.transport.http.server.DefaultHttpServiceProcessor.doSer
vice(DefaultHttpServiceProcessor.java:189) 
        at
org.apache.http.protocol.HttpService.handleRequest(HttpService.java:123)

        at
org.apache.axis2.transport.http.server.DefaultHttpServiceProcessor.run(D
efaultHttpServiceProcessor.java:261) 
        at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker
.runTask(ThreadPoolExecutor.java:665) 
        at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker
.run(ThreadPoolExecutor.java:690) 
        at java.lang.Thread.run(Thread.java:595) 


2. I used the other method you specified below : 

 ConfigurationContext configContext =
cc =
ConfigurationContextFactory.createConfigurationContextFromFileSystem(axi
s2repo, axis2xml); 

serviceClient = new
ServiceClient(configContext,AxisService.createClientSideAxisService( 
                                new
URL("http://localhost:8080/axis2/services/OwnService?wsdl";),
null, null, options)); 


However, when i call the web service using 
OMElement response = serviceClient.sendReceive(echoPayload); 
i get the following error 

Mar 26, 2007 10:53:35 AM org.apache.axis2.deployment.DeploymentEngine
doDeploy 
INFO: Deploying module : addressing-1.1.1 
Mar 26, 2007 10:53:35 AM org.apache.axis2.deployment.DeploymentEngine
doDeploy 
INFO: Deploying module : soapmonitor-1.1.1 
Mar 26, 2007 10:53:35 AM org.apache.axis2.deployment.DeploymentEngine
doDeploy 
INFO: Deploying Web service  version.aar 
org.apache.axis2.AxisFault: Operation  anonOutInOp not found 
        at
org.apache.axis2.client.ServiceClient.createClient(ServiceClient.java:65
1) 
        at
org.apache.axis2.client.ServiceClient.sendReceiveNonBlocking(ServiceClie
nt.java:620) 
        at
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:538
) 
        at
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:508
) 
        at
primary.AsyncSingleTransport.main(AsyncSingleTransport.java:193) 


Please can you help me resolve these errors? 

Regards,

Sagar M. Yerunkar


The information contained in this mail is classified as
(   ) L&T Infotech Proprietary 
(   ) L&T Infotech Confidential
(   ) L&T Infotech Internal Use 
(   ) L&T Infotech General Business 



"Thilina Gunarathne" <[EMAIL PROTECTED]> 

03/25/2007 10:13 AM 

Please respond to
[email protected]

To

[email protected] 

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("re
pository","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]


______________________________________________________________________


______________________________________________________________________

BEGIN:VCARD
VERSION:2.1
N:Punnoose;Roshan
FN:Punnoose, Roshan
ADR;WORK:;2115
LABEL;WORK:2115
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:20050413T183207Z
END:VCARD
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to