[jboss-user] [Remoting] - remoting with .NET
LockDog
do-not-reply at jboss.com
Wed Apr 15 05:47:47 EDT 2009
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:
anonymous wrote : 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:
anonymous wrote : 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?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225563#4225563
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225563
More information about the jboss-user
mailing list