Re: application/dime error
From: Aaron (aaron.rh_at_nospamta.macroview.com.au)
Date: 03/17/04
- Next message: SizzleMaster: "Basic search questions/problems"
- Previous message: Troy Starr [MSFT]: "Re: Backing up subsites"
- In reply to: Aaron: "Re: application/dime error"
- Next in thread: John Q Public: "Re: application/dime error"
- Reply: John Q Public: "Re: application/dime error"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 18 Mar 2004 07:14:18 +1100
Whoops, I mean Greg!
"Aaron" <adrh@inospampleaseinet.com.au> wrote in message
news:%23LK41JBDEHA.1600@tk2msftngp13.phx.gbl...
> Thanks John,
>
> It turns out I figured out a workaround! Instead of trying to get the hop
to
> work, I just call the web services sequentially. I wish there was a better
> way to do it (that I could solve my initial problem) but I guess a
solution
> is a solution.
>
>
> "Gregg Smith" <gsmith@nospam.com> wrote in message
> news:uMX4HD7CEHA.1340@TK2MSFTNGP12.phx.gbl...
> > great post Aaron!
> >
> >
> > "Aaron" <aaron.rh@nospamta.macroview.com.au> wrote in message
> > news:uvOgE15CEHA.688@tk2msftngp13.phx.gbl...
> > > John,
> > >
> > > Did you get this to work. I have the same requirement and have managed
> to
> > > get the upload working. What you may be missing is this node in the
> > > web.config file:
> > >
> > > <webServices>
> > > <soapExtensionTypes>
> > > <!-- add reference to WebServicesExtension,
> > > note that type name is wrapped for readability,
> > > real type name should not contain newlines -->
> > > <add
> > >
> >
>
type="Microsoft.Web.Services.WebServicesExtension,Microsoft.Web.Services,Ver
> > > sion=1.0.0.0,Culture=neutral,PublicKeyToken=31bf3856ad364e35"
> priority="1"
> > > group="0"/>
> > > </soapExtensionTypes>
> > > </webServices>
> > >
> > > However, adding this to the WSS web.config seems to break the WSS web
> > > services, which is a nasty side effect. So, you may have to have your
> web
> > > service running outside of the WSS context, which unfortunately will
> leave
> > > you where I am. I can upload the file to the server fine, but because
> I'm
> > > using Integrated Authentication and I think because the credentials
> don't
> > > get passed with the request if already authenticated I can't find a
way
> to
> > > pass the credential of the calling user to WSS so that the document is
> > saved
> > > by them, with their rights etc. At the moment I have a user defined in
> my
> > > web service to act on behalf of the calling user and it works ok.
> > >
> > > Hope that helps.
> > >
> > > Aaron.
> > >
> > > "John Q Public" <asdf@asdf.edu> wrote in message
> > > news:uOPIS2I$DHA.1792@TK2MSFTNGP12.phx.gbl...
> > > > The use of DIME and WSE was suggested to me by a MS sharepoint
> > specialist,
> > > > based on a recommendation from the sharepoint development team.
while
> > you
> > > > can encode documents to xml, it is apparently a bloated way to go.
> DIME
> > > > offers the ability to handle large binary attachments outside of
soap
> > and
> > > > get around the shortcomings of just using soap for file encoding and
> > > > transfers. here is a quote from MS:
> > > >
> > > > "Of course, without DIME, you can still send data in a SOAP message.
> For
> > > > example, if I wanted to send large media files in a SOAP message to
a
> > > > requesting client, I could certainly do this by encoding the binary
> > > > attachments as Base64 XML and including them in the body of the SOAP
> > > > message. However, the processing gets bloated when attachments are
> very
> > > > large, and even trickier if they are digitally signed. Also, when I
> want
> > > to
> > > > send other SOAP messages, XML documents, or XML fragments that have
a
> > > > different character encoding than the main SOAP message, things can
> get
> > > > complicated. These are a few scenarios where being able to attach
> binary
> > > > data to a SOAP message makes more sense. "
> > > >
> > > >
> > >
> >
>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwse/html/wsedime.asp
> > > >
> > > > Our product will need to upload documents as large as 500 megs.
> > therefore
> > > > we are pursing MS's recommendation in using DIME with WSE.
> > > >
> > > > I have found quite a few online tutorials on how to create an upload
> > > > service, with and without WSE and DIME all of which use the same
> general
> > > > approach, but I will check out the msd2d article you've included.
All
> > > > approaches used so far either give me the error above, or "the
virtual
> > > > server does not exist in the configuration database" - despite the
> fact
> > I
> > > > have setup WSS with a config and content database.
> > > >
> > > > thank you.
> > > >
> > > > ted
> > > >
> > > > "Gregg Smith" <gsmith@nospam.com> wrote in message
> > > > news:OCdDRYA$DHA.2180@TK2MSFTNGP09.phx.gbl...
> > > > > I am not really a .Net remoting expert...though I will pass your
> issue
> > > > > by my .Net friends. What I will as is why ytou are going this
route?
> > > > >
> > > > > I am going to paste a link hewre to a very straightforward
document
> on
> > > > > creating a web service using the SharePoint object model for
> > > > > uploading documents. I really think this is your better way of
> going.
> > if
> > > > in
> > > > > fact
> > > > > you have some special circumstances around your situation that you
> > need
> > > > > you use MSe-DIME then please share that information with the group
> so
> > we
> > > > > can understand a bit.
> > > > >
> > > > > This is an article posted by Bobby Mathew on MSD2D - you will need
> to
> > > > > register
> > > > >
> > > > >
> > > >
> > >
> >
>
http://msd2d.com/Content/Tip_viewitem_03.aspx?section=Sharepoint&category=Development&id=6132ca4c-87ba-4872-bf18-f837802968b0
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > "John Q Public" <asdf@asdf.edu> wrote in message
> > > > > news:eRCnd%23%23%23DHA.2660@TK2MSFTNGP10.phx.gbl...
> > > > > > I am getting an error "Server found request content type to be
> > > > > > application/dime, but expected text/xml" when invoking a method
to
> > > > upload
> > > > > a
> > > > > > document using a WSE DIME tutorial from microsoft.
> > > > > >
> > > > > > I have installed WSE on both client and server, and have
followed
> > the
> > > > > > tutorial to the letter.
> > > > > >
> > > > > > I am new to SOAP and WSE, so perhaps I failed to do something on
> the
> > > > > server
> > > > > > that will allow the asp.net web service to recognize the mime
type
> > > > > > "application/dime" being sent via SOAP by my client consumer
app.
> > > > > >
> > > > > > my web.config file has been updated in my _vti_bin dir to accept
> WSE
> > > > > > extensions, so I'm not sure what I'm missing short of manually
> > > entering
> > > > in
> > > > > > the mime type in IIS.
> > > > > >
> > > > > > any suggestions?
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>
- Next message: SizzleMaster: "Basic search questions/problems"
- Previous message: Troy Starr [MSFT]: "Re: Backing up subsites"
- In reply to: Aaron: "Re: application/dime error"
- Next in thread: John Q Public: "Re: application/dime error"
- Reply: John Q Public: "Re: application/dime error"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|