Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

java - Get attachments from a JAX-WS WebService with a JAX-RPC Client -


as migrate jax-rpc jax-ws i'm trying call webservice, uses jax-w/jaxb. client still using jax-rpc. wsdl file kept same.

this works fine, long, there no attachments. attachments, doesn't work. client says, there none. although can seen in soap-message.

as far understood problem, jax-ws use mtom put binary data message, while jax-rpc uses mime.

is possible somehow work?

here's how jax-rpc message looks:

http/1.1 200 ok date: tue, 21 dec 2010 15:24:10 gmt transfer-encoding: chunked content-type: multipart/related;boundary="----=_part_6_5206227.1292945050584";type="text/xml";start="<soappart>" soapaction: "http://xxx" x-powered-by: servlet/2.5 jsp/2.1  014a ------=_part_6_5206227.1292945050584 content-type: text/xml; charset=utf-8 content-transfer-encoding: 8bit content-id: <soappart>  <env:envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:header/><env:body><operationwithattachments href="cid:operationwithattachments"/></env:body></env:envelope> 0522  ------=_part_6_5206227.1292945050584 content-type: multipart/mixed;      boundary="----=_part_5_12763436.1292945050570" content-id: <operationwithattachments>  ------=_part_5_12763436.1292945050570 content-type: application/pdf; name=helloworld.pdf content-disposition: attachment; filename=helloworld.pdf  %pdf-1.4 %öäüß 1 0 obj << /type /catalog /version /1.4 /pages 2 0 r >> endobj 2 0 obj << ... 

and here new jax-ws message:

http/1.1 200 ok date: tue, 21 dec 2010 15:23:02 gmt transfer-encoding: chunked content-type: multipart/related;start="<rootpart*07499eba-7835-4fe0-bb07-a04801504fb5@example.jaxws.sun.com>";type="application/xop+xml";boundary="uuid:07499eba-7835-4fe0-bb07-a04801504fb5";start-info="text/xml" x-powered-by: servlet/2.5 jsp/2.1  02ba --uuid:07499eba-7835-4fe0-bb07-a04801504fb5 content-id: <rootpart*07499eba-7835-4fe0-bb07-a04801504fb5@example.jaxws.sun.com> content-type: application/xop+xml;charset=utf-8;type="text/xml" content-transfer-encoding: binary  <?xml version='1.0' encoding='utf-8'?><s:envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:body><ns6:operationwithattachments xmlns:ns6="xx" xmlns:ns5="xx" xmlns:ns4="xx" xmlns:ns3="xx" xmlns:ns2="xx" xmlns="xx"> 00ba <include xmlns="http://www.w3.org/2004/08/xop/include" href="cid:9832a057-f692-4f48-ac7d-4dbd7ce76a74@example.jaxws.sun.com"/></ns6:operationwithattachments></s:body></s:envelope> 0562  --uuid:07499eba-7835-4fe0-bb07-a04801504fb5 content-id: <9832a057-f692-4f48-ac7d-4dbd7ce76a74@example.jaxws.sun.com> content-type: multipart/mixed; boundary="----=_part_4_6279014.1292944982388" content-transfer-encoding: binary  ------=_part_4_6279014.1292944982388 content-type: application/pdf; name=helloworld.pdf content-disposition: attachment; filename=helloworld.pdf  %pdf-1.4 %öäüß 1 0 obj << /type /catalog /version /1.4 /pages 2 0 r >> endobj 2 0 obj << ... 

(i removed namespaces myself, not problem)

the idea them same.

did ever that?

thanks lot help

well afaik can't. jaxrpc uses soap attachments, jaxws more modern mtom. different , not compatible. can disable mtom, have find way stream attachments (another service).


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -