1 Reply Latest reply on Apr 17, 2009 9:26 PM by ron_sigal

    remoting with .NET

    lockdog

      Hi, i connect to .NET remoting services, my sourse code:

      SOAPConnectionFactory cc = SOAPConnectionFactory.newInstance();
       SOAPConnection sp = cc.createConnection();
      
       MessageFactory mf = javax.xml.soap.MessageFactory.newInstance();
      
      
       InputStream inputStream = new ByteArrayInputStream(documentString.getBytes());
      
       MimeHeaders mimeHeaders = new MimeHeaders();
       mimeHeaders.addHeader("SOAPAction", UPLOAD_URL);
       javax.xml.soap.SOAPMessage sm = mf.createMessage(mimeHeaders, inputStream);
      
       javax.xml.soap.SOAPMessage resp = sp.call(sm, "http://plasma:8000/bap.rem");
       sp.close();



      My headers:
      POST /bap.rem HTTP/1.1
      SOAPAction: "http://schemas.microsoft.com/clr/nsassem/BureauAccessPoint.IHandleMessage/Interfaces#Report"
      Content-Type: text/xml; charset=UTF-8
      JBoss-Remoting-Version: 22
      User-Agent: JBossRemoting - 2.2.2.SP8
      Host: plasma:8000
      Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
      Connection: keep-alive
      Transfer-Encoding: chunked


      Original (native client) headers:
      POST /bap.rem HTTP/1.1
      User-Agent: Mozilla/4.0+(compatible; MSIE 6.0; Windows 5.1.2600.131072; MS .NET Remoting; MS .NET CLR 2.0.50727.3082 )
      Content-Type: text/xml; charset="utf-8"
      SOAPAction: "http://schemas.microsoft.com/clr/nsassem/BureauAccessPoint.IHandleMessage/Interfaces#Report"
      Host: xenon:8000
      Content-Length: 1447
      Expect: 100-continue
      Cookie: JSESSIONID=E5C58B0D604BB96665BED40B5198DBD8


      My configuration:
      JBOSS 4.2.3
      JBOSSWS 3.1.0
      JBOSS Remouting 2.2.2 SP 8


      But .NET side cant't accept Transfer-Encoding: chunked.
      How to remove this transfer encoding style from my requests?