DIME attachment

  • Thread starter Thread starter Wouter Roosenburg
  • Start date Start date
W

Wouter Roosenburg

Hi there,

Currently, DIME is not support on cf. I am using Casey Chesnut's library but
i can't get it to work properly. Does anyone have an article on this, howto
use this DIME implementation on cf?

Kind Regards,

Wouter
 
wrote a webservice using DIME: jpg transfer

With a .NET windows form and the microsoft.webservices.dll it's working good

With the cf DIME (bNb.ws.dime.dll) library i'll get the following (i assume
server) error-message:

*An unhandled exception of type
'System.Web.Services.Protocols.SoapHeaderException' occurred in
System.Web.Services.dll

Additional information: Microsoft.Web.Services.Dime.DimeFormatException: The
last DIME record must have the MessageEnd flag set.
at Microsoft.Web.Services.Dime.DimeRecord.ForceRead(Stream stream, Byte[]
buffer, Int32 length)
at Microsoft.Web.Services.Dime.DimeRecord.ReadHeader()

Any workarounds here?
 
it sounds like you are not using the latest version.
the DIME library can be downloaded here:
http://www.brains-N-brawn.com/spWse
the separate DIME download is the latest.


Wouter Roosenburg said:
wrote a webservice using DIME: jpg transfer

With a .NET windows form and the microsoft.webservices.dll it's working good

With the cf DIME (bNb.ws.dime.dll) library i'll get the following (i assume
server) error-message:

*An unhandled exception of type
'System.Web.Services.Protocols.SoapHeaderException' occurred in
System.Web.Services.dll

Additional information: Microsoft.Web.Services.Dime.DimeFormatException: The
last DIME record must have the MessageEnd flag set.
at Microsoft.Web.Services.Dime.DimeRecord.ForceRead(Stream stream, Byte[]
buffer, Int32 length)
at Microsoft.Web.Services.Dime.DimeRecord.ReadHeader()

Any workarounds here?



Wouter Roosenburg said:
Hi there,

Currently, DIME is not support on cf. I am using Casey Chesnut's library but
i can't get it to work properly. Does anyone have an article on this, howto
use this DIME implementation on cf?

Kind Regards,

Wouter
 
Hmm ok, error gone, but now it's this (winform is still working fine, server
is up):

An unhandled exception of type
'System.Web.Services.Protocols.SoapHeaderException' occurred in
System.Web.Services.dll

Additional information: System.Web.Services.Protocols.SoapHeaderException:
Server unavailable, please try later ---> System.ArgumentException: The
reader failed to read.
at Microsoft.Web.Services.Dime.DimeAttachmentCollection..ctor(DimeReader
reader)
at
Microsoft.Web.Services.WebServicesExtension.BeforeDeserializeServer(SoapMess
age message)
--- End of inner exception stack trace ---


casey chesnut said:
it sounds like you are not using the latest version.
the DIME library can be downloaded here:
http://www.brains-N-brawn.com/spWse
the separate DIME download is the latest.


Wouter Roosenburg said:
wrote a webservice using DIME: jpg transfer

With a .NET windows form and the microsoft.webservices.dll it's working good

With the cf DIME (bNb.ws.dime.dll) library i'll get the following (i assume
server) error-message:

*An unhandled exception of type
'System.Web.Services.Protocols.SoapHeaderException' occurred in
System.Web.Services.dll

Additional information: Microsoft.Web.Services.Dime.DimeFormatException: The
last DIME record must have the MessageEnd flag set.
at Microsoft.Web.Services.Dime.DimeRecord.ForceRead(Stream stream, Byte[]
buffer, Int32 length)
at Microsoft.Web.Services.Dime.DimeRecord.ReadHeader()

Any workarounds here?



Wouter Roosenburg said:
Hi there,

Currently, DIME is not support on cf. I am using Casey Chesnut's
library
but
i can't get it to work properly. Does anyone have an article on this, howto
use this DIME implementation on cf?

Kind Regards,

Wouter
 
dont know. that exception is unfamiliar to me.
have you sniffed the network to see what the actual messages say?
casey

Wouter Roosenburg said:
Hmm ok, error gone, but now it's this (winform is still working fine, server
is up):

An unhandled exception of type
'System.Web.Services.Protocols.SoapHeaderException' occurred in
System.Web.Services.dll

Additional information: System.Web.Services.Protocols.SoapHeaderException:
Server unavailable, please try later ---> System.ArgumentException: The
reader failed to read.
at Microsoft.Web.Services.Dime.DimeAttachmentCollection..ctor(DimeReader
reader)
at
Microsoft.Web.Services.WebServicesExtension.BeforeDeserializeServer(SoapMess
age message)
--- End of inner exception stack trace ---


it sounds like you are not using the latest version.
the DIME library can be downloaded here:
http://www.brains-N-brawn.com/spWse
the separate DIME download is the latest.


Wouter Roosenburg said:
wrote a webservice using DIME: jpg transfer

With a .NET windows form and the microsoft.webservices.dll it's
working
good
With the cf DIME (bNb.ws.dime.dll) library i'll get the following (i assume
server) error-message:

*An unhandled exception of type
'System.Web.Services.Protocols.SoapHeaderException' occurred in
System.Web.Services.dll

Additional information:
Microsoft.Web.Services.Dime.DimeFormatException:
The
last DIME record must have the MessageEnd flag set.
at Microsoft.Web.Services.Dime.DimeRecord.ForceRead(Stream stream, Byte[]
buffer, Int32 length)
at Microsoft.Web.Services.Dime.DimeRecord.ReadHeader()

Any workarounds here?



Hi there,

Currently, DIME is not support on cf. I am using Casey Chesnut's library
but
i can't get it to work properly. Does anyone have an article on this,
howto
use this DIME implementation on cf?

Kind Regards,

Wouter
 
No not yet, I am gonna do that.

BTW I am testing in the emulator. I think that's something gotta do with it.
Tomorrow I am gonna test with the real hardware and see if there may be some
differences regarding cfWSE on emulator or real hardware.

Wouter

casey chesnut said:
dont know. that exception is unfamiliar to me.
have you sniffed the network to see what the actual messages say?
casey

Wouter Roosenburg said:
Hmm ok, error gone, but now it's this (winform is still working fine, server
is up):

An unhandled exception of type
'System.Web.Services.Protocols.SoapHeaderException' occurred in
System.Web.Services.dll

Additional information: System.Web.Services.Protocols.SoapHeaderException:
Server unavailable, please try later ---> System.ArgumentException: The
reader failed to read.
at Microsoft.Web.Services.Dime.DimeAttachmentCollection..ctor(DimeReader
Microsoft.Web.Services.WebServicesExtension.BeforeDeserializeServer(SoapMess
age message)
--- End of inner exception stack trace ---


it sounds like you are not using the latest version.
the DIME library can be downloaded here:
http://www.brains-N-brawn.com/spWse
the separate DIME download is the latest.


wrote a webservice using DIME: jpg transfer

With a .NET windows form and the microsoft.webservices.dll it's working
good

With the cf DIME (bNb.ws.dime.dll) library i'll get the following (i
assume
server) error-message:

*An unhandled exception of type
'System.Web.Services.Protocols.SoapHeaderException' occurred in
System.Web.Services.dll

Additional information: Microsoft.Web.Services.Dime.DimeFormatException:
The
last DIME record must have the MessageEnd flag set.
at Microsoft.Web.Services.Dime.DimeRecord.ForceRead(Stream stream,
Byte[]
buffer, Int32 length)
at Microsoft.Web.Services.Dime.DimeRecord.ReadHeader()

Any workarounds here?



Hi there,

Currently, DIME is not support on cf. I am using Casey Chesnut's library
but
i can't get it to work properly. Does anyone have an article on this,
howto
use this DIME implementation on cf?

Kind Regards,

Wouter
 
the only problems i've had with the emulator vs hardware was with security.
every once in a while the smartphone emulator crypto bits gets hosed up.
have not had the same problems with the PPC emulator or PPC hardware.
Thanks,
casey

Wouter Roosenburg said:
No not yet, I am gonna do that.

BTW I am testing in the emulator. I think that's something gotta do with it.
Tomorrow I am gonna test with the real hardware and see if there may be some
differences regarding cfWSE on emulator or real hardware.

Wouter

dont know. that exception is unfamiliar to me.
have you sniffed the network to see what the actual messages say?
casey
Microsoft.Web.Services.WebServicesExtension.BeforeDeserializeServer(SoapMess
age message)
--- End of inner exception stack trace ---


it sounds like you are not using the latest version.
the DIME library can be downloaded here:
http://www.brains-N-brawn.com/spWse
the separate DIME download is the latest.


wrote a webservice using DIME: jpg transfer

With a .NET windows form and the microsoft.webservices.dll it's working
good

With the cf DIME (bNb.ws.dime.dll) library i'll get the following (i
assume
server) error-message:

*An unhandled exception of type
'System.Web.Services.Protocols.SoapHeaderException' occurred in
System.Web.Services.dll

Additional information: Microsoft.Web.Services.Dime.DimeFormatException:
The
last DIME record must have the MessageEnd flag set.
at Microsoft.Web.Services.Dime.DimeRecord.ForceRead(Stream stream,
Byte[]
buffer, Int32 length)
at Microsoft.Web.Services.Dime.DimeRecord.ReadHeader()

Any workarounds here?



Hi there,

Currently, DIME is not support on cf. I am using Casey Chesnut's
library
but
i can't get it to work properly. Does anyone have an article on this,
howto
use this DIME implementation on cf?

Kind Regards,

Wouter
 
there is already a sample with the spWse test code.
it calls the Attachments sample in WSE 2.0.
i think it also works when calling against WSE 1.0,
without any changes other than pointing it to a different URL.
Thanks,
casey

Wouter Roosenburg said:
Casey,

I've tried it on real hardware and on the emulator. I am still getting the
same error. Because lots of people have it already working, could you or
someone else post or mail a complete Hello World example using your spWse
DIME? Maybe I am just making some stupid mistake here.

Kind Regards,

Wouter


the only problems i've had with the emulator vs hardware was with security.
every once in a while the smartphone emulator crypto bits gets hosed up.
have not had the same problems with the PPC emulator or PPC hardware.
Thanks,
casey

with
it. be
some System.ArgumentException:
The
Microsoft.Web.Services.Dime.DimeAttachmentCollection..ctor(DimeReaderMicrosoft.Web.Services.WebServicesExtension.BeforeDeserializeServer(SoapMess
age message)
--- End of inner exception stack trace ---


message
it sounds like you are not using the latest version.
the DIME library can be downloaded here:
http://www.brains-N-brawn.com/spWse
the separate DIME download is the latest.


wrote a webservice using DIME: jpg transfer

With a .NET windows form and the microsoft.webservices.dll it's
working
good

With the cf DIME (bNb.ws.dime.dll) library i'll get the
following
(i
assume
server) error-message:

*An unhandled exception of type
'System.Web.Services.Protocols.SoapHeaderException' occurred in
System.Web.Services.dll

Additional information:
Microsoft.Web.Services.Dime.DimeFormatException:
The
last DIME record must have the MessageEnd flag set.
at Microsoft.Web.Services.Dime.DimeRecord.ForceRead(Stream
stream,
Byte[]
buffer, Int32 length)
at Microsoft.Web.Services.Dime.DimeRecord.ReadHeader()

Any workarounds here?



Hi there,

Currently, DIME is not support on cf. I am using Casey Chesnut's
library
but
i can't get it to work properly. Does anyone have an article on
this,
howto
use this DIME implementation on cf?

Kind Regards,

Wouter
 
Casey,

I've tried it on real hardware and on the emulator. I am still getting the
same error. Because lots of people have it already working, could you or
someone else post or mail a complete Hello World example using your spWse
DIME? Maybe I am just making some stupid mistake here.

Kind Regards,

Wouter


casey chesnut said:
the only problems i've had with the emulator vs hardware was with security.
every once in a while the smartphone emulator crypto bits gets hosed up.
have not had the same problems with the PPC emulator or PPC hardware.
Thanks,
casey

Wouter Roosenburg said:
No not yet, I am gonna do that.

BTW I am testing in the emulator. I think that's something gotta do with it.
Tomorrow I am gonna test with the real hardware and see if there may be some
differences regarding cfWSE on emulator or real hardware.

Wouter
Microsoft.Web.Services.WebServicesExtension.BeforeDeserializeServer(SoapMess following
(i
assume
server) error-message:

*An unhandled exception of type
'System.Web.Services.Protocols.SoapHeaderException' occurred in
System.Web.Services.dll

Additional information:
Microsoft.Web.Services.Dime.DimeFormatException:
The
last DIME record must have the MessageEnd flag set.
at Microsoft.Web.Services.Dime.DimeRecord.ForceRead(Stream stream,
Byte[]
buffer, Int32 length)
at Microsoft.Web.Services.Dime.DimeRecord.ReadHeader()

Any workarounds here?



Hi there,

Currently, DIME is not support on cf. I am using Casey Chesnut's
library
but
i can't get it to work properly. Does anyone have an article on
this,
howto
use this DIME implementation on cf?

Kind Regards,

Wouter
 
I've got it working! :)) It was something related to filepermissions.
However that wasn't clear from the error-message returned: (server
unavailable, errr?). Changing the DIME-direction to SOAP only got me the
right error message and solved the problem :)

Thx,

Wouter

casey chesnut said:
there is already a sample with the spWse test code.
it calls the Attachments sample in WSE 2.0.
i think it also works when calling against WSE 1.0,
without any changes other than pointing it to a different URL.
Thanks,
casey

Wouter Roosenburg said:
Casey,

I've tried it on real hardware and on the emulator. I am still getting the
same error. Because lots of people have it already working, could you or
someone else post or mail a complete Hello World example using your spWse
DIME? Maybe I am just making some stupid mistake here.

Kind Regards,

Wouter


Microsoft.Web.Services.Dime.DimeAttachmentCollection..ctor(DimeReader
Microsoft.Web.Services.WebServicesExtension.BeforeDeserializeServer(SoapMess
age message)
--- End of inner exception stack trace ---


message
it sounds like you are not using the latest version.
the DIME library can be downloaded here:
http://www.brains-N-brawn.com/spWse
the separate DIME download is the latest.


wrote a webservice using DIME: jpg transfer

With a .NET windows form and the microsoft.webservices.dll it's
working
good

With the cf DIME (bNb.ws.dime.dll) library i'll get the following
(i
assume
server) error-message:

*An unhandled exception of type
'System.Web.Services.Protocols.SoapHeaderException' occurred in
System.Web.Services.dll

Additional information:
Microsoft.Web.Services.Dime.DimeFormatException:
The
last DIME record must have the MessageEnd flag set.
at Microsoft.Web.Services.Dime.DimeRecord.ForceRead(Stream
stream,
Byte[]
buffer, Int32 length)
at Microsoft.Web.Services.Dime.DimeRecord.ReadHeader()

Any workarounds here?



Hi there,

Currently, DIME is not support on cf. I am using Casey Chesnut's
library
but
i can't get it to work properly. Does anyone have an
article
on
this,
howto
use this DIME implementation on cf?

Kind Regards,

Wouter
 
great, glad you got it working
casey
http://www.brains-N-brawn.com


Wouter Roosenburg said:
I've got it working! :)) It was something related to filepermissions.
However that wasn't clear from the error-message returned: (server
unavailable, errr?). Changing the DIME-direction to SOAP only got me the
right error message and solved the problem :)

Thx,

Wouter

there is already a sample with the spWse test code.
it calls the Attachments sample in WSE 2.0.
i think it also works when calling against WSE 1.0,
without any changes other than pointing it to a different URL.
Thanks,
casey

do
with may
be
Microsoft.Web.Services.WebServicesExtension.BeforeDeserializeServer(SoapMess
age message)
--- End of inner exception stack trace ---


"casey chesnut" <casey@MORE_spam_PLEASEbrains-N-brawn.com>
wrote
in
message
it sounds like you are not using the latest version.
the DIME library can be downloaded here:
http://www.brains-N-brawn.com/spWse
the separate DIME download is the latest.


wrote a webservice using DIME: jpg transfer

With a .NET windows form and the microsoft.webservices.dll it's
working
good

With the cf DIME (bNb.ws.dime.dll) library i'll get the
following
(i
assume
server) error-message:

*An unhandled exception of type
'System.Web.Services.Protocols.SoapHeaderException'
occurred
in
System.Web.Services.dll

Additional information:
Microsoft.Web.Services.Dime.DimeFormatException:
The
last DIME record must have the MessageEnd flag set.
at Microsoft.Web.Services.Dime.DimeRecord.ForceRead(Stream
stream,
Byte[]
buffer, Int32 length)
at Microsoft.Web.Services.Dime.DimeRecord.ReadHeader()

Any workarounds here?



Hi there,

Currently, DIME is not support on cf. I am using Casey
Chesnut's
library
but
i can't get it to work properly. Does anyone have an article
on
this,
howto
use this DIME implementation on cf?

Kind Regards,

Wouter
 
Back
Top