You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fx-dev@ws.apache.org by Sabrina Leandro <sa...@yahoo.com> on 2005/03/05 20:10:48 UTC

[addressing] client configuration

Hi all,

I�ve read the short tutorial from the addressing
project but still coulnd�t manage to send client
requests with ws-a headers.

I used the same client-config.wsdd file that the
tutorial showed. I put it in the folder
tomcat/axis/web-inf/ and also tried in the
tomcat/axis/web-inf/classes. This folder also had the
addressing classes.

My client is a jsp page that send the request like
this:

Service service = new Service();
call = (Call) service.createCall();
AddressingHeaders headers = new AddressingHeaders();
Action a = new Action(new URI("urn:" + "translate"));
headers.setAction(a);
EndpointReference epr = new EndpointReference
	("http://localhost:6580/");
headers.setFrom(epr);
headers.setTo(new To(endpointURL));	
call.setProperty(Constants.ENV_ADDRESSING_REQUEST_HEADERS,
headers);
call.setTargetEndpointAddress(new
java.net.URL(endpointURL));
call.setOperationName(new QName("WSATranslator",
"translate"));
call.addParameter("text", XMLType.XSD_STRING,
ParameterMode.IN);
call.setReturnType(org.apache.axis.encoding.XMLType.XSD_STRING);
String returnText = (String) call.invoke(new
Object[]{text});

The call is being made and responded but when I look
at the TCPMon from the server, I see no ws-a headers
on the request that came. Actually, the request has no
headers at all. And the response comes only with a
messageId and a to header (pointing to an anonymous
url)

What am I doing wrong? I�ve looked through the mailing
list archives but found nothing on that matter.

thanks in advance!
Sabrina Leandro

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com