473,782 Members | 2,664 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

dime format exception

Hi All,

I use WSE 2.0 / DIME to send a zip file of size 9.2 MB. I send file of size less than this success fully but with this the client basically get the exception "dime format exception".

The code is follows..

what am I doing wrong here..?

Nirosh.
[WebMethod]
public bool PreviewMasterBo okBackMatterHtm l(string tstrUserId, string tstrContentId)
{
if ((tstrUserId != string.Empty)
&& (tstrContentId != string.Empty))
{
string lstrFilePath = this.lobjManage rPreviewContent .tcRequestPrevi ewMasterBookBac kMatterHtml(tst rUserId
, tstrContentId);
if (lstrFilePath != null)
{
SoapContext respContext = ResponseSoapCon text.Current;

DimeAttachment dimeAttach = new DimeAttachment(
".zip"
, TypeFormat.Unkn own
, lstrFilePath);
respContext.Att achments.Add(di meAttach);
return true;
}
else
{
throw new System.Web.Serv ices.Protocols. SoapException(C onvert.ToString ((int)this.lobj ManagerPreviewC ontent.LastServ iceError)
, System.Web.Serv ices.Protocols. SoapException.S erverFaultCode) ;
}
}
else
{
throw new System.Web.Serv ices.Protocols. SoapException(C onvert.ToString ((int)TCErrors. ERROR_SERVICE_I NSUFFICIENT_PAR AMETER)
, System.Web.Serv ices.Protocols. SoapException.C lientFaultCode) ;
}
}
Nov 17 '05 #1
0 1097

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1813
by: Eric Lavitsky | last post by:
Hi, I'm trying to connect using PHP5 to a web service created with the MS SOAP Toolkit3 that supports DIME attachments. PHP fails connecting to the service, for example: <?php $wsdl = 'http://mssoapinterop.org/stkV3/dime/dime-rpc.wsdl'; $webservice = new SoapClient($wsdl); ?>
2
1663
by: Champika Nirosh | last post by:
Hi All, I posted this at "webserviceehnancement" but no reply please see I installed WSE 2.0 and then started to write a web service that use DIME. I fallowed http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwse/html/wsedime.asp and did exactly what it ask me to do..
0
296
by: Champika Nirosh | last post by:
Hi All, I use WSE 2.0 / DIME to send a zip file of size 9.2 MB. I send file of size less than this success fully but with this the client basically get the exception "dime format exception". The code is follows.. what am I doing wrong here..? Nirosh.
0
1077
by: Ero | last post by:
Hello, I have a simple webmethod to send Dime attachments using WSE 2 : public void CreateDimedImage() {
3
5108
by: Ipsita | last post by:
Hi! I am trying SOAP with DIME attachments in web services. For example say, I have a file resume.pdf stored somewhere on my server. How does the web service send the file to the client, so that the client can store it and also read from it. I am trying out with C# and ASP.NET. Server Side Web Method: -----------------------
0
1148
by: Vaylor Trucks | last post by:
Using the .NET framework and WSE 1.0 SP1, I have built a web service which receives data from a web service client and saves it to disk in a text file, and it works with no problem. However, when I modify the web service to accept an attachment and save it to disk as well (resulting in 2 files saved - txt file and attachment) then any special characters in the text file (such as the N~ combination used in Spanish) appear as 2 question...
0
1152
by: Tom_B | last post by:
Trying to download a .wav file from a Java Axis web service that is using DIME. Unfortunately, the returned data is not properly formed so cannot use WSE with Dime handling to read the data. Used chain stream and process message to get the stream at BeforeDeserialize. Can then delineate the .wav part from the incoming stream by locating the start and end of the data. Using following to save the data to file:
0
4081
by: daryl | last post by:
I have a situation where a webservice has worked fine in a development environment, but when placed into production has stopped working (although at one time it was). Using WSE 2.0/DIME, we wrote a simple File Transfer and retrieval service, which has to pass through a firewall (the only real difference between dev and production -- at the time). Originally, the error was this:
1
4391
by: pratishsoma | last post by:
Hi, I'm developing WebServices client in Visual Studio 2005. The Web Service is developed in java, Axis. The Web Service has a function to return Soap Response and an Attachment (DIME or MIME format). I need to write a WS client to consume this Soap Response and save the attachment in my system. Problems:
1
2175
by: blackjack2150 | last post by:
Hi. I use WSE 2.0 to call a web service method which returns some attachments together with the response. The web service can send it's attachments using either MIME format(widely used in the java world, which has no support in .net) or DIME(a Microsoft standard supported in WSE 2.0). In order for the web service to know which standard will be uses, any request to this method must contain the "Accept: application/dime" in the HTTP...
0
9639
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10308
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10143
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10076
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8964
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7486
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5375
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5507
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4040
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.