Greetings,

I'm trying to create a client which can access the MultiMap webservice:
http://www.multimap.com/apidocs/1.2/web_service/ws_geocoding.htm

However, I'm having trouble creating a Rest client that can access it. This
is my client code:

------------
Options options = new Options();
options.setTo(new EndpointReference(toEpr));

options.setProperty(Constants.Configuration.ENABLE_REST,
Constants.VALUE_TRUE);
options.setProperty(Constants.Configuration.DISABLE_SOAP_ACTION,
Constants.VALUE_TRUE);
options.setProperty(Constants.Configuration.HTTP_METHOD,
Constants.Configuration.HTTP_METHOD_GET);

ServiceClient sender = new ServiceClient();
sender.setOptions(options);
OMElement result = sender.sendReceive(getPayload());
-------

This is generating the following HTTP request:

GET /API/geocode/[myid]?countryCode=IE&city=Cork HTTP/1.1
Content-Type: application/x-www-form-urlencoded; charset=utf-8
SOAPAction: ""
User-Agent: Axis2
Host: localhost:8090

But the service isn't having it and returns a:
MM_API_UNSUPPORTED_REQUEST_TYPE

If I remove the 'charset=UTF-8', using TCP Monitor, and resubmit it works
correctly. (so that Content-Type is 'Content-Type:
application/x-www-form-urlencoded')

Is it possible to disable that specific http header so that Axis2 won't
generate it?

Regards,
-- 
View this message in context: 
http://www.nabble.com/Diabling-HTTP-Headers-tp20639004p20639004.html
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to