You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "Jones, Alan R" <al...@boeing.com> on 2007/08/23 23:20:34 UTC

[axis2-1.1.1] Use of stubs

Hi,

I've looked around and was not able to find the info I'm looking for
regarding the following questions:

1.  I am using a stub generated with the Axis2 Eclipse plugin. I cannot
figure how to set the ReplyTo property for my outgoing Request message.
Is there an example of that?

2. Related to the above, I am using TCPMon to view the request and
response messages passing between my web client which contains the stub,
and the deployed service, in order to test my setting of the ReplyTo
property. However, I see no default wsa:ReplyTo in the SOAP message, the
header seems to be empty. Below is what I get in TCPMon on the client
side. I do have the addressing module engaged from the Admin console for
all services:



POST /axis2/services/RuleCacheService HTTP/1.1
SOAPAction: "urn:getCacheContents"
User-Agent: Axis2
Host: 127.0.0.1:8082
Transfer-Encoding: chunked
Content-Type: text/xml; charset=UTF-8

c8
<?xml version='1.0' encoding='UTF-8'?>
   <soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
      <soapenv:Header />
      <soapenv:Body>
         <getCacheContents />
      </soapenv:Body>
   </soapenv:Envelope>0


...Is there something I'm missing in order to view the wsa:
parameters/elements?


Thanks,

Alan J


--------------------------------------------
Alan R Jones
Boeing S&IS Mission Systems
Denver Engineering Center (BDEC)


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


RE: [axis2-1.1.1] Use of stubs - resolved

Posted by "Jones, Alan R" <al...@boeing.com>.
Yes, that fixed it and there was a bit more upfront stuff I needed to
do... I had to enable the addressing module by putting it into a client
repository, then create an instance of the stub using a
ConfigurationContext containing the location of the repository along
with the service endpoint, and then engage the addressing module in the
client code:

stub = new RuleCacheServiceStub(testClient.newConfigCtx(),serviceURL);
stub._getServiceClient().engageModule(new QName("addressing"));


...newConfigCtx() was a utility method that created the
ConfigurationContext with all the right ingredients.



Thanks for your help,

Alan J


--------------------------------------------
Alan R Jones

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


RE: [axis2-1.1.1] Use of stubs

Posted by Ted Jones <Tj...@metamatrix.com>.
Alan,

It doesn't look like the Addressing module is engaged on the client. If
it were, a default anonymous replyTo value would be used. With
Addressing engaged, you could then set this value using
"Options.setReplyTo(EndpointReference)" in your client.

Thanks,
Ted

-----Original Message-----
From: Jones, Alan R [mailto:alan.r.jones@boeing.com] 
Sent: Thursday, August 23, 2007 4:21 PM
To: axis-user@ws.apache.org
Subject: [axis2-1.1.1] Use of stubs

Hi,

I've looked around and was not able to find the info I'm looking for
regarding the following questions:

1.  I am using a stub generated with the Axis2 Eclipse plugin. I cannot
figure how to set the ReplyTo property for my outgoing Request message.
Is there an example of that?

2. Related to the above, I am using TCPMon to view the request and
response messages passing between my web client which contains the stub,
and the deployed service, in order to test my setting of the ReplyTo
property. However, I see no default wsa:ReplyTo in the SOAP message, the
header seems to be empty. Below is what I get in TCPMon on the client
side. I do have the addressing module engaged from the Admin console for
all services:



POST /axis2/services/RuleCacheService HTTP/1.1
SOAPAction: "urn:getCacheContents"
User-Agent: Axis2
Host: 127.0.0.1:8082
Transfer-Encoding: chunked
Content-Type: text/xml; charset=UTF-8

c8
<?xml version='1.0' encoding='UTF-8'?>
   <soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
      <soapenv:Header />
      <soapenv:Body>
         <getCacheContents />
      </soapenv:Body>
   </soapenv:Envelope>0


...Is there something I'm missing in order to view the wsa:
parameters/elements?


Thanks,

Alan J


--------------------------------------------
Alan R Jones
Boeing S&IS Mission Systems
Denver Engineering Center (BDEC)


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


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