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 Rozi Kovesdi <ro...@att.com> on 2002/11/06 23:39:57 UTC

How to Change User-Agent: Axis/1.0 in HTTP header?

I need to change the User-Agent in the HTTP Header for the SOAP Client Call

> User-Agent: Axis/1.0


What is the correct way to set the User-Agent ?

I tried to set it on Call , but the User-Agent did not change
This code does not work:

Service service = new Service();
Call call = (Call) service.createCall();
call.setProperty(HTTPConstants.HEADER_USER_AGENT, "myagent");


thank you,
Rozi
Email: rozi@att.com