Access Sharepoint site using SOAP request in unix

Hi,

We are using a java application

(Java 6 , Using JAX-WS 2.0 to Create a Simple Web Service) 

that accesses SharePoint API through web services. We were able to get the data in windows and do all operations the API allows.

When we deploy this application on UNIX environment

(Solaris 10)

we are getting

"401 unauthorized" 

error.

So How do i make my application run in unix?
Please do the needful.