Hi all,

I am using Axis to call webservices storing business objects in
Microsoft CRM (works great!!!). I've been developing and calling
webservices on a server running local on top of vmware. Now I am trying
to call my colleagues development server which I can access through a
VPN tunnel ... But it fails. I get the following exception:

java.net.SocketException: Connection reset

Cool, so I started digging and found that I don't get this exception
when setting 'httpChunkStream = false'. This is the testcode:
        HttpClient httpClient = new HttpClient();
        Credentials credentials = new NTCredentials("user",
                "pwd",
                "localhost",
                "domain");
        httpClient.getState().setCredentials(AuthScope.ANY,
credentials);
        HttpMethodBase method = new
PostMethod("http://localhost/mscrmservices/2006/crmservice.asmx";);
        Message reqMessage = new Message("test");
        ((PostMethod)method).setRequestEntity(new
MessageRequestEntity(method, reqMessage, false));

        try {
            int returnCode = httpClient.executeMethod(method);
            String response = method.getResponseBodyAsString();
            System.out.println("Response: " + response);
        } catch (HttpException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }

How to propagate this property to Axis (I'm using the stub generated by
wsdl2java).

Thanks.


Regards,

Kenneth

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

Reply via email to